Currently samtools consensus supports a "min coverage" option, but that's only for the simple mode. After tweaking the Bayesian method parameters I tend to obtain better results than with the simple mode indeed. However calling a nucleotide when covered by only a single read is frigthening to say the least, especially when it's a mismatch compared to the reference and the mismatch is called nonetheless.
I think the tool would greatly benefit from a "N masking" pass over the sequence to flag the positions that aren't deeply covered enough as N. This can be done at the end of the bayesian consensus sequence call. Or at the very least output them in lower letter for instance so the end user can easily flag these nucleotides and replace them with Ns.
Currently samtools consensus supports a "min coverage" option, but that's only for the simple mode. After tweaking the Bayesian method parameters I tend to obtain better results than with the simple mode indeed. However calling a nucleotide when covered by only a single read is frigthening to say the least, especially when it's a mismatch compared to the reference and the mismatch is called nonetheless.
I think the tool would greatly benefit from a "N masking" pass over the sequence to flag the positions that aren't deeply covered enough as N. This can be done at the end of the bayesian consensus sequence call. Or at the very least output them in lower letter for instance so the end user can easily flag these nucleotides and replace them with Ns.