Exemplo n.º 1
0
def load_k_model_fits(FILE):
	S 	= None
	G 	= list()
	with open(FILE) as FH:
		for line in FH:
			if line[0]==">":
				if S is not None :
					G.append(S)
				S 	=  segment(line)
			elif S is not None:
				S.add_fit(line)
	if S is not None and S.check():
		G.append(S)
	return G
	def insert_model_fit(self, FILE, cell_type_1=False):
		G,S = {},None
		with open(FILE) as FH:
			for line in FH:
				if line[0]==">":
					if S is not None :
						G[ID]=S
					S 	=  segment(line)
					ID 	= line.split("|")[0]
				elif S is not None:
					S.add_fit(line)
		if cell_type_1 == True:
			self.cell_type_1_model_fits 	= G
		else:
			self.cell_type_2_model_fits 	= G