Source of bed file
1
0
Entering edit mode
6.8 years ago
Arindam Ghosh ▴ 530

I am using Homo_sapiens.GRCh38.84.gtf from ENSEMBL for mapping. For post alignment QC using RseQC I need bed file. From where can I get one? I tried using BEDOps but the gtf file doesnot match with the format gtf2bed file uses.

RNA-Seq bed ngs • 2.1k views
ADD COMMENT
0
Entering edit mode
6.8 years ago

It's expecting a BED12 file. Here's the rule I use in my Makefile to do the gtf to bed12 conversion:

%.bed: %.gtf
        awk '{if ($$3 != "gene") print $$0;}' $< \
        | grep -v "^#" \
        | /package/UCSCtools/gtfToGenePred /dev/stdin /dev/stdout \
        | /package/UCSCtools/genePredToBed stdin $@

gtfToGenePred and genePredToBed can be downloaded from UCSC. The removal of gene entries are due to them breaking these tools (likewise, you have to remove any comment lines).

ADD COMMENT

Login before adding your answer.

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