PEATSA/Core/Data.py
def isSinglePointMutationFormat(self):
	
		'''Returns True if the list is in SPM format.
		
		A list is in SPM format if every entry refers to a SPM.'''
		
		result = False
		#If each MutationSet instance ony contains one residue code then they 
		#are single point mutations
		mutationsPerSet = [len(set.residueCodes()) for set in self.mutantList()]
		if mutationsPerSet.count(1) == len(self.mutants):
			result = True
			
		return result
Returns True if the list is in SPM format.
		
		A list is in SPM format if every entry refers to a SPM.
Returns True if the list is in SPM format.
A list is in SPM format if every entry refers to a SPM.
Returns True if the list is in SPM format . A list is in SPM format if every entry refers to a SPM .
def isSinglePointMutationFormat(self):
		result = False
		mutationsPerSet = [len(set.residueCodes()) for set in self.mutantList()]
		if mutationsPerSet.count(1) == len(self.mutants):
			result = True
		return result
def isSinglePointMutationFormat ( self ) : result = False mutationsPerSet = [ len ( set . residueCodes ( ) ) for set in self . mutantList ( ) ] if mutationsPerSet . count ( 1 ) == len ( self . mutants ) : result = True return result
Returns True if the list is in SPM format.
Returns True if the list is in SPM format .
'''Returns True if the list is in SPM format.
		
		A list is in SPM format if every entry refers to a SPM.''' #If each MutationSet instance ony contains one residue code then they  #are single point mutations
self