Hi! For some reason when I try bcf consensus, indels are not taken into account. When i do samtools mpileup and bcftools call to create a vcf file, it will annotate indels but with a 0/0 genotype. I think that has to do with bcftools consensus not including indels it in the consensus seq. Have you noticed this before? Thanks
This is my pipeline:
bbmap.sh index ref.fasta
bbmap.sh ref='ref.fasta' in='sample.fasta' out='output.sam'
samtools view -bS output.sam > output.bam
samtools sort output.bam > sorted.bam
samtools index sorted.bam
samtools mpileup -uf SA05sequence.fasta sorted.bam | bcftools call -c > vars.vcf
bgzip -c vars.vcf vars.vcf.gz
tabix -p vcf vars.vcf.gz
bcftools consensus --fasta-ref ref.fasta vars.vcf.gz -o consensus.fasta
It supports only SNVs and deletions. Not insertions