Question: How to convert a gff3 to gtf?
gravatar for f.fassihian
4.8 years ago by
f.fassihian20 wrote:

Hi all,

I got a gff3 hsa miRNA annotation file from mirBase. I need to convert it to gtf . I tried to do that with cufflinks-2.2.1 on Linux using gffread :

gffread my.gff3 -T -o my.gtf

But my output file is empty! Does anyone have any suggestion how it can be otherwise converted? Any other tools?


gff gff3 gtf • 12k views
ADD COMMENTlink modified 4.5 years ago by Daniel Standage4.0k • written 4.8 years ago by f.fassihian20
gravatar for Govardhan Anande
4.8 years ago by
Govardhan Anande140 wrote:


I think this might help you. You can also refer answers here and one script here

ADD COMMENTlink modified 4.8 years ago • written 4.8 years ago by Govardhan Anande140
gravatar for Daniel Standage
4.5 years ago by
Daniel Standage4.0k
Davis, California, USA
Daniel Standage4.0k wrote:

I've been able to find GFF3 to GTF converters (as well as GTF to GFF3 converters) before with some Googling. My go-to is the gt gff3_to_gtf program distributed with GenomeTools.

However, I think it's important to state that any converter between GTF and GFF3 will necessarily be context-dependent. Neither format has a strongly specified schema, only conventions that are used and abused to various different extents throughout the scientific community. What this means is that if you pick two GFF3 files at random from "the wild", chances are they will be structured differently. The differences might be significant, or they might be trivial, but (in my experience) it's almost always enough to trip up a Perl/Python script some scientist scrapped together in a couple of hours.

In my experience, the GenomeTools software is the best in terms of strictly validating GFF3 syntax, but getting a "good" conversion from GFF3 to GTF (or vice versa) often involves some programming.

ADD COMMENTlink written 4.5 years ago by Daniel Standage4.0k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1655 users visited in the last hour