PEATSA/WebApp/Data.py
def mutationListFile(self):
	
		'''Returns a Core.Data.MutationListFile instance containing the mutations the job is to run on
		
		If the no mutationListFile has been set for the Job this method returns None'''
	
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
	
		mutationList = None
		if self.isMutationList():
			self.connection.commit()
			statement = """SELECT MutationData FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
			self.cursor.execute(statement)
			rows = self.cursor.fetchall()
			mutationData = rows[0][0]
			mutationDataStream = StringIO.StringIO(mutationData)
			mutationList = Core.Data.mutationListFileFromStream(stream=mutationDataStream)

		return mutationList
Returns a Core.Data.MutationListFile instance containing the mutations the job is to run on
		
		If the no mutationListFile has been set for the Job this method returns None
Returns a Core.Data.MutationListFile instance containing the mutations the job is to run on
If the no mutationListFile has been set for the Job this method returns None
Returns a Core . Data . MutationListFile instance containing the mutations the job is to run on If the no mutationListFile has been set for the Job this method returns None
def mutationListFile(self):
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
		mutationList = None
		if self.isMutationList():
			self.connection.commit()
			statement = """SELECT MutationData FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
			self.cursor.execute(statement)
			rows = self.cursor.fetchall()
			mutationData = rows[0][0]
			mutationDataStream = StringIO.StringIO(mutationData)
			mutationList = Core.Data.mutationListFileFromStream(stream=mutationDataStream)
		return mutationList
def mutationListFile ( self ) : if not self . exists ( ) : raise Exceptions . DatabaseRetrievalError , "Job Id %s does not exist in the database" % self . identification mutationList = None if self . isMutationList ( ) : self . connection . commit ( ) statement = """SELECT MutationData FROM %s WHERE JobID='%s' """ % ( self . jobTable , self . identification ) self . cursor . execute ( statement ) rows = self . cursor . fetchall ( ) mutationData = rows [ 0 ] [ 0 ] mutationDataStream = StringIO . StringIO ( mutationData ) mutationList = Core . Data . mutationListFileFromStream ( stream = mutationDataStream ) return mutationList
Returns a Core.Data.MutationListFile instance containing the mutations the job is to run on
If the no mutationListFile has been set for the Job this method returns None
Returns a Core . Data . MutationListFile instance containing the mutations the job is to run on If the no mutationListFile has been set for the Job this method returns None
'''Returns a Core.Data.MutationListFile instance containing the mutations the job is to run on
		
		If the no mutationListFile has been set for the Job this method returns None'''
self