Gist ac0e4a9bdb2f03d365c4402d04ecba09
✓ Published0🌍 Public
NNpfn
Last edited Feb 8, 2019
Created on Feb 8, 2019
This example shows a command-line workflow for detecting genetic variants from sequencing reads mapped to a reference genome. It first uses `samtools mpileup` to generate a binary call format (BCF) file, then `bcftools call` to produce a VCF file of variants. A second, independent variant call is made using `freebayes` with a ploidy setting of one, outputting its own VCF. The script processes all sorted BAM files in a mapping directory, using the NC_012967.fas reference, demonstrating two standard variant-calling pipelines for haploid samples.
AI-generated description