PEATSA/Core/Utilities.py
def ConvertResidueCodeToReducedFormat(residueCode, extended=False):

	'''Converts an residue code to a reduced format
	
	 e.g. A:0025 -> A25 or A:0025:ALA -> A25A'''

	if extended is True:
		chain, residueIndex, residueName = ParseResidueCode(residueCode)
		code =  chain + str(residueIndex) + aminoAcidCodes[residueName]
	else:
		chain, residueIndex = ParseResidueCode(residueCode)
		code = chain + str(residueIndex)
		
	return code
Converts an residue code to a reduced format
	
	 e.g. A:0025 -> A25 or A:0025:ALA -> A25A
Converts an residue code to a reduced format
e.g.
Converts an residue code to a reduced format e . g .
def ConvertResidueCodeToReducedFormat(residueCode, extended=False):
	if extended is True:
		chain, residueIndex, residueName = ParseResidueCode(residueCode)
		code =  chain + str(residueIndex) + aminoAcidCodes[residueName]
	else:
		chain, residueIndex = ParseResidueCode(residueCode)
		code = chain + str(residueIndex)
	return code
def ConvertResidueCodeToReducedFormat ( residueCode , extended = False ) : if extended is True : chain , residueIndex , residueName = ParseResidueCode ( residueCode ) code = chain + str ( residueIndex ) + aminoAcidCodes [ residueName ] else : chain , residueIndex = ParseResidueCode ( residueCode ) code = chain + str ( residueIndex ) return code
Converts an residue code to a reduced format
e.g.
Converts an residue code to a reduced format e . g .
'''Converts an residue code to a reduced format
	
	 e.g. A:0025 -> A25 or A:0025:ALA -> A25A'''
residueCode
extended