PEATSA/Core/Data.py
def mutationCodes(self, pdb=None, reduced=True):
	
		'''Returns a list of the mutation codes in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the mutations are returned in extended 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.
			Raises an MutationCodeApplicationError if the mutation code cannot be 
			applied to the supplied pdb to generate an extended code.'''
	
		extended = False
		if pdb is not None:
			extended = True
			#This method will raise MutationCodeApplicationError if the extended code can't be created
			mutationCodes = self._extendedMutationCodes(pdb)
		else:
			mutationCodes = copy.deepcopy(self.mutationCodeList)
		
		if reduced is True:
			mutationCodes = [Utilities.ConvertMutationCodeToReducedFormat(code, extended=extended) for code in mutationCodes]	
					
		return mutationCodes
Returns a list of the mutation codes in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the mutations are returned in extended 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.
			Raises an MutationCodeApplicationError if the mutation code cannot be 
			applied to the supplied pdb to generate an extended code.
Returns a list of the mutation codes in the receiver in standard format
Parameters:
pdb - An optional protool instance.
If this is provided the mutations are returned in extended 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.
Raises an MutationCodeApplicationError if the mutation code cannot be
applied to the supplied pdb to generate an extended code.
Returns a list of the mutation codes in the receiver in standard format Parameters : pdb - An optional protool instance . If this is provided the mutations are returned in extended 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 . Raises an MutationCodeApplicationError if the mutation code cannot be applied to the supplied pdb to generate an extended code .
def mutationCodes(self, pdb=None, reduced=True):
		extended = False
		if pdb is not None:
			extended = True
			mutationCodes = self._extendedMutationCodes(pdb)
		else:
			mutationCodes = copy.deepcopy(self.mutationCodeList)
		if reduced is True:
			mutationCodes = [Utilities.ConvertMutationCodeToReducedFormat(code, extended=extended) for code in mutationCodes]	
		return mutationCodes
def mutationCodes ( self , pdb = None , reduced = True ) : extended = False if pdb is not None : extended = True mutationCodes = self . _extendedMutationCodes ( pdb ) else : mutationCodes = copy . deepcopy ( self . mutationCodeList ) if reduced is True : mutationCodes = [ Utilities . ConvertMutationCodeToReducedFormat ( code , extended = extended ) for code in mutationCodes ] return mutationCodes
Returns a list of the mutation codes in the receiver in standard format
Parameters:
pdb - An optional protool instance.
Returns a list of the mutation codes in the receiver in standard format Parameters : pdb - An optional protool instance .
'''Returns a list of the mutation codes in the receiver in standard format
		
		Parameters:
			pdb - An optional protool instance.
			If this is provided the mutations are returned in extended 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.
			Raises an MutationCodeApplicationError if the mutation code cannot be 
			applied to the supplied pdb to generate an extended code.''' #This method will raise MutationCodeApplicationError if the extended code can't be created
self
pdb
reduced