bam-readcount tool: output zero coverage bases
2
0
Entering edit mode
7.6 years ago
user230613 ▴ 380

I think the question title is self explanatory. Is it possible to output bases with zero coverage using bam-readcount tool. Something similar to samtools depth:

Usage: samtools depth [options] in1.bam [in2.bam [...]]
Options:
   -a   output all positions (including zero depth)
bam-readcount • 2.7k views
ADD COMMENT
1
Entering edit mode
7.6 years ago

is it not? The README says otherwise: "This program reports readcounts for each base at each position requested."!

ADD COMMENT
0
Entering edit mode

You're right. My mistake :/

ADD REPLY
0
Entering edit mode
7.6 years ago

You are correct that bam-readcount does not output zero-coverage bases. It requires a little post-processing to add those back in. (such as what's done here https://github.com/genome/genome/blob/master/lib/perl/Genome/Model/Tools/Analysis/Coverage/BamReadcount.pm)

ADD COMMENT

Login before adding your answer.

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