Question: How to convert a gff3 to gtf?
1
gravatar for f.fassihian
2.8 years ago by
f.fassihian10
Germany
f.fassihian10 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?

Thanks!

gff gff3 gtf • 8.3k views
ADD COMMENTlink modified 2.5 years ago by Daniel Standage3.8k • written 2.8 years ago by f.fassihian10
1
gravatar for Govardhan Anande
2.8 years ago by
Australia
Govardhan Anande130 wrote:

Hi,

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

ADD COMMENTlink modified 2.8 years ago • written 2.8 years ago by Govardhan Anande130
1
gravatar for Daniel Standage
2.5 years ago by
Daniel Standage3.8k
Davis, California, USA
Daniel Standage3.8k 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 2.5 years ago by Daniel Standage3.8k
Please log in to add an answer.

Help
Access

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