PEATSA/Core/Utilities.py
def ConvertMutationCodeToReducedFormat(mutationCode, extended=False):
	
	'''Converts a mutation code to a reduced format
	
	 e.g. A:0025:ALA:GLY -> A25AG'''
	 
	if extended is True: 
		chain, residueIndex, residueName, mutation = ParseMutationCode(mutationCode)
		code = chain + str(residueIndex) + aminoAcidCodes[residueName] + aminoAcidCodes[mutation]
	else:
		chain, residueIndex, mutation = ParseMutationCode(mutationCode)
		code = chain + str(residueIndex) + aminoAcidCodes[mutation]
		
	return code
Converts a mutation code to a reduced format
	
	 e.g. A:0025:ALA:GLY -> A25AG
Converts a mutation code to a reduced format
e.g.
Converts a mutation code to a reduced format e . g .
def ConvertMutationCodeToReducedFormat(mutationCode, extended=False):
	if extended is True: 
		chain, residueIndex, residueName, mutation = ParseMutationCode(mutationCode)
		code = chain + str(residueIndex) + aminoAcidCodes[residueName] + aminoAcidCodes[mutation]
	else:
		chain, residueIndex, mutation = ParseMutationCode(mutationCode)
		code = chain + str(residueIndex) + aminoAcidCodes[mutation]
	return code
def ConvertMutationCodeToReducedFormat ( mutationCode , extended = False ) : if extended is True : chain , residueIndex , residueName , mutation = ParseMutationCode ( mutationCode ) code = chain + str ( residueIndex ) + aminoAcidCodes [ residueName ] + aminoAcidCodes [ mutation ] else : chain , residueIndex , mutation = ParseMutationCode ( mutationCode ) code = chain + str ( residueIndex ) + aminoAcidCodes [ mutation ] return code
Converts a mutation code to a reduced format
e.g.
Converts a mutation code to a reduced format e . g .
'''Converts a mutation code to a reduced format
	
	 e.g. A:0025:ALA:GLY -> A25AG'''
mutationCode
extended