I want to variant call using bcftools call. However, when researching, I see a lot of people running bcftools mpileup before doing the actual variant calling with call
. For example (from here):
bcftools mpileup -f reference.fa alignments.bam | bcftools call -mv -Ob -o calls.bcf
Could someone explain to me why this is done? I also don't understand what is meant with "mpileup
generates genotype likelihoods at each genomic position with coverage"