MitoQuest is a cross-platform, efficient and practical bioinformatics
toolkit written in C++ (C++17) for analyzing human mitochondrial DNA
(mtDNA) from whole-genome / mtDNA-targeted sequencing (WGS) data. It calls
mitochondrial SNVs and Indels, quantifies heteroplasmy and homoplasmy,
estimates mtDNA copy number, and provides downstream utilities for VCF
sub-sampling, annotation, and quality recalibration.
MitoQuest is built on top of htslib
(vendored as a submodule) and is designed to scale from a single-sample
clinical workflow to population-level cohorts with thousands of samples.
mitoquest: Human Mitochondrial sequencing data Analysis Toolkit
Version: 1.11.0
Usage: mitoquest <command> [options]
Commands:
caller Mitochondrial variants and heteroplasmy/homoplasmy caller.
subsam Extract mitochondrial variants for specified samples from VCF files and output a new VCF file.
copynum Estimate per-chromosome (incl. mtDNA) relative copy number from a BAM/CRAM file.
trans-prep Extract mother-child mtDNA allele transmission pairs from a multi-sample VCF + FAM file.
ne-estimate Estimate the mtDNA bottleneck size (Ne) from transmission pairs via Beta-Binomial MCMLE (Maximum Composite Marginal Likelihood).
In addition to the main mitoquest binary, the project ships:
tools/ — a suite of Python helper scripts for VCF QC, annotation,
pipeline assembly, and downstream analysis.
data/ — curated reference resources (population databases, in-silico
predictors, RNA/protein domain annotations, blacklist, Phylotree
variants, …) used by the annotation and QC tools.
Installation and quick start
Pre-built static binaries are published on the
GitHub Releases page — most user shoild simply download the binary and run.
System requirements for mitoquest-linux-static
The Linux binary is a partial-static build, produced on Ubuntu 22.04
(glibc 2.35) in CI. It bundles libstdc++, libgcc, htslib, zlib,
bzip2, xz, and openssl statically — only the system C library
(glibc) is linked dynamically. Because glibc symbol versions are
forward-compatible only, the binary requires the host glibc version
to be ≥ 2.35.
Quick check on your machine:
# If the printed glibc version is >= 2.35, mitoquest-linux-static will run.
ldd --version | head -1
If you see this — or you are on CentOS / RHEL / Rocky / AlmaLinux / older Ubuntu / older Debian — you can compile from source instead (see below).
# Linux
wget https://github.com/ShujiaHuang/mitoquest/releases/latest/download/mitoquest-linux-static
chmod +x mitoquest-linux-static
mv mitoquest-linux-static motiquest
./mitoquest --help
# macOS
curl -LO https://github.com/ShujiaHuang/mitoquest/releases/latest/download/motiquest-macos-static
chmod +x mitoquest-linux-static motiquest
mv mitoquest-linux-static motiquest
./mitoquest --help
Rename the downloaded binary to mitoquest for convenience. You may also move it to a directory in your $PATH (e.g. /usr/local/bin) for system-wide access.
If the pre-built binary does not work on your system (e.g. glibc < 2.35 on older Linux), you can compile from source instead. Detailed build instructions (CMake build, static build, and manual g++ fallback) are available in docs/INSTALL_FROM_SOURCE.md.
Commands overview
Usage: mitoquest <command> [options]
Commands:
caller Call mitochondrial variants (SNVs/Indels) and quantify
heteroplasmy / homoplasmy from BAM/CRAM files.
subsam Extract a subset of samples from an mtDNA VCF and recompute
INFO fields.
copynum Estimate per-chromosome (incl. mtDNA) relative copy number
from a BAM/CRAM file.
trans-prep Extract mother-child mtDNA allele transmission pairs from a
multi-sample VCF + a PLINK FAM file.
ne-estimate Estimate the mtDNA bottleneck size (Ne) from transmission
pairs via the Beta-Binomial Maximum Composite Marginal Likelihood Estimator (MCMLE).
mitoquest caller — Variant calling and heteroplasmy/homoplasmy detection
mitoquest caller reads aligned reads from one or more BAM/CRAM files and
emits a multi-sample VCF containing per-sample heteroplasmy fractions
(HF) and per-site INFO fields suitable for downstream filtering and
annotation.
Full parameter reference of caller
Usage: mitoquest caller [options] -f ref.fa -o output.vcf.gz in1.bam [in2.bam ...]
Required options:
-f, --reference FILE Reference FASTA file
-o, --output FILE Output VCF file (use .vcf.gz for bgzipped output)
Optional options:
-b, --bam-list FILE List of input BAM/CRAM filenames, one per line.
-Q, --min-BQ INT Skip bases with base quality smaller than INT
(default: 20).
-q, --min-MQ INT Skip alignments with mapQ smaller than INT
(default: 20).
-r, --regions REG[,...] Comma-separated regions to process
(default: entire mtDNA contig).
Format: chr | chr:start | chr:start-end
Example: chrM or chrM:1-1000,chrM:8000-8200
-p, --pairs-map-only Only use paired reads where mate maps to the
same chromosome.
-P, --proper-pairs-only Only use properly paired reads (SAM flag 0x2).
--filename-has-samplename When BAM/CRAM filenames are 'SampleID.xxxx.bam',
skip reading sample names from the BAM header.
Saves significant time on large cohorts.
--output-ref-sites Besides variant sites, also output the REF-only
(non-variant) sites. Such records have ALT='.',
QUAL='.' and FILTER='REF_ONLY'.
NOTE: only sites covered by at least one read
(passing -Q/-q) in at least one sample are
output, NOT every position of the mtDNA. Uncovered
positions are still absent from the VCF, so a
missing position does NOT mean REF.
(default: only variant sites)
-j, --het-threshold FLOAT Heteroplasmy fraction threshold below which an
allele is treated as reference (default: 0.01).
-c, --chunk INT Chunk size (bp) for parallel region processing
(default: 1000).
-t, --threads INT Number of threads (default: all available CPUs).
-h, --help Show this help message and exit.
Usage examples
Single-sample variant calling on the entire mtDNA contig:
mitoquest caller \
-f reference.fasta \
-o sample.mt.vcf.gz \
sample.bam
Multi-sample call from a list of BAM/CRAM files (with quality filters):
mitoquest caller \
-f reference.fasta \
-o cohort.mt.vcf.gz \
-b bamfile.list \
-Q 30 -q 30 -t 16
Recommended call with sample-name optimisation (large cohorts):
# When BAMs are named `SampleID.bam` / `SampleID.cram`, --filename-has-samplename
# avoids opening every BAM just to read @RG SM tags.
mitoquest caller \
-f reference.fasta \
-o cohort.mt.vcf.gz \
-Q 30 -q 30 -t 24 \
--filename-has-samplename \
-b bamfile.list
Restrict calling to a specific region (e.g., the D-loop / control region):
mitoquest caller \
-f reference.fasta \
-o cohort.dloop.vcf.gz \
-r chrM:1-576,chrM:16024-16569 \
-Q 30 -q 30 -t 16 \
--filename-has-samplename \
-b bamfile.list
Stricter heteroplasmy detection (lower the HF threshold):
# Default heteroplasmy threshold is 0.01 (1%). Lower it to 0.005 to capture
# very low-frequency heteroplasmy (use with caution; requires high coverage).
mitoquest caller \
-f reference.fasta \
-o cohort.lowhet.vcf.gz \
-j 0.005 \
-Q 30 -q 30 -t 24 \
--filename-has-samplename \
-b bamfile.list
Use only properly paired reads (more stringent for NUMT filtering):
mitoquest caller \
-f reference.fasta \
-o cohort.proper.vcf.gz \
-P --filename-has-samplename \
-Q 30 -q 30 -t 16 \
-b bamfile.list
Mix a file list with extra BAMs on the command line:
mitoquest caller \
-f reference.fasta \
-o cohort.vcf.gz \
-b bamfile.list \
-Q 30 -q 30 -t 16 \
extra1.cram extra2.bam
Extract a subset of samples from a multi-sample VCF/BCF file, optionally
recomputing INFO fields (AC/AN/AF/NS, …) so they reflect only the kept
samples.
Full parameter reference of subsam
Usage: mitoquest subsam [options] -i <input.vcf> -o <output.vcf> [-s <samplelist>] [<sample1> ...]
Options:
-i, --input FILE Input VCF/BCF file (required).
-o, --output FILE Output VCF/BCF file (required).
-s, --sample FILE File listing sample names to keep, one per line.
-O, --output-type Output file type: v|z|b|u
(v: VCF, z: bgzipped VCF, b: BCF, u: uncompressed BCF).
Default: inferred from output filename extension.
--no-update-info Do not recalculate AC/AN/AF/NS in the INFO column.
--keep-all-site Retain sites that become reference-only after
subsetting (default: drop them).
-h, --help Show this help message and exit.
Extract samples listed in a file (output bgzipped VCF):
mitoquest subsam \
-i cohort.mt.vcf.gz \
-o subset.mt.vcf.gz \
-s sample_names.txt
Extract two specific samples directly from the command line:
mitoquest subsam \
-i cohort.mt.vcf.gz \
-o pair.mt.vcf \
-O v \
SampleA SampleB
Keep all sites (including those that become ref-only) and skip INFO updates:
# Useful when you want to preserve a fixed multi-cohort site list, e.g. for
# downstream join-call merging.
mitoquest subsam \
-i cohort.mt.vcf.gz \
-o subset.mt.vcf.gz \
-s sample_names.txt \
--keep-all-site --no-update-info
mitoquest copynum — mtDNA copy-number estimation
mitoquest copynum estimates per-chromosome relative copy number from a
sorted/indexed BAM or CRAM file. The mean autosomal length-normalized
fragment density is the reference value: autosomal CopyNum values are
reported relative to that reference (near 1), whereas mitochondrial values
are multiplied by 2 so that equal autosomal and mtDNA molecular densities
map to 2 mtDNA copies per diploid autosomal baseline. This is a relative
library-depth calibration, not an absolute molecule count or a GC-corrected
quantification. The output TSV reports fragment counts, GC content as a
diagnostic, length-normalized fragment ratio, and copy-number mean + 95%
confidence interval for every contig in the BAM header.
Full parameter reference
Usage: mitoquest copynum [options] <input.bam/cram>
Options:
-r, --reference FILE Reference genome FASTA file (required; needed for
CRAM decoding and GC content calculation).
-o, --output FILE Output TSV file (default: stdout).
-q, --mapq INT Minimum mapping quality score [0].
-t, --threads INT Number of worker threads [hardware_concurrency].
-s, --seqtype STR Sequencing type: auto | pe | se [auto].
pe = paired-end, se = single-end.
-L, --regions STR Restrict counting / GC / length normalization to
the listed regions, given either as a comma-
separated list (e.g. 'chrM:1-300,chrM:16000-16569')
or as a path to a file (one region per line, in
either 'chr:start-end' samtools form or BED-style
whitespace-delimited `chr start end` triples; '#'
starts a
comment). The intervals REPLACE the whole-
chromosome window for the chromosomes they cover;
chromosomes not mentioned keep their full-length
behaviour. Typical use: exclude NUMT-affected zones
from the mtDNA copy-number estimate.
-h, --help Show this help message and exit.
Usage examples for estimating copynum
Estimate copy numbers from a BAM file (paired-end auto-detected):
mitoquest copynum -r reference.fasta sample.bam > sample.cn.tsv
Estimate from a CRAM file with a stricter MAPQ filter and 8 threads:
mitoquest copynum \
-r reference.fasta \
-q 30 -t 8 \
-o sample.cn.tsv \
sample.cram
Force single-end counting (useful for legacy unpaired data):
mitoquest copynum \
-r reference.fasta \
-s se -q 30 -t 4 \
sample.bam > sample.cn.tsv
Exclude NUMT-affected zones via inline regions (recommended for mtCN):
# Restrict chrM measurement to the two stretches least affected by NUMTs;
# autosomes are still measured over their full length, so the diploid
# baseline is unchanged.
mitoquest copynum \
-r reference.fasta \
-L 'chrM:1-300,chrM:16000-16569' \
-q 30 -t 8 \
sample.bam > sample.cn.tsv
Exclude NUMT zones via a BED file (one region per line):
# my_chrM_regions.bed (0-based half-open, standard BED):
# chrM 0 300
# chrM 15999 16569
mitoquest copynum \
-r reference.fasta \
-L my_chrM_regions.bed \
-q 30 -t 8 \
sample.bam > sample.cn.tsv
The TSV output has one row per contig in the BAM header, with the
following columns:
#Chromosome Fragments Chrom_Length GC_Content Fragment_Normalized_Ratio CopyNum CopyNum-CI95-Lower CopyNum-CI95-Upper Effective_Length Regions_Used
Chrom_Length always reports the full contig length from the BAM header.
Effective_Length is the number of bases that were actually counted
(equals Chrom_Length when -L did not target that contig; otherwise it
is the sum of the merged user-supplied intervals on that chromosome).
Regions_Used is . for unrestricted chromosomes, or a comma-separated
list of merged start-end intervals (1-based inclusive) when -L was
applied to that chromosome.
- When
-L is supplied, the output also includes a #Regions argument: ...
header comment recording the original CLI value for reproducibility.
评论