PEATSA/Core/Programs.py
def _chopDeltaStabilityResultLine(self, resultLine):
	
		'''Chops the result line from a delta stability run and returns the essential information
		
		Note: Private method for internal use only
		
		Returns:
			A list containing the stability information
			'''
		
		#Chop up the result
		components = resultLine.split(" ")
		#Get rid of the pdb name which is the first string
		#Then make floats from all the values
		components.pop(0)
		components = [element.strip() for element in components]
		components = [element for element in components if element != "|" and element != ""]
		components = [float(element) for element in components]
	
		#Now just take the last 7 float values which are the 5 components of 
		#the overall change in stability, plus the target and total stability. 
		#Get rid of the target because its meaningless here.
		
		components = components[-7:]
		components.pop(5)
		
		#The water-bridges term is not output by the msc task - calculate it here
		subtotal = reduce(operator.add, components[:-1])
		bridges = components[-1] - subtotal
		components.insert(-1, bridges)
		
		return components
Chops the result line from a delta stability run and returns the essential information
		
		Note: Private method for internal use only
		
		Returns:
			A list containing the stability information
			
Chops the result line from a delta stability run and returns the essential information
Note: Private method for internal use only
Chops the result line from a delta stability run and returns the essential information Note : Private method for internal use only
def _chopDeltaStabilityResultLine(self, resultLine):
		components = resultLine.split(" ")
		components.pop(0)
		components = [element.strip() for element in components]
		components = [element for element in components if element != "|" and element != ""]
		components = [float(element) for element in components]
		components = components[-7:]
		components.pop(5)
		subtotal = reduce(operator.add, components[:-1])
		bridges = components[-1] - subtotal
		components.insert(-1, bridges)
		return components
def _chopDeltaStabilityResultLine ( self , resultLine ) : components = resultLine . split ( " " ) components . pop ( 0 ) components = [ element . strip ( ) for element in components ] components = [ element for element in components if element != "|" and element != "" ] components = [ float ( element ) for element in components ] components = components [ - 7 : ] components . pop ( 5 ) subtotal = reduce ( operator . add , components [ : - 1 ] ) bridges = components [ - 1 ] - subtotal components . insert ( - 1 , bridges ) return components
Chops the result line from a delta stability run and returns the essential information
Note: Private method for internal use only
Chops the result line from a delta stability run and returns the essential information Note : Private method for internal use only
'''Chops the result line from a delta stability run and returns the essential information
		
		Note: Private method for internal use only
		
		Returns:
			A list containing the stability information
			''' #Chop up the result #Get rid of the pdb name which is the first string #Then make floats from all the values #Now just take the last 7 float values which are the 5 components of  #the overall change in stability, plus the target and total stability.  #Get rid of the target because its meaningless here. #The water-bridges term is not output by the msc task - calculate it here
A list containing the stability information
A list containing the stability information
self
resultLine