How to convert gtf to bed format
0
0
Entering edit mode
6.9 years ago
Vasu ▴ 790

I have an annotation gtf file. would like to convert it to bed (BED 12 columns) format. I want the bed file with 12 columns mentioned here [https://genome.ucsc.edu/FAQ/FAQformat.html#format1]

Which means I need the full BED (BED12) that include exon information

thanq

gtf bed • 7.4k views
ADD COMMENT
1
Entering edit mode

Take a look at gtf2bed from BEDOPS. Information about those extra columns would only be added if you have it in your gtf file.

ADD REPLY
0
Entering edit mode

What if I dont have in my gtf file. how can i get 12 column in BED format? BTW tried with BEDOPS but it gave only 6 columns. This means my gtf file doesnt have 12. What i should do now?

ADD REPLY
0
Entering edit mode

Depending on what you are trying to do you will need to generate/provide that data, which mainly deals with display of the features.

ADD REPLY
0
Entering edit mode

I would like to use that 12 column BED file along with BAM for calculating Transcript integrity number (http://rseqc.sourceforge.net/#tin-py)

ADD REPLY
0
Entering edit mode

Have you tried to use the 6 column BED (even though the page you linked seems to indicate a 12-column file)?

ADD REPLY
0
Entering edit mode

Sorry for the late reply. Yes, I tried used the 6 column BED file and it gave an output saying - NOTE:input bed must be 12-column

ADD REPLY
0
Entering edit mode

See if this BED12 format file works with your data (C: GENCODE v.27 BED 12 file ). It is only a derived file with made up data for display features and your annotation file needs to have 6 columns.

ADD REPLY

Login before adding your answer.

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