GFF3 to GTF
1
0
Entering edit mode
8.8 years ago
silas008 ▴ 170

I'm tryning to convert a c elegans mirBase gff3 file to gtf file with gffread (by cufflinks) but my gtf output is blank.

The code:

gffread miRNA_WBcel215.gff3 -T -o miRNA_WBcel215.gtf

Who knows why?

Thank you

gff gtf • 6.1k views
ADD COMMENT
0
Entering edit mode

Hmm.. the command seems fine. Could you add some lines of WBcel215.gff3 in order to see how it looks like? For other hand, maybe you'd like to try the other solutions (apart from the gffread utility) proposed in this post.

ADD REPLY
0
Entering edit mode
8.8 years ago
Juke34 8.9k

You could try the simple Perl approach to check if it works:

use Bio::Tools::GFF;

# $gff corresponds to your gff3 input file
my $gff_in = Bio::Tools::GFF->new(-file => $gff, -gff_version => 3);

# $gtf corresponds to your gtf output file
my $gtf_out = Bio::Tools::GFF->new(-file => $gtf, -gff_version => 2.5);

while( my $feature = $gff_in->next_feature) {
    $gtf_out->write_feature($feature);
}
ADD COMMENT

Login before adding your answer.

Traffic: 2477 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6