This file was a dummy example run that only allowed 10 successfully-mapped reads (so pretty much all positions are coverage 0, with some coverage 1), and the test.low_depth.tsv file is fine (it says all positions are low depth), but the consensus sequence has nucleotides at pretty much all positions, whereas it should be N everywhere:
The bug seems to occur when the VCF file has no variants. If I put even one dummy variant in a low-depth region (i.e., in a region included in *.low_depth.tsv), bcftools masks the consensus sequence properly
This file was a dummy example run that only allowed 10 successfully-mapped reads (so pretty much all positions are coverage 0, with some coverage 1), and the
test.low_depth.tsv
file is fine (it says all positions are low depth), but the consensus sequence has nucleotides at pretty much all positions, whereas it should beN
everywhere:test.tar.gz test.rf.txt
Probably some (extremely unrealistic) corner case in the conversion from VCF to consensus sequence