daler / gffutils

GFF and GTF file manipulation and interconversion
http://daler.github.io/gffutils
MIT License
282 stars 76 forks source link

How to get all the gene ids of the read gff file #218

Closed z626093820 closed 1 year ago

z626093820 commented 1 year ago

What command should I use to get all the gene ids of the read gff file, thanks in advance For example, get the geneID of the red box of the gff file: image

z626093820 commented 1 year ago

for i in db.all_features(featuretype='gene'): print(i.id)