Recently I ran into an issue with 'bcftools consensus' as I kept getting overlapped variant.
When I checked the vcf file, I noticed something like this.
So can anyone give some advice on this? Thanks.
Fyi, the command I've used was:
bcftools mpileup -Ou -f ref.fasta output.all.bam | bcftools call -Ou -mv | bcftools norm -f ref.fasta -m +any -Oz -o output.vcf.gz
tabix output.vcf.gz
bcftools consensus -f ref.fasta output.vcf.gz > output.consensus.fasta
Thanks for the suggestions! Definitely would want to try option 3. But do you know the command for me to do so? As I have about 2000 of these overlapping variant