def gene(cs, argument): print_colored("GENE", "yellow") gene = Seq() folder = "../P0/Sequences/" gene.read_fasta(folder + argument + ".txt") cs.send(str(gene).encode()) return gene
def gene(seq_name): PATH = "./Sequences/" + seq_name + ".txt" s1 = Seq() # s1.read_fasta(PATH) context = {"gene_name": seq_name, "gene_contents": s1.read_fasta(PATH)} contents = read_template_html_file("./html/gene.html").render( context=context) return contents