PEATSA/Core/Utilities.py
def WeightChangeForMutation(mutationCode):

	'''Calculates the change in Molecular Weight due to a mutation
	
	Params:
		mutationCode - must be in extended format (contain the wild-type residue code)
		
	Returns
		The difference in mw between new and old residues i.e. (New - Old)	
	'''	

	if IsReducedCode(mutationCode):
		mutationCode = ConvertMutationCodeFromReducedFormat(mutationCode, extended=True)

	components = ParseMutationCode(mutationCode)
	if(len(components) != 4):
		raise ValueError, 'Mutation code must be extended to determine weight change'
		
	return weights[components[3]] - weights[components[2]]
Calculates the change in Molecular Weight due to a mutation
	
	Params:
		mutationCode - must be in extended format (contain the wild-type residue code)
		
	Returns
		The difference in mw between new and old residues i.e. (New - Old)	
	
Calculates the change in Molecular Weight due to a mutation
Params:
mutationCode - must be in extended format (contain the wild-type residue code)

Returns
The difference in mw between new and old residues i.e. (New - Old)
Calculates the change in Molecular Weight due to a mutation Params : mutationCode - must be in extended format ( contain the wild - type residue code ) Returns The difference in mw between new and old residues i . e . ( New - Old )
def WeightChangeForMutation(mutationCode):
	if IsReducedCode(mutationCode):
		mutationCode = ConvertMutationCodeFromReducedFormat(mutationCode, extended=True)
	components = ParseMutationCode(mutationCode)
	if(len(components) != 4):
		raise ValueError, 'Mutation code must be extended to determine weight change'
	return weights[components[3]] - weights[components[2]]
def WeightChangeForMutation ( mutationCode ) : if IsReducedCode ( mutationCode ) : mutationCode = ConvertMutationCodeFromReducedFormat ( mutationCode , extended = True ) components = ParseMutationCode ( mutationCode ) if ( len ( components ) != 4 ) : raise ValueError , 'Mutation code must be extended to determine weight change' return weights [ components [ 3 ] ] - weights [ components [ 2 ] ]
Calculates the change in Molecular Weight due to a mutation
Params:
mutationCode - must be in extended format (contain the wild-type residue code)
Calculates the change in Molecular Weight due to a mutation Params : mutationCode - must be in extended format ( contain the wild - type residue code )
'''Calculates the change in Molecular Weight due to a mutation
	
	Params:
		mutationCode - must be in extended format (contain the wild-type residue code)
		
	Returns
		The difference in mw between new and old residues i.e. (New - Old)	
	'''
mutationCode