PEATSA/Core/Data.py
def residueCodes(self, pdb=None, reduced=True):
	
		'''Returns the residue codes of all the residues mutated in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the filename uses extended residue code format.
			reduced - If True the codes are returned in reduced format.

			
		Exceptions:
			Raises an AttributeError if pdb does not respond to resname() and is not None'''
		
		residueCodes = []
		extended = False
		for mutation in self.mutationCodeList:
			chain, residueIndex, mutation = Utilities.ParseMutationCode(mutation)
			residueCode = Utilities.CreateResidueCode(chain, residueIndex)
			if pdb is not None:
				extended=True
				residueCode = Utilities.CreateResidueCode(chain=chain,
								number=residueIndex,
								name=pdb.resname(residueCode))
			if reduced is True:
				residueCode = Utilities.ConvertResidueCodeToReducedFormat(residueCode, extended=extended)					

			residueCodes.append(residueCode)
			
		return residueCodes
Returns the residue codes of all the residues mutated in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the filename uses extended residue code format.
			reduced - If True the codes are returned in reduced format.

			
		Exceptions:
			Raises an AttributeError if pdb does not respond to resname() and is not None
Returns the residue codes of all the residues mutated in the receiver in standard format
Parameters:
pdb - An optional protool instance.
If this is provided the filename uses extended residue code format.
reduced - If True the codes are returned in reduced format.

Raises an AttributeError if pdb does not respond to resname() and is not None
Returns the residue codes of all the residues mutated in the receiver in standard format Parameters : pdb - An optional protool instance . If this is provided the filename uses extended residue code format . reduced - If True the codes are returned in reduced format . Raises an AttributeError if pdb does not respond to resname () and is not None
def residueCodes(self, pdb=None, reduced=True):
		residueCodes = []
		extended = False
		for mutation in self.mutationCodeList:
			chain, residueIndex, mutation = Utilities.ParseMutationCode(mutation)
			residueCode = Utilities.CreateResidueCode(chain, residueIndex)
			if pdb is not None:
				extended=True
				residueCode = Utilities.CreateResidueCode(chain=chain,
								number=residueIndex,
								name=pdb.resname(residueCode))
			if reduced is True:
				residueCode = Utilities.ConvertResidueCodeToReducedFormat(residueCode, extended=extended)					
			residueCodes.append(residueCode)
		return residueCodes
def residueCodes ( self , pdb = None , reduced = True ) : residueCodes = [ ] extended = False for mutation in self . mutationCodeList : chain , residueIndex , mutation = Utilities . ParseMutationCode ( mutation ) residueCode = Utilities . CreateResidueCode ( chain , residueIndex ) if pdb is not None : extended = True residueCode = Utilities . CreateResidueCode ( chain = chain , number = residueIndex , name = pdb . resname ( residueCode ) ) if reduced is True : residueCode = Utilities . ConvertResidueCodeToReducedFormat ( residueCode , extended = extended ) residueCodes . append ( residueCode ) return residueCodes
Returns the residue codes of all the residues mutated in the receiver in standard format
Parameters:
pdb - An optional protool instance.
Returns the residue codes of all the residues mutated in the receiver in standard format Parameters : pdb - An optional protool instance .
'''Returns the residue codes of all the residues mutated in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the filename uses extended residue code format.
			reduced - If True the codes are returned in reduced format.

			
		Exceptions:
			Raises an AttributeError if pdb does not respond to resname() and is not None'''
self
pdb
reduced