Closed nkrumm closed 11 years ago
Hi Nik, it looks like you are piping SAM to bedtools
, not BAM. Try using -b or -u (preferably):
$ samtools view -u bamfile.bam Example1Contig:912832681-912833713 |
coverageBed -abam stdin -b bedfile.bed | grep MyFeature
I cant seem to get correct output from coverageBed when providing the bam file directly:
bedfile.bed (51,011 lines)
using samtools view on bamfile.bam shows no reads in this interval:
Piping this directly into coverageBed reports zero:
As well as piping the entire bam file into coverageBed:
BUT, using the
-abam <file>
option, a totally different count is registered:Any ideas as to what is going on (or what I missed here!) are appreciated. Thanks, Nik