Difference between exon positions in hg19 and b37?
1
0
Entering edit mode
8.7 years ago
mct2159 • 0

I have a bunch of .bam files along with a .bed file containing the intervals for the exons. However, the .bam files are according to the b37 reference while the .bed file is according to the hg19 reference. If necessary, how can I convert the coordinates in the .bed file to a b37 reference?

sequencing alignment • 4.2k views
ADD COMMENT
3
Entering edit mode
8.7 years ago

Use sed to convert the names. Devon wrote a github repo containing the names in each version: https://github.com/dpryan79/ChromosomeMappings/blob/master/GRCh37_UCSC2ensembl.txt

ADD COMMENT
0
Entering edit mode

just for anybody who lands here first. This is updated answer using bcftools. still need Devon's file(s).

ADD REPLY

Login before adding your answer.

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