Verified Commit fdb6eac6 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

kb: fix t2g.py to have first transcript and then gene

parent cb215113
......@@ -20,4 +20,4 @@ if __name__ == "__main__":
with open("t2g.txt", "w") as t2g:
for gene in db.all_features():
for transcript in db.children(gene, featuretype='transcript', order_by='start'):
t2g.write(str(gene["gene_id"][0]) + "\t" + str(transcript["transcript_id"][0]) + "\n")
t2g.write(str(transcript["transcript_id"][0]) + "\t" + str(gene["gene_id"][0]) + "\n")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment