I am interfacing with samtools' libbam via the Perl module Bio::DB::Sam.
bam_pileup.c sets the max depth at 8000, and allows it to be overridden with the maxcnt variable:
iter->maxcnt = 8000;
...
void bam_plp_set_maxcnt(bam_plp_t iter, int maxcnt)
{
iter->maxcnt = maxcnt;
}
But bam_lpileup.c (which keeps track of the level of the read) doesn't seem to have an analogous max depth setting.
I am a little out of my element here, but I am hoping that someone who is intimately familiar with the samtools source code can suggest a way to un-limit the depth when using the lpileup function.
I wonder how people aren't bothered about this..
description from
Bio::DB::Sam
..This is outrageous.. by a cross check i luckily found the abnormal coverage(saturating @ 8000) ..a new user can easily be deceived by this big shortcoming of
Bio::DB::Sam
..