{
  "name": "bcftools subcommands: purpose, input requirements and documented caveats",
  "description": "Compiled from the official bcftools manual (git version 1.22-8, updated 2025-06-17): nine subcommands with their stated purpose, input requirements and caveats the manual documents.",
  "page": "https://casrai.org/guides/bcftools",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-14T06:09:48Z",
  "temporalCoverage": "2025",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Subcommand",
      "unit": "",
      "description": ""
    },
    {
      "name": "Purpose",
      "unit": "",
      "description": ""
    },
    {
      "name": "Input requirement",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented caveat",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Subcommand": "mpileup",
      "Purpose": "Genotype likelihoods from BAM/CRAM alignments",
      "Input requirement": "Alignment files; region (-r) needs an index, -t streams without one",
      "Documented caveat": "Moved from samtools; default max depth 250 per file per position"
    },
    {
      "Subcommand": "call",
      "Purpose": "SNP and indel calling from likelihoods",
      "Input requirement": "Output of mpileup; choose -m (recommended for most tasks) or -c",
      "Documented caveat": "Default ploidy 2 for regions not listed; -P prior only with -m"
    },
    {
      "Subcommand": "norm",
      "Purpose": "Left-align and normalize indels, check REF, split or join multiallelics",
      "Input requirement": "Single file; left-alignment only with --fasta-ref",
      "Documented caveat": "-c check-ref modes e, w, x, s; s does not fix strand issues"
    },
    {
      "Subcommand": "merge",
      "Purpose": "Combine files from non-overlapping sample sets",
      "Input requirement": "Multiple indexed (compressed) files",
      "Documented caveat": "Records merge only across files; duplicate sample names error without --force-samples"
    },
    {
      "Subcommand": "concat",
      "Purpose": "Join files with the same samples",
      "Input requirement": "Same samples in every file",
      "Documented caveat": "Named in the manual as the vertical alternative to merge"
    },
    {
      "Subcommand": "isec",
      "Purpose": "Intersections, unions and complements of VCFs",
      "Input requirement": "Multiple indexed (compressed) files",
      "Documented caveat": "-C gives positions only in the first file"
    },
    {
      "Subcommand": "index",
      "Purpose": "Create an index for VCF/BCF",
      "Input requirement": "Compressed (BGZF) file",
      "Documented caveat": "CSI by default (chromosomes up to 2^31); TBI with -t (up to 2^29)"
    },
    {
      "Subcommand": "stats",
      "Purpose": "Summary statistics, plottable with plot-vcfstats",
      "Input requirement": "One file, or two for concordance",
      "Documented caveat": "Text output suitable for machine processing"
    },
    {
      "Subcommand": "gtcheck",
      "Purpose": "Sample concordance, swaps and contamination",
      "Input requirement": "VCF/BCF",
      "Documented caveat": "Listed as a quality-control command in the manual"
    }
  ],
  "sources": [
    {
      "title": "bcftools manual",
      "url": "https://samtools.github.io/bcftools/bcftools.html",
      "accessed": "2026-11-14"
    }
  ]
}