{
  "name": "samtools mpileup versus samtools depth: default behaviour",
  "description": "Compares how samtools mpileup and samtools depth differ by default for the same BAM input, compiled from the HTSlib samtools-mpileup and samtools-depth manual pages (samtools 1.25 documentation).",
  "page": "https://casrai.org/guides/samtools-mpileup",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-20T08:15:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Behaviour",
      "unit": "",
      "description": ""
    },
    {
      "name": "samtools mpileup",
      "unit": "",
      "description": ""
    },
    {
      "name": "samtools depth",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Behaviour": "Deleted bases",
      "samtools mpileup": "Always counted; shown as * in the read-bases column",
      "samtools depth": "Ignored by default; counted only with -J"
    },
    {
      "Behaviour": "Meaning of -q and -Q",
      "samtools mpileup": "-q is minimum mapping quality, -Q is minimum base quality",
      "samtools depth": "The meanings are swapped relative to mpileup"
    },
    {
      "Behaviour": "Default minimum quality",
      "samtools mpileup": "Base quality 13 (mapping quality 0)",
      "samtools depth": "0"
    },
    {
      "Behaviour": "Overlapping read pairs",
      "samtools mpileup": "Overlap removal on by default (disable with -x)",
      "samtools depth": "Overlap removal off by default"
    },
    {
      "Behaviour": "Maximum depth",
      "samtools mpileup": "8000 per input file by default (0 removes the limit)",
      "samtools depth": "No depth limit"
    },
    {
      "Behaviour": "Base alignment quality (BAQ)",
      "samtools mpileup": "Used when a reference is supplied with -f",
      "samtools depth": "Never used"
    }
  ],
  "sources": [
    {
      "title": "HTSlib: samtools-mpileup manual page",
      "url": "https://www.htslib.org/doc/samtools-mpileup.html",
      "accessed": "2026-11-16"
    },
    {
      "title": "HTSlib: samtools-depth manual page",
      "url": "https://www.htslib.org/doc/samtools-depth.html",
      "accessed": "2026-11-16"
    }
  ]
}