get deletion coverage from .bam file
2
0
Entering edit mode
8.4 years ago

Dear all:

I mapped the NGS whole genome sequencing reads to reference genome sequence, to detection natural variations of CDS region. To filter out some protein coding genes might with negative deletion calling, I want to get the coverage of every deletion variation. Like if there there are 5 reads go cross an deletion, I expect the depth would be 5.

I tried "samtools depth", but it would not give the expected result. If all the reads confirm a deletion, the samtools would output the depth as 0.

Any idea to do that please?

bam deletion indel • 3.4k views
ADD COMMENT
1
Entering edit mode
8.4 years ago

BBMap's pileup.sh program by default considers deletions as covered. This can be turned on or off.

ADD COMMENT
0
Entering edit mode
8.4 years ago
trausch ★ 1.9k
bedtools coverage -abam <align.bam> -b <deletion.bed>
ADD COMMENT

Login before adding your answer.

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