Counting Read Support At A Particular Position Of A Bam File
1
3
Entering edit mode
11.0 years ago
Shaun Jackman ▴ 420

I have deep sequencing of an amplicon (~1,000,000x), and would like to count the number of reads that show an A,C,G or T at a particular position of a BAM file. I'm not concerned with indels currently. I have previously used the fifth column of samtools mpileup, but due to the high depth, this format is not ideal. Which other tools can you suggest? Is there a standard way to store this read-support information in a VCF file?

Thanks,
Shaun

bam vcf genotype samtools • 7.6k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
2
Entering edit mode
11.0 years ago

Sounds like you want bam-readcount.

ADD COMMENT
0
Entering edit mode

that tool seems like it could be useful, but needs some docs describing what it is, what it does, and how to use it.

ADD REPLY
0
Entering edit mode

bam-readcount works like a charm! Thanks, Chris. A warning though: by default it limits the maximum read depth to 8,000 reads, similar to samtools. I've opened a ticket on GitHub: https://github.com/genome/bam-readcount/issues/3

ADD REPLY

Login before adding your answer.

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