Skip to content
Snippets Groups Projects
Commit ed8b797e authored by Clara Moreno's avatar Clara Moreno
Browse files

Ajout colonnes Sequence et CDS dans le fichier HTML de sortie

parent a1dd29f8
Branches
No related tags found
No related merge requests found
......@@ -28,15 +28,14 @@ def gff_a_html(gff_file, output_html):
"Start": feature.start,
"End": feature.end,
"Strand": feature.strand,
"Locus ID": feature.attributes.get("locus_tag", ["N/A"])[0],
"Parent": feature.attributes.get("Parent", ["None"])[0],
"Gene Product": feature.attributes.get("product", ["Unknown"])[0],
"Sequence": feature.attributes.get('Sequence'),
"CDS": feature.attributes.get('CDS'),
}
data.append(entry)
# TABLEAU :
df = pd.DataFrame(data, columns=["ID", "Start", "End", Strand]) #le reste fonctionne pas
df = pd.DataFrame(data, columns=["ID", "Start", "End", "Strand","Sequence", "CDS"])
# fichier HTML
df.to_html(output_html, index=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment