VariantBam icon indicating copy to clipboard operation
VariantBam copied to clipboard

variant command overestimates max coverage with Nanopore reads

Open pmaragno opened this issue 2 years ago • 5 comments

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:

VariantBam_example_50X

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

pmaragno avatar May 15 '23 13:05 pmaragno

Doesn't the command with -m 100 set max coverage to 100, not 50?

walaj avatar May 15 '23 16:05 walaj

Sorry, I reported that command as an example, but I set -m to 50 to obtain a maximum coverage of 50 along my sample.

pmaragno avatar May 15 '23 17:05 pmaragno

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])

walaj avatar May 15 '23 17:05 walaj

I have just shared with you by mail ([email protected]) the bam file. Thanks for the help!

pmaragno avatar May 17 '23 08:05 pmaragno

Were you ever able to get to the bottom of this @walaj?

mbhall88 avatar Apr 17 '24 05:04 mbhall88