Sequence alignment with bowtie2
Help 7 / 8
Downstream tools

Use bcftools to call variants

To generate variant calls in the VCF format, run bcftools mpileup, followed by bcftools call:

bcftools mpileup -f $REF_FASTA eg2.sorted.bam | bcftools call -m -v -Ob -o eg2.bcf -

where:

  • -Ob: we want the output to be a BCF file (i.e. binary VCF). To output a text VCF, use -Ov.
  • -m: use the default variant calling method
  • -v: only output the variants (i.e. don’t list the sites where we match the reference sequence)

Then to view the variants, run:

bcftools view eg2.bcf

See the official bcftools guide to variant calling for more details and variations on this process.

Loading...