PEATSA/Core/Utilities.py
def ParseReducedMutationCode(code, extended=False):

	'''Parse the reduced mutation code.
	
	If the reduced code includes the original residue name set extendedFormat to be true.
	If the code is not in extendedFormat this function returns the chain, the residue index and the mutation name
	in that order. 
	Otherwise it returns he chain, the residue index, the residue name and the mutation name'''

	try:
		invertedMap = InvertedCodeDictionary()
		mutation = invertedMap[code[-1]]
		data = ParseReducedResidueCode(code[:-1], extended=extended)
		return data + (mutation,)
	except Exceptions.ResidueCodeFormatError, data:
		raise Exceptions.MutationCodeFormatError, data	
	except Exception, data:
		raise Exceptions.MutationCodeFormatError, 'Error with mutation code %s. %s' % (code, data)
Parse the reduced mutation code.
	
	If the reduced code includes the original residue name set extendedFormat to be true.
	If the code is not in extendedFormat this function returns the chain, the residue index and the mutation name
	in that order. 
	Otherwise it returns he chain, the residue index, the residue name and the mutation name
Parse the reduced mutation code.
If the reduced code includes the original residue name set extendedFormat to be true.
If the code is not in extendedFormat this function returns the chain, the residue index and the mutation name
in that order.
Otherwise it returns he chain, the residue index, the residue name and the mutation name
Parse the reduced mutation code . If the reduced code includes the original residue name set extendedFormat to be true . If the code is not in extendedFormat this function returns the chain the residue index and the mutation name in that order . Otherwise it returns he chain the residue index the residue name and the mutation name
def ParseReducedMutationCode(code, extended=False):
	try:
		invertedMap = InvertedCodeDictionary()
		mutation = invertedMap[code[-1]]
		data = ParseReducedResidueCode(code[:-1], extended=extended)
		return data + (mutation,)
	except Exceptions.ResidueCodeFormatError, data:
		raise Exceptions.MutationCodeFormatError, data	
	except Exception, data:
		raise Exceptions.MutationCodeFormatError, 'Error with mutation code %s. %s' % (code, data)
def ParseReducedMutationCode ( code , extended = False ) : try : invertedMap = InvertedCodeDictionary ( ) mutation = invertedMap [ code [ - 1 ] ] data = ParseReducedResidueCode ( code [ : - 1 ] , extended = extended ) return data + ( mutation , ) except Exceptions . ResidueCodeFormatError , data : raise Exceptions . MutationCodeFormatError , data except Exception , data : raise Exceptions . MutationCodeFormatError , 'Error with mutation code %s. %s' % ( code , data )
Parse the reduced mutation code.
Parse the reduced mutation code .
'''Parse the reduced mutation code.
	
	If the reduced code includes the original residue name set extendedFormat to be true.
	If the code is not in extendedFormat this function returns the chain, the residue index and the mutation name
	in that order. 
	Otherwise it returns he chain, the residue index, the residue name and the mutation name'''
code
extended