Convert bed12 to GFF
3
0
Entering edit mode
7.2 years ago
cmdcolin ★ 3.8k

There are several posts online about converting a GFF/GTF to BED12 but is there any way to go the other direction and convert BED12 to GFF?

bed gff bed12 • 5.9k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode

Hi there, I tried out genometools "gt bed_to_gff3 file.bed > out.gff" but it is giving a funny error about "gt bed_to_gff3: error: file "file.bed": line 116470: BED feature has length 0" but the file does not have a line 116470, it is only half that many lines. I dunno where to check for debugging it

ADD REPLY
0
Entering edit mode

I was able to get the BED_to_GFF app that I assume the raetsch lab created at the galaxy server here to work https://galaxy.inf.ethz.ch/ but it is corrupt (the children have same ID as parents) and outputs gtf/gff2 instead of gff3

ADD REPLY
0
Entering edit mode

Could you paste your BED file?

ADD REPLY
0
Entering edit mode
ADD REPLY
2
Entering edit mode
5.7 years ago
ta_awwad ▴ 340

use bedToGenePred & genePredToGtf UCSC Kent tools: http://hgdownload.cse.ucsc.edu/admin/exe/macOSX.x86_64/

bedToGenePred.dms  infile.bed  outfile.gpf 

genePredToGtf.dms "file" infile.gpf  outfile.gtf
ADD COMMENT
1
Entering edit mode
7 months ago
alejandrogzi ▴ 120

Hi! This tool: https://github.com/alejandrogzi/bed2gtf does exactly what you need! It overcomes some limitations of using C binaries.

ADD COMMENT
0
Entering edit mode

Now there is bed2gff, if you want to work only with a gff file!

ADD REPLY
0
Entering edit mode
7 months ago
Juke34 8.5k

There is also AGAT that has a convenient bed to gff script (can also produce GTF): https://agat.readthedocs.io/en/latest/tools/agat_convert_bed2gff.html

ADD COMMENT

Login before adding your answer.

Traffic: 1965 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