PEATSA/Core/Data.py
def writeToFile(self, filename=None, reduced=True):
	
		'''Writes the contents of the receiver to filename as a mutation list.
		
		Parameters
			filename: The file to write to.
			If None the information is written to the default file provided on initialisation
			reduced: If True list is written in reduced format (if it is a Standard Format list)
			
		Exceptions:
			Raises an IOError if the file can't be written to for any reason'''
	
		if filename is None:
			filename = self.filename
	
		stream = open(filename, "w+")
		self.writeToStream(stream, reduced=reduced)
		stream.close()
		
		#If we wrote to the file provided on initialisation
		#set fileExists to True
		if filename == self.filename:
			self.fileExists = True
Writes the contents of the receiver to filename as a mutation list.
		
		Parameters
			filename: The file to write to.
			If None the information is written to the default file provided on initialisation
			reduced: If True list is written in reduced format (if it is a Standard Format list)
			
		Exceptions:
			Raises an IOError if the file can't be written to for any reason
Writes the contents of the receiver to filename as a mutation list.
Parameters
filename: The file to write to.
If None the information is written to the default file provided on initialisation
reduced: If True list is written in reduced format (if it is a Standard Format list)

Raises an IOError if the file can't be written to for any reason
Writes the contents of the receiver to filename as a mutation list . Parameters filename : The file to write to . If None the information is written to the default file provided on initialisation reduced : If True list is written in reduced format ( if it is a Standard Format list ) Raises an IOError if the file can ' t be written to for any reason
def writeToFile(self, filename=None, reduced=True):
		if filename is None:
			filename = self.filename
		stream = open(filename, "w+")
		self.writeToStream(stream, reduced=reduced)
		stream.close()
		if filename == self.filename:
			self.fileExists = True
def writeToFile ( self , filename = None , reduced = True ) : if filename is None : filename = self . filename stream = open ( filename , "w+" ) self . writeToStream ( stream , reduced = reduced ) stream . close ( ) if filename == self . filename : self . fileExists = True
Writes the contents of the receiver to filename as a mutation list.
Writes the contents of the receiver to filename as a mutation list .
'''Writes the contents of the receiver to filename as a mutation list.
		
		Parameters
			filename: The file to write to.
			If None the information is written to the default file provided on initialisation
			reduced: If True list is written in reduced format (if it is a Standard Format list)
			
		Exceptions:
			Raises an IOError if the file can't be written to for any reason''' #If we wrote to the file provided on initialisation #set fileExists to True
self
filename
reduced