PEATSA/Core/Data.py
def _writeSinglePointMutationListToStream(self, stream):
	
		'''Write the mutants to stream in single point mutation format'''
	
		residues = {}
		#Find which residues have SPM's
		for set in self.mutantList():
			residueCode = set.residueCodes(reduced=False)[0]
			chain, index, mutation = Utilities.ParseMutationCode(set.mutationCodes(reduced=False)[0])
			if not residues.has_key(residueCode):
				residues[residueCode] = []
			residues[residueCode].append(mutation)
		#Write out the mutants of each residue	
		for key in residues.keys():
			string = "%s" % key
			for mutation in residues[key]:
				string = string + " ,%s" % mutation
			string = string + '\n'
			stream.write(string)
Write the mutants to stream in single point mutation format
Write the mutants to stream in single point mutation format
Write the mutants to stream in single point mutation format
def _writeSinglePointMutationListToStream(self, stream):
		residues = {}
		for set in self.mutantList():
			residueCode = set.residueCodes(reduced=False)[0]
			chain, index, mutation = Utilities.ParseMutationCode(set.mutationCodes(reduced=False)[0])
			if not residues.has_key(residueCode):
				residues[residueCode] = []
			residues[residueCode].append(mutation)
		for key in residues.keys():
			string = "%s" % key
			for mutation in residues[key]:
				string = string + " ,%s" % mutation
			string = string + '\n'
			stream.write(string)
def _writeSinglePointMutationListToStream ( self , stream ) : residues = { } for set in self . mutantList ( ) : residueCode = set . residueCodes ( reduced = False ) [ 0 ] chain , index , mutation = Utilities . ParseMutationCode ( set . mutationCodes ( reduced = False ) [ 0 ] ) if not residues . has_key ( residueCode ) : residues [ residueCode ] = [ ] residues [ residueCode ] . append ( mutation ) for key in residues . keys ( ) : string = "%s" % key for mutation in residues [ key ] : string = string + " ,%s" % mutation string = string + '\n' stream . write ( string )
Write the mutants to stream in single point mutation format
Write the mutants to stream in single point mutation format
'''Write the mutants to stream in single point mutation format''' #Find which residues have SPM's #Write out the mutants of each residue	
self
stream