VariantBam
VariantBam copied to clipboard
variant command overestimates max coverage with Nanopore reads
Dear VariantBam developers,
I ran the command variant $bam -m 100 -o mini.bam -b to obtain a maximum coverage of 50 along my sample, however when I visually inspected the result in the genome browser I noticed that the maximum coverage is higher than 50, as visible in the picture:
Maybe, this bug could be due to the fact that Nanopore reads are not all of the same length, unlike Illumina reads?
Thanks in advance, Paola Maragno
Doesn't the command with -m 100 set max coverage to 100, not 50?
Sorry, I reported that command as an example, but I set -m to 50 to obtain a maximum coverage of 50 along my sample.
OK hard to say -- the issue must be somewhere in STCoverage (https://github.com/walaj/VariantBam/blob/master/src/STCoverage.cpp). I can try to re-create and fix if you have the ability to share a minimal BAM fragment (e.g. with a Dropbox link, can send to [email protected])
I have just shared with you by mail ([email protected]) the bam file. Thanks for the help!
Were you ever able to get to the bottom of this @walaj?