This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Cufflinks GTF To Gbrowse GFF3

Which script do you use to convert cufflinks GTF output to GFF3 output suitable to upload to Gbrowse?

cufflinks gff3

You want a script/tool for your work and just wanna do comparisons

I found gtf2gff3.pl, but it hangs at cufflinks output that contains "." as strand, so i am thinking what to do with those transcripts now.

2 answers

I know this is an old question but I just found it on Google so here's the answer: Cufflinks comes with a tool called "gffread" which can transform the gtf-output to gff3. Usage is:

gffread -E merged.gtf -o- > merged.gff3

This will warn you about any errors ("-E") and print to standard out ("-o-") into the file merged.gff3.

Unfortunately, different flavors of GTF make it difficult to make a generic converter. It is possible that you could create a Bio::DB::GFF database directly from your GTF. Bio::DB::GFF (whose BioPerl loaders are called bploadgff.pl, bpfastloadgff.pl and bpbulkloadgff.pl) works with GFF2 data, and GTF looks a lot like GFF2. I haven't tried it, but it wouldn't surprise me if it worked.

It would be best to ask further questions on this topic on the GBrowse mailing list (https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse) since there are lots of people on that list who deal with problems like these on a regular basis.

Log in to answer this question.