Open MaelLefeuvre opened 2 years ago
Hi Maël, Sorry for the late reply, I was away, but that seems reasonable and I'll implement it once I test it. I might include some extra conditional checks beforehand too. Thanks very much for the improvement suggestion!
Hello Daniel,
I think I just noticed a small, easily fixable bug within one of your helper scripts, while manipulating extremely low coverage
.bam
files.Bug description:
It looks like there's a small typo within the
downsamplebam.R
helper script, line 20, i.e.:This in turn returns an incorrect
samtools view
command, in the form of...Where, I'm suspecting the latter should instead be:
This results in
downsampleBam.R
simply outputting samtools' error message (see example below) and continuing onBug reproducibility:
downsampleBam.R
on any.bam
file containing a number of reads (mapLen
) that is less or equal than the requested treshold (downsampleN
)Proposed fix:
Change line
downsampleBam.R:20
to:Anyway, hope this helps, and that I'm not mistaken!
Cheers,
Maël Lefeuvre