PEATSA/Core/Data.py
def _parseStandardMutationList(self, stream):
	
		'''Parses a mutation list in standard format'''
		
		stream.seek(0)
		lines = [line.strip('\n') for line in stream.readlines()]
		lines = [line.strip() for line in lines]
		lines = [line for line in lines if line != ""]

		for line in lines:
			try:
				set = MutationSet(code=line)
				self.addMutant(set, autoUpdate=False)
			except Exceptions.MutationCodeFormatError, data:
				raise Exceptions.MutationListFileFormatError, "Detected an error with a mutation code in standard mutation list.\n%s" % data
Parses a mutation list in standard format
Parses a mutation list in standard format
Parses a mutation list in standard format
def _parseStandardMutationList(self, stream):
		stream.seek(0)
		lines = [line.strip('\n') for line in stream.readlines()]
		lines = [line.strip() for line in lines]
		lines = [line for line in lines if line != ""]
		for line in lines:
			try:
				set = MutationSet(code=line)
				self.addMutant(set, autoUpdate=False)
			except Exceptions.MutationCodeFormatError, data:
				raise Exceptions.MutationListFileFormatError, "Detected an error with a mutation code in standard mutation list.\n%s" % data
def _parseStandardMutationList ( self , stream ) : stream . seek ( 0 ) lines = [ line . strip ( '\n' ) for line in stream . readlines ( ) ] lines = [ line . strip ( ) for line in lines ] lines = [ line for line in lines if line != "" ] for line in lines : try : set = MutationSet ( code = line ) self . addMutant ( set , autoUpdate = False ) except Exceptions . MutationCodeFormatError , data : raise Exceptions . MutationListFileFormatError , "Detected an error with a mutation code in standard mutation list.\n%s" % data
Parses a mutation list in standard format
Parses a mutation list in standard format
'''Parses a mutation list in standard format'''
self
stream