VarDictRust is a fast, memory-safe Rust NGS variant caller that delivers byte-identical results to VarDictJava v1.8.3 by default (--compat=vardictjava / --parity)—with opt-in --compat=off accuracy, SV/mate-pileup, and SAM =/X-aligner fixes plus --vcf-all-alleles multi-allelic VCF emission—while running 6.2×–25.4× faster on WGS/WES (up to 51.2× faster on amplicons) in 8.6×–21.0× less memory. It consolidates the Java → R → Perl pipeline (plus native multithreaded BGZF and .tbi/.csi indexing) into a single binary, eliminating JVM crashes, WGS out-of-memory errors, and runtime dependency friction.
-
Dual-Mode Parity & Opt-In Accuracy (
--compat=vardictjava|off&--preset): Bitwise identical variant calls,FILTERtags, and somaticSTATUSdecisions to VarDictJava v1.8.3 by default (--compat=vardictjava/--parity,$\varepsilon = 10^{-6}$ , 0 diffs), with opt-in--compat=offactivating 49 accuracy, SV/mate-pileup/VCFv4.2-BND-interop, somatic multi-allelic/amplicon/LOH, spliced RNA-Seq overhang/stutter, consensus-BAM/CRAM (fgumi/fgbio), VCF schema/Welford-SD, and=/X-aligner fixes (##VarDictRustCompat=off) plus--preset wgs|wes|amplicon|ctdna|hifi|ontclinical workflow presets (##VarDictRustPreset=<PRESET>),--noise-modelpolymer-stutter filtering,--methylationcis-CpG epigenetic annotation,--orientation-biasF1R2/F2R1FFPE/8-oxoG filtering,--vcf-all-allelesmulti-allelic emission, and--amplicon-single-primer(-sp) single-primer panel support. -
High-Throughput Speed: 6.2×–25.4× faster on WGS/WES, 51.2× faster on amplicon panels, and 3.04× parallel scaling on 8 threads across full chromosomes (
4:21.06$\to$ 1:25.94onchr1, where VarDictJava OOM-crashes on 31 GiB hosts). -
Bounded
$O(1)$ Memory: Flat RSS scaling ($1.27\times$ from 10 Mbp to 249 Mbp on Chr1,1.10$\to$ 1.39 GiB), using 8.6×–21.0× less RAM than VarDictJava on WGS/WES and 17.5× less RAM than unchunkedvardictcpp(24.34 GiB) on whole-chromosome 1. -
Zero External Runtimes: Prebuilt static Linux (
x86_64/aarch64musl) and native Linux (x86_64gnu) / macOS (arm64/x86_64) binaries—no JVM, R, or Perl. -
Robust by Construction:
#![forbid(unsafe_code)]. Malformed CIGARs, missing indexes, and corrupt records return actionable errors instead of crashing.
# Install via Bioconda (or see static binaries, Cargo, Seqera Wave containers & Nextflow below)
conda install -c bioconda -c conda-forge vardictrust
# Somatic paired calling (tumor vs normal) — emits standard VCFv4.2 to stdout
vardictrust -G GRCh38.fa -f 0.01 -N "TUMOR|NORMAL" -b "tumor.bam|normal.bam" -R chr7:55000000-55300000 > somatic.vcf
# Output format: standard VCFv4.2 with VarDict somatic annotations
# CHROM POS ID REF ALT QUAL FILTER INFO FORMAT TUMOR NORMAL
# chr7 55152340 . G A 184 PASS TYPE=SNV;AF=0.245;STATUS=StrongSomatic GT:DP:VD:AD:AF:RD:ALD 0/1:120:29:91,29... 0/0:115:0:115,0...
# Opt-in v1.1.0+ correctness & multi-allelic mode
vardictrust -G GRCh38.fa -f 0.01 -N "TUMOR|NORMAL" -b "tumor.bam|normal.bam" -R chr7:55000000-55300000 --compat=off --vcf-all-alleles --output somatic.vcf.gz --tbiBuilt under the rewrites.bio manifesto (a faster, more robust tool that produces the same results by default), with opt-in v1.1+ correctness fixes (--compat=off) and consolidated VCF capabilities governed in ROADMAP.md. Migrating from VarDictJava + teststrandbias.R/testsomatic.R + var2vcf_*.pl? Start with the VarDictJava Migration Guide. See the Omnibus Empirical Validation Report for biological provenance, mathematical proofs, and cohort datasets. The repository-tracked evaluation manuscript (compiled text, typeset PDFs, figures, tables, and one-command reproduction) lives in the paper reproducibility package: manuscript (PDF) and supplement (PDF).
- Performance & Scaling Scoreboard
- Installation
- Usage & Pipeline Recipes
- VarDictJava Migration Guide
- Operational Modalities
- Empirical Parity & Validation Status
- Evaluation Manuscript & Reproducibility
- Architectural Parity & Upstream Policy
- CLI Parameter Reference
- AI Tooling & Verification Transparency
- Attribution & Citation
- License
Evaluated on an isolated GCP n2-standard-32 host (Intel Xeon @ 2.80 GHz, Linux x86_64, local NVMe RAID-0), 8 worker threads (-th 8; hg008-tier2 and seqc2-exome-tier2 at -th 4²), comparing vardictrust against the VarDictJava v1.8.3 pipeline (Java + R + Perl) and vardictcpp¹:
| Workload / Benchmark | Threads | VarDictJava Wall Time | vardictcpp Wall Time¹ | VarDictRust Wall Time | Speedup (vs Java) | VarDictJava Peak RSS | vardictcpp Peak RSS¹ | VarDictRust Peak RSS | Memory Use (vs Java) | Evidence Artifact |
|---|---|---|---|---|---|---|---|---|---|---|
| Targeted Amplicon Panel | 8 (-th 8) |
0:02.05 |
0:03.75 (CPP-3) |
0:00.04 |
51.2× faster | 118.9 MiB |
88.9 MiB |
11.6 MiB |
10.3× less | amplicon-tier2.json |
| GIAB HG002 (chr20:10M–30M, 30×) | 8 (-th 8) |
1:31.72 |
0:18.87 (CPP-9) |
0:09.69 |
9.5× faster | 4.02 GiB |
853.1 MiB |
196.1 MiB |
21.0× less | hg002-tier2.json |
| SEQC2 HCC1395 Somatic Exome | 4 (-th 4²) |
51:10.05 |
7:11.99 (CPP-9) |
3:18.35 |
15.5× faster | 3.70 GiB |
2.15 GiB |
438.1 MiB |
8.6× less | seqc2-exome-tier2.json |
| SEQC2 HCC1395 Somatic Slices | 8 (-th 8) |
0:27.44 |
0:06.14 (CPP-1) |
0:01.08 |
25.4× faster | 2.29 GiB |
247.1 MiB |
221.5 MiB |
10.6× less | seqc2-slices-tier2.json |
| GIAB HG008 Somatic PDAC | 4 (-th 4²) |
1:19.70 |
0:21.96 (CPP-9) |
0:12.86 |
6.2× faster | 3.34 GiB |
303.6 MiB |
181.0 MiB |
18.9× less | hg008-tier2.json |
| GIAB HG008 CRAM-vs-BAM Twin | 4 (-th 4²) |
0:11.60 (Rust BAM) |
— | 0:27.33 (Rust CRAM) |
2.36× CRAM/BAM | 190.7 MiB (BAM) |
— | 1.05 GiB (CRAM) |
Bounded 512 MiB cache |
hg008-cram-twin.json |
| Whole Chromosome 1 Scale (249 Mbp) | 1 → 8 (-th 8³) |
4:21.06 (Rust -th 1³; Java OOM) |
3:02.80 (CPP-5) |
1:25.94 |
3.04× parallel | >31.0 GiB (OOM³) |
24.34 GiB (CPP-5) |
1.39 GiB |
1.27× flat RSS⁴ | scale.json |
¹ vardictcpp comparison (vardictcpp 3 hc52dbad_0, bioconda). Runs beside each benchmark under identical thread and timer constraints (LC_ALL=C /usr/bin/time -v). Release acceptance gates strictly on VarDictRust == VarDictJava v1.8.3; linked CPP-* codes document where vardictcpp diverges from VarDictJava (e.g., CPP-3 TSV-only -a, CPP-5 24.34 GiB unchunked -R RSS vs 815.7 MiB with --chunk 50000, CPP-9 caller variant deltas).
² hg008-tier2 and seqc2-exome-tier2 run at -th 4 because VarDictJava at -th 8 is OOM-killed on 31 GiB hosts (bisected 1✓ / 4✓ / 8✗); exact commands in evidence.
³ On Whole Chromosome 1 Scale, VarDictJava at -th 8 OOMs on 31 GiB hosts (completed in 57:16.00 on an 8-core Ryzen host; see the Omnibus Empirical Validation Report); 4:21.06 (261.06 s) → 1:25.94 (85.94 s) reports the 3-run median 1-core vs 8-core VarDictRust parallel scaling on chr1.
⁴ Flat 1.39 GiB (1,462,384 KB) across all 249 Mbp of chr1 vs 1.10 GiB (1,155,908 KB) on a 10 Mbp slice (1.27× RSS ratio across a 25× span increase; pre-registered gate
VarDictRust ships across five channels: pre-compiled static/native binaries (cargo-dist with SLSA Level 3 provenance), Cargo (crates.io), multi-arch Seqera Wave containers, Bioconda (conda/mamba/pixi), and Nextflow (nf-core/modules).
Prebuilt archives on GitHub Releases cover 5 targets: static Linux (x86_64-unknown-linux-musl, aarch64-unknown-linux-musl), native Linux (x86_64-unknown-linux-gnu), and native macOS (aarch64-apple-darwin, x86_64-apple-darwin):
# Option A: One-line shell installer (auto-detects Linux/macOS architecture)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/palakpsheth/VarDictRust/releases/latest/download/vardictrust-installer.sh | sh
# Option B: Manual download of standalone Linux x86_64 musl archive + SHA-256 & SLSA verification
curl -LO https://github.com/palakpsheth/VarDictRust/releases/latest/download/vardictrust-x86_64-unknown-linux-musl.tar.xz
curl -LO https://github.com/palakpsheth/VarDictRust/releases/latest/download/vardictrust-x86_64-unknown-linux-musl.tar.xz.sha256
sha256sum --check vardictrust-x86_64-unknown-linux-musl.tar.xz.sha256
gh attestation verify --owner palakpsheth vardictrust-x86_64-unknown-linux-musl.tar.xz
tar -xf vardictrust-x86_64-unknown-linux-musl.tar.xz && sudo mv vardictrust /usr/local/bin/Requires a Rust stable toolchain (rustc >= 1.91.0):
# Install from crates.io
cargo install vardictrust
# Or build the latest tagged release from source
cargo install --git https://github.com/palakpsheth/VarDictRust.git --tag v1.2.0Multi-arch Seqera Wave containers bundle vardictrust and htslib (bgzip/tabix) from the published Bioconda package (pinned digests and exact package version tracked in packaging/nf-core/modules/vardictrust/meta.yml and environment.yml):
# Docker / Podman (linux/amd64: 8e6fd2fa9924d063 | linux/arm64: ad558d83a9c24379)
docker run --rm -v $(pwd):/data community.wave.seqera.io/library/htslib_vardictrust:8e6fd2fa9924d063 \
vardictrust -G /data/ref.fa -b /data/sample.bam -R chr1:1000-2000 > output.vcf
# Apptainer / Singularity ORAS (linux/amd64: b603893bd98569d2 | linux/arm64: dcf7214823b2eb9c)
apptainer exec oras://community.wave.seqera.io/library/htslib_vardictrust:b603893bd98569d2 vardictrust --helpPre-compiled packages (linux-64, linux-aarch64, osx-arm64, osx-64) on Bioconda (meta.yaml) install a standalone binary with no JVM, R, or Perl dependencies:
# Install into active environment (conda or mamba)
conda install -c bioconda -c conda-forge vardictrust
mamba install -c bioconda -c conda-forge vardictrust
# Create isolated environment
conda create -n vardictrust -c bioconda -c conda-forge vardictrust && conda activate vardictrust
# Install globally via pixi
pixi global install --channel conda-forge --channel bioconda vardictrustInstall the vardictrust module (meta.yml, multi-arch Wave containers + bgzip output) into any Nextflow DSL2 pipeline:
nf-core modules install vardictrustinclude { VARDICTRUST } from './modules/nf-core/vardictrust/main'
workflow {
// Germline: bams = sample.bam | Somatic: bams = [tumor.bam, normal.bam]
// Default task.ext.args = '-c 1 -S 2 -E 3 -z'
VARDICTRUST (
ch_bam_bai_bed, // tuple val(meta), path(bams), path(bais), path(bed)
ch_fasta, // tuple val(meta2), path(fasta)
ch_fasta_fai // tuple val(meta3), path(fasta_fai)
)
}Verify BAM decoding, CIGAR realignment, and VCF emission:
# 1. Verify build and version metadata
vardictrust --version
# 2. Functional smoke test (from a repository checkout; emits single synthetic SNV in <0.1s)
vardictrust -G fixtures/micro/micro.ref.fa -b fixtures/micro/micro.bam -R chr1:40-260Starting a new pipeline rather than migrating an existing VarDictJava script? Pass --preset <wgs|wes|amplicon|ctdna|hifi|ont> to automatically enable standard 0-based BED coordinates, all 49 --compat=off VCF/somatic/SV/BND/RNA-Seq/consensus-BAM/--eqx accuracy fixes, and modality-calibrated filters (any explicit CLI flag still overrides; see the preset threshold table):
# Germline WES or WGS (standard 0-based BED, BAM or CRAM, direct BGZF + Tabix)
vardictrust --preset wes -G GRCh38.fa -b sample.bam -N SAMPLE \
--vcf-all-alleles -th 8 --output sample.vcf.gz --tbi exome_0based.bed
# Paired tumor-normal somatic WES or FFPE WES (rescues subclonal GT=0/1 + filters FFPE C>T / 8-oxoG)
vardictrust --preset wes --orientation-bias -G GRCh38.fa -b "tumor.bam|normal.bam" -N "TUMOR|NORMAL" \
--vcf-all-alleles -th 8 --output somatic.vcf.gz --tbi exome_0based.bed
# Single-primer extension panel (QIAGEN QIAseq V3 / ArcherDX, 8-column amplicon BED)
vardictrust --preset amplicon -sp -G GRCh38.fa -b panel.bam -N SAMPLE \
-th 8 --output panel.vcf.gz --tbi qiaseq_8col.bed
# Liquid-biopsy ctDNA (~0.2%–1% VAF + fgumi consensus-BAM interop + F1R2/F2R1 orientation filter)
vardictrust --preset ctdna --orientation-bias -G GRCh38.fa -b cfdna.consensus.bam -N CFDNA \
--adaptor AGATCGGAAGAGCACACGTCTGAACTCCAGTCA,AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGT \
--vcf-all-alleles -th 8 --output cfdna.vcf.gz --tbi hotspot_0based.bed
# PacBio HiFi or Oxford Nanopore R10.4+/UL long-read calling (pbmm2 / minimap2 --eqx BAM or CRAM)
vardictrust --preset hifi -G GRCh38.fa -b sample.hifi.bam -N SAMPLE \
--vcf-all-alleles -th 8 --output hifi.vcf.gz --tbi targets_0based.bed
vardictrust --preset ont -G GRCh38.fa -b sample.ont.bam -N SAMPLE \
--vcf-all-alleles -th 8 --output ont.vcf.gz --tbi targets_0based.bedNote for UMI / duplex ctDNA assays (fgumi / fgbio interop): collapse molecular barcodes upstream with Fulcrum Genomics fgumi (fgumi extract fgumi fastq | bwa mem -p -Y | fgumi zipper fgumi sort --order template-coordinate fgumi group fgumi duplex / simplex fgumi fastq | bwa mem -p -Y | fgumi zipper fgumi filter vardictrust --preset ctdna --orientation-bias; see docs/migration.md). Under --compat=off / --preset, CompatProfile::consensus_bam_compat (Switch 42) automatically neutralizes cD >= 1 consensus 'N'-masked NM inflation, preserves distinct MI molecules under -t, and balances double-strand-confirmed duplex (aD >= 1 && bD >= 1) observations across F1R2/F2R1 (native in-caller UMI collapsing targets v2.0; ROADMAP.md). For exact VarDictJava v1.8.3 default parity (--compat=vardictjava), omit --preset and --compat=off in recipes 1–5 below (recipe 3's paired somatic -sp example passes --compat=off because upstream VarDictJava v1.8.3 lacks paired somatic amplicon VCF support and -sp).
Warning
The Silent BED Coordinate Trap (-c 1 -S 2 -E 3 -z When --preset Is Omitted):
- Non-4-Column BED Files (
chr start end ...): VarDict defaults to 13-column UCSCrefGenecolumns (-c 3 -S 7 -E 8 -s 10 -e 11 -g 13, 1-based inclusive), while auto-detecting 4-column standard 0-based BEDs (when-cis omitted) and 8-column amplicon BEDs. Pass-c 1 -S 2 -E 3 -zon 3-, 5-, and 6-column 0-based BED files (and whenever-c 1is passed explicitly on 4-column 0-based BEDs) to prevent coordinate shifts or parser aborts; see the VarDictJava Migration Guide for side-by-side pipeline translation. - Direct Region Specification: Pass
-R chr:start-end[:gene]to bypass BED parsing.
Constitutional variant discovery from single-sample WGS, WES, or targeted panels:
vardictrust -G GRCh38.fa -f 0.01 -N SAMPLE -b sample.bam -c 1 -S 2 -E 3 -z targets.bed > germline.vcfPair-matched somatic calling with LOH detection and somatic STATUS classification (StrongSomatic, LikelySomatic, Germline, SampleSpecific):
vardictrust -G GRCh38.fa -f 0.01 -N "TUMOR|NORMAL" -b "tumor.bam|normal.bam" -c 1 -S 2 -E 3 -z target.bed > somatic.vcfTrims primer bias artifacts (AMPBIAS) using overlapping primer coordinates from an 8-column BED file (chr, start, end, gene, score, strand, insert_start, insert_end). For QIAseq / ArcherDX single-primer extension (SPE) panels—where col8 == col3 (5'-primed) or col7 == col2 (3'-primed) and opposite fragment ends shear randomly—pass -sp (--amplicon-single-primer); for paired tumor-normal amplicon calling, add --compat=off:
# Single-sample two-primer amplicon panel
vardictrust -G GRCh38.fa -f 0.01 -N SAMPLE -a 10:0.95 -z -b amplicon.bam amplicon_8col.bed > amplicon.vcf
# Single-primer extension (QIAseq / ArcherDX) paired tumor-normal amplicon panel
vardictrust -G GRCh38.fa -f 0.01 -N "TUMOR|NORMAL" -b "tumor.bam|normal.bam" -a 10:0.95 -sp -z --compat=off qiaseq_8col.bed > somatic_amp.vcfQuantifies splice junction coverage and outputs a 4-column intron count matrix (-i / --splice):
vardictrust -G GRCh38.fa -i -b rna.bam -c 1 -S 2 -E 3 -z junctions.bed > splice_counts.txtStream from indexed BAM/CRAM files into compressed, tabix-indexed VCF archives, or write multithreaded BGZF output and run telemetry directly:
# Stream into bcftools + tabix
vardictrust -G GRCh38.fa -f 0.01 -N SAMPLE -b sample.bam -R chr1:1000000-2000000 -th 8 \
| bcftools filter -i 'FILTER="PASS"' -Oz -o filtered.vcf.gz \
&& tabix -p vcf filtered.vcf.gz
# Or write native multithreaded BGZF VCF + Tabix (.tbi) index + JSON run telemetry directly
vardictrust -G GRCh38.fa -f 0.01 -N SAMPLE -b sample.bam -R chr1:1000000-2000000 -th 8 \
--output filtered.vcf.gz --tbi --stats-json stats.jsonEnable all 49 CompatProfile accuracy, SV/mate-pileup, somatic multi-allelic/amplicon/LOH, spliced RNA-Seq, fgumi/fgbio consensus-BAM/CRAM, VCFv4.2/v4.3 SV/BND interop, Welford-SD, and SAM =/X (minimap2 --eqx / pbmm2) fixes (##VarDictRustCompat=off) alongside multi-allelic VCF emission:
vardictrust -G GRCh38.fa -f 0.01 -N SAMPLE -b eqx_aligned.bam -c 1 -S 2 -E 3 -z targets.bed --compat=off --vcf-all-alleles --output calls.vcf.gz --tbi| Modality | Engine Mode & Flag Signature | Input Assays | Output Schema | Typical Use Case |
|---|---|---|---|---|
| Germline Calling | SimpleMode (-b sample.bam) |
WGS, WES, Targeted Panels | VCFv4.2 (10 cols) or .var (36 / 38 cols with --fisher) |
Constitutional SNV, InDel, and MNV discovery; family trios; population cohorts. |
| Somatic Paired Calling | SomaticMode (-b "tumor|normal") |
Paired Tumor / Normal WGS & WES | VCFv4.2 (11 cols) or .var (55 / 61 cols with --fisher) |
Cancer somatic mutations down to 1% AF, LOH detection, STATUS classification. |
| Targeted Amplicon Panel | AmpliconMode (-a 10:0.95 [-sp]; paired with --compat=off) |
AmpliSeq, QIAseq SPE, Ion Torrent, PCR Panels | VCFv4.2 (10 / 11 cols) or .var (38/40 or 55/61 cols) |
Two-primer and single-primer (-sp) panels; trims primer bias (AMPBIAS) via 8-col BED. |
| RNA-Seq Splicing | SplicingMode (-i / --splice) |
Spliced RNA-Seq BAM / CRAM | 4 columns (qstart-qend, cnt, mean_pos, strand) |
Exon-intron splice junction quantification and split-read intron coverage matrix. |
| Structural Variants & CRISPR | SimpleMode / SomaticMode (-L, -J, -j) |
Short-Read WGS, WES, CRISPR Assays | VCFv4.2 (<DEL>, <DUP>, <INV>, <INS>) + CRISPR tag |
Large split-read/discordant-mate SV discovery (disable via -U) and CRISPR cut-site (-J/-j) scoring. |
| Pileup-Only Inspection | SimpleMode / AmpliconMode (-p) |
Any Indexed BAM / CRAM | VCFv4.2 or .var across every reference locus |
Unfiltered per-base depth, reference quality, and non-variant pileup auditing. |
Note
Assumptions & Coordinate Conventions:
- Coordinate Contracts: BAM/CRAM alignments use 0-based half-open intervals (
[start, end)); VCF records use 1-based closed intervals ([start, end]). Passing-zshifts 0-based BED intervals by+1. - Statistical Rounding: Variant frequencies (
AF), quality scores (QUAL), and p-values use IEEE 754 round-to-nearest-even (Banker's rounding), matching JavaRoundingMode.HALF_EVENand Rround()by default (round_half_even, replicating OpenJDKDecimalFormatfixed-point underflow ties) and exact binary IEEE 754 ties viaround_half_even_compatunder--compat=off. - Compatibility Profiles (
--compat=vardictjava|off): Default invocations (--compat=vardictjava, aliasesvardictjava-1.8.3/1.8.3, or--parity) preserve 100% VarDictJava v1.8.3 byte-for-byte parity; opt-in--compat=offactivates all 49CompatProfilecorrectness switches and stamps##VarDictRustCompat=offin VCF headers. - Multi-Allelic Collapsing: Single-sample and paired somatic VCF output select the top-AF candidate per locus by default matching
var2vcf_valid.pl/var2vcf_paired.pl; pass--vcf-all-alleles(--all-alleles) to emit all alleles at multi-allelic loci (var2vcf_*.pl -A).
Every release passes dual-engine differential testing against VarDictJava v1.8.3 (commit 0886261, Perl submodule 009e017; pinned in UPSTREAM.toml) in default parity mode (--compat=vardictjava), alongside diff-confinement verification under --compat=off, and matches biological ground truth across reference benchmarks:
All comparisons evaluate end-to-end VCF output under float tolerance
| Dataset / Benchmark | Modality | Target Region / Assay | Verification Tier | VarDictJava Variants | VarDictRust Variants | vardictcpp Variants¹ | Rust vs Java Parity | vardictcpp vs Java Parity¹ |
|---|---|---|---|---|---|---|---|---|
| Upstream Integration Corpus |
Simple, Somatic, Amplicon
|
92 micro-fixtures | Tier-1 | 91 PASS / 1 XFAIL* |
91 PASS / 1 XFAIL* |
34 PASS / 32 MISMATCH / 26 SKIP |
MATCH (0 live diffs) |
MISMATCH (CPP-1), SKIP (CPP-4)
|
| GIAB HG002 Germline WGS |
SimpleMode (Germline) |
chr20:10M–30M (30×) |
Tier-2 | 227,562 |
227,562 |
227,560 |
MATCH (0 diffs, |
MISMATCH (CPP-9), CPP-1
|
| GIAB HG002 Full 22-Autosome WGS |
SimpleMode (Germline) |
chr1..chr22 (482,436 |
Tier-3 | 8,111,171 |
8,111,171 |
8,111,565 |
MATCH (22/22 chrs Gates A–D: count + PASS site + rtg vcfeval byte-identical) |
MISMATCH (CPP-9) (+394 calls; +24/-15 TP) |
| SEQC2 HCC1395/BL Exome |
SomaticMode (tumor|normal) |
Whole Exome (WES) | Tier-2 | 623,444 |
623,444 |
623,442 |
MATCH (0 diffs, |
MISMATCH (CPP-9), CPP-1
|
| SEQC2 Somatic Slices |
SomaticMode (tumor|normal) |
chr1, 2, 3, 17, 19, 21 slices |
Tier-2 | 4,151 |
4,151 |
4,151 |
MATCH (0 diffs in SNV/InDel/SV) |
MISMATCH (CPP-1), CPP-9
|
| GIAB HG008 Somatic PDAC |
SomaticMode (tumor|normal) |
PDAC high-depth slices | Tier-2 | 18,426 |
18,426 |
18,425 |
MATCH (0 diffs in somatic status) |
MISMATCH (CPP-9), CPP-1
|
| GIAB HG008 CRAM Twin |
SomaticMode (CRAM vs BAM) |
PDAC CRAM reference decode | Tier-2 | 18,426 |
18,426 |
18,425 |
MATCH (0 diffs, BAM == CRAM) |
MISMATCH (CPP-9), CPP-1
|
| Targeted Amplicon Panel |
AmpliconMode (-a 10:0.95) |
Overlapping primer assay | Tier-2 | 2 |
2 |
N/A (TSV-only) |
MATCH (0 diffs, AMPBIAS) |
SKIP (CPP-3) |
| Chr1 Scale Benchmark |
SimpleMode (Germline) |
chr1:1–248,956,422 (249 Mbp) |
Level 5 Scale | 2,840,119 |
2,840,119 |
2,840,119 |
MATCH (0 diffs across chr1) |
MISMATCH (CPP-5), CPP-1
|
| Extended Modalities Suite |
Splicing, <INV>, <DUP>, CRISPR, Flags |
17 biological assays | Tier-2 |
4,993 (17/17 PASS) |
4,993 (17/17 PASS) |
2,304 (0/17 PASS) |
MATCH (0 diffs in .var & VCF) |
SKIP (CPP-3), MISMATCH (CPP-1), CPP-2, CPP-7, CPP-8, CPP-10
|
| Multi-Modal Multi-Slice Suite |
Germline, Somatic, RNA
|
18 slices across 6 cohorts & 9 chrs | Tier-2 |
1,129 (18/18 PASS) |
1,129 (18/18 PASS) |
1,103 (0/18 PASS) |
MATCH (0 diffs, GRCh38 & b37) |
SKIP (-i), MISMATCH (CPP-1), CPP-9
|
* The 91 PASS / 1 XFAIL metric compares against static files in VarDictJava/testdata/integrationtestcases/. For hard_clip_case.fa, the upstream fixture encodes conflicting reference chunks (Class D / UB-4); against live VarDictJava v1.8.3, VarDictRust matches 100% (7/7 .var rows, 5/5 VCF variants, 0 diffs).
¹ vardictcpp third-arm comparison (vardictcpp 3 hc52dbad_0, bioconda). Executed beside each Tier-1/Tier-2 comparator arm; the release gate remains strictly VarDictRust == VarDictJava v1.8.3 in default parity mode (--compat=vardictjava), supplemented by diff-confinement verification under --compat=off. Linked CPP-* identifiers reference docs/upstream-bugs.md.
- Intermediate Table Parity (Tier-1): Intermediate
.vartables match 100% of upstream columns and ordering (Simple: 36/38; Amplicon: 38/40; Somatic: 55/61 without/with--fisher). Standard CLI output is VCFv4.2 (10 or 11 columns);-iemits a 4-column intron count table. - 92-Chromosome Per-Contig Parity Suite (
docs/validation/chr-parity-v107.md,benchmarks/chr-parity-v107.json): Certified92 / 92chromosome runsMATCH(0diffs vsVarDictJava v1.8.3) across70Tier-2 full-VCFcompare_vcf.pyruns (HG008_WGS_Somatic21chrs,SEQC2_Paired_Somatic24chrs,SEQC2_Single_Sample_Scale24chrs,HG002_chr20_Full_VCF1chr) and22Tier-3 Gates A–D count/PASS-site/rtg vcfevalconcordance runs (HG002_Full_WGS_GIAB_v4.2.1chr1..chr22,8,111,171total /7,292,435vcfevalPASSvariants,5/5rtg vcfevalfiles byte-identical toVarDictJava v1.8.3). - Full-Corpus 12-Cell Sweep (Omnibus Empirical Validation Report): Certified 89 / 89 MATCH (
fp=0, fn=0across1,202,444oracle.var/.vcf/splice records) spanning7,361×–173,132×ultra-deep AML MRD panels,51.8 GiBHG002 STAR RNA-Seq (-isplice & cDNA), whole-chromosome-R chr1:1-249250621,--fisherstress matrices, and CRAM 3.0 twins.
2. Ground Truth Concordance (Tier-3 via RTG vcfeval)
Evaluated against physical ground truth using Real Time Genomics rtg vcfeval:
| Benchmark Dataset | Truth Standard | Assay / Threshold | Java & Rust Sites (TP / FP / FN) | vardictcpp Sites (TP / FP / FN)¹ | VarDictJava vcfeval | VarDictRust vcfeval | vardictcpp vcfeval¹ | Rust vs Java | vardictcpp Notes¹ |
|---|---|---|---|---|---|---|---|---|---|
GIAB HG002 (chr20 Operating Point) |
NIST v4.2.1 High-Confidence | Germline (QUAL >= 128) |
22,748 / 553 / 871 |
22,748 / 553 / 871 |
F1: 0.9699 (P: 0.9763, R: 0.9635) |
F1: 0.9699 (P: 0.9763, R: 0.9635) |
F1: 0.9699 (P: 0.9763, R: 0.9635) |
EQUAL | CPP-6 |
GIAB HG002 (chr20 Raw Baseline) |
NIST v4.2.1 High-Confidence | Germline (None / raw) |
22,803 / 22,458 / 813 |
22,803 / 22,442 / 813 |
F1: 0.6622 (P: 0.5038, R: 0.9659) |
F1: 0.6622 (P: 0.5038, R: 0.9659) |
F1: 0.6624 (P: 0.5040, R: 0.9659) |
EQUAL | CPP-6, CPP-9 |
GIAB HG002 (chr1..chr22 Operating Point) |
NIST v4.2.1 High-Confidence | Full 22-Autosome WGS (QUAL >= 103) |
3,675,845 / 98,898 / 169,002 |
3,675,843 / 98,875 / 169,006 |
F1: 0.9651 (P: 0.9738, R: 0.9566) |
F1: 0.9651 (P: 0.9738, R: 0.9566) |
F1: 0.9651 (P: 0.9738, R: 0.9566) |
EQUAL | CPP-9 |
GIAB HG002 (chr1..chr22 Raw Baseline) |
NIST v4.2.1 High-Confidence | Full 22-Autosome WGS (None / raw) |
3,688,079 / 3,604,334 / 156,281 |
3,688,070 / 3,604,277 / 156,295 |
F1: 0.6624 (P: 0.5057, R: 0.9598) |
F1: 0.6624 (P: 0.5057, R: 0.9598) |
F1: 0.6624 (P: 0.5057, R: 0.9598) |
EQUAL | CPP-9 (+24/-15 TP) |
| GIAB HG005 (Operating Point) | NIST v4.2.1 Han Chinese | Germline (QUAL >= 226) |
29 / 1 / 1 |
29 / 1 / 1 |
F1: 0.9667 (P: 0.9667, R: 0.9667) |
F1: 0.9667 (P: 0.9667, R: 0.9667) |
F1: 0.9667 (P: 0.9667, R: 0.9667) |
EQUAL | CPP-6 |
| GIAB NA24385 b37 (Operating Point) | NIST v4.2.1 Ashkenazi Son | Germline b37 (QUAL >= 160) |
5 / 0 / 0 |
5 / 0 / 0 |
F1: 1.0000 (P: 1.0000, R: 1.0000) |
F1: 1.0000 (P: 1.0000, R: 1.0000) |
F1: 1.0000 (P: 1.0000, R: 1.0000) |
EQUAL | CPP-6, CPP-7 |
| SEQC2 HCC1395 (Raw Baseline) | SEQC2 v1.2.1 Somatic Truth | Somatic (None / raw) |
1,056 / 11,334 / 140 |
1,056 / 11,333 / 140 |
F1: 0.1555 (P: 0.0852, R: 0.8842) |
F1: 0.1555 (P: 0.0852, R: 0.8842) |
F1: 0.1555 (P: 0.0852, R: 0.8842) |
EQUAL | CPP-6, CPP-9 |
| GIAB HG008 (Raw Baseline) | NIST Draft Benchmark v0.3 | Somatic (None / raw) |
575 / 1,565 / 288 |
575 / 1,563 / 288 |
F1: 0.3856 (P: 0.2687, R: 0.6825) |
F1: 0.3856 (P: 0.2687, R: 0.6825) |
F1: 0.3858 (P: 0.2689, R: 0.6825) |
EQUAL | CPP-6, CPP-9 |
¹ vardictcpp vcfeval normalization (vardictcpp 3 hc52dbad_0). Native vardictcpp -vcf omits ##contig headers (CPP-6) and strips chr on ambiguous b37 FASTAs (CPP-7); the concordance harness injects contigs before rtg vcfeval. Residual 1–16 FP deltas on raw HG002, SEQC2, and HG008 reflect CPP-9; VarDictRust and VarDictJava produce identical TP, FP, FN, Precision, Recall, and
See the Omnibus Empirical Validation Report for reference checksums and reproduction commands across all 10 cohorts and 17 modalities, and docs/testing/test-matrix-and-ci-audit.md for the Seven-Level Testing Matrix.
The v1.0.6 cloud benchmark study and v1.1.0 clinical --compat=off and --preset validation expansion are written up as a repository-tracked manuscript (not yet peer-reviewed): manuscript (typeset PDF) with supplement (typeset PDF).
- Oracle equivalence — Tier-1/2 parity across 13 modes and the 87-arm sweep (Table 1, Figure 1).
- AML replication — benchmark replication and field-caller comparison (Table 2, Figure 2).
- Truth accuracy — germline/somatic truth sets and QUAL operating points (Table 3, Figure 3).
- Bounded-memory scaling — multicore work-stealing and node packing (Table 4, Figure 4).
- Whole-genome scaling — unchunked full chromosomes vs callable intervals (Table 5, Figure 5).
- Cross-platform generalization — 10 chemistries and the 70-cell GA4GH stratification (Table 6, Figure 6).
- New-biology discovery — GIAB v5.0q/CMRG/Mosaic via unchunked calling (Table 7, Figure 7).
- Caller landscape & hardening — deep-learning/commercial comparison, low-VAF titration, supply-chain (Table 8, Figure 8).
- Opt-in clinical fixes & presets — targeted VCFv4.2/v4.3 schema/canonicalization fixes, diploid subclonal somatic truth recovery, and workflow presets (Table 9, Figure 9).
Figures (fig1..fig9) and tables (main 1–9 and supplementary S1–S7) regenerate deterministically via the paper reproducibility package (bash paper/reproduce_all.sh).
VarDictRust enforces the rewrites.bio Prime Directive:
- Fidelity by Default: Matches every VarDictJava v1.8.3 output decision on valid inputs in default parity mode (
--compat=vardictjava/--parity), including IEEE 754 banker's rounding (round_half_even), exact odds ratios, OpenJDKJavaHashMapiteration order, and in-engine somatic classification (SomaticPostProcessModule). - Robustness by Construction: Enforces
#![forbid(unsafe_code)]and returnsResult<_, VardictError>without panicking where VarDictJava crashes on malformed CIGARs (modifyCigar#341 family, PR #402 — safely skipped per read by default and repaired viacigar_homopolymer_mergeunder--compat=off), null pointers, or missing indexes (Issue #187). - Bounded Memory at Any Depth: Processes reads in bounded halo tiles with cross-tile
.varboundary deduplication (SplitVarDeduper,200 kbpretention window), disk-backed whole-stream VCF candidate spilling (SpillableVcfAccumulatorabove8 MiB), and zero-allocation hot-path stack scratch buffers, eliminating whole-chromosome JVM heap exhaustion (Issues #197 and #384). - Dual-Mode Compatibility & Opt-In Features: Replicates upstream output quirks by default (UB-1 through UB-7), pinned explicitly via
--parity/--compat=vardictjava(aliasesvardictjava-1.8.3,1.8.3); opt-in--compat=offactivates all 49CompatProfileswitches (sanitize_sample_info,standard_dup_symbolic_alt,shift3_3prime_alleles,strict_region_bounds,suppress_pileup_sentinels,live_duprate,preserve_mixed_sex_contigs,cigar_homopolymer_merge,eqx_cigar_read_length,preserve_discordant_svs,mark_dup_sv_inclusive_end,sv_lazy_mate_pileup,exact_binary_half_even,reconcile_vd_dp,coordinate_sorted_vars,exact_35_overlap,exact_cigar_dlen_match,somatic_continue_after_bad_var,adaptor_all_consensus_dirs,canonical_sv_vcf_anchoring,paired_somatic_amplicon,cigar_strip_outer_hard_clips,nonnegative_subtracted_means,reconcile_strand_and_hq_sums,reconcile_rd_vd_dp,sanitize_iupac_alt_alleles,sv_respect_min_len,pileup_preserve_shifted_ref,recompute_vartype_after_adj_complex,strict_vcf_ad_number_r,omit_nonsv_vcf_end,canonical_vcf_gt,sclip_majority_count_first,mate_overlap_both_strands,canonical_vcf_complex_left_align,somatic_reconcile_split_alleles,adj_snv_full_sclip_match,indel_only_shift3,somatic_loh_homozygous_alt,mnp_exact_right_fold,strict_unspanned_lgins_stitch,consensus_bam_compat,insertion_hicov_and_local_amp_dp,mnp_cis_haplotype_phasing,complex_indel_and_lgins_concordance,spliced_overhang_and_homopolymer_filter,somatic_multiallelic_loh_rescue,continuous_pstd_qstd, andsv_downstream_vcf_interop, stamping##VarDictRustCompat=offin VCF headers without per-bug--fixflag sprawl) alongside explicit opt-in CLI capabilities (--preset wgs|wes|amplicon|ctdna|hifi|ont,--orientation-bias,--noise-model,--methylation,--vcf-all-alleles/--all-alleles,--amplicon-single-primer/-sp,--output,--tbi/--csi,--stats-json) perROADMAP.md. - Documented Quirks & Testing Matrix: Cataloged in
DIVERGENCES.mdanddocs/testing/test-matrix-and-ci-audit.md.
The CLI surface (95 CLI flags across 7 functional groups) combines full VarDictJava v1.8.3 CmdParser.java flag parity with --amplicon-single-primer (-sp), all 18/18 consolidated var2vcf_valid.pl / var2vcf_paired.pl post-filters plus --orientation-bias, --noise-model, and --methylation, --compat=vardictjava|off profile selection, --preset wgs|wes|amplicon|ctdna|hifi|ont clinical workflow presets, and native compressed VCF/index/telemetry options (see the Migration Guide for side-by-side pipeline translation), verified by differential testing:
Evidence Status Vocabulary:
corpus— Verified against integration corpus test cases or Tier-2 oracle sweeps.unexercised— Implemented to Java source specification without dedicated corpus fixtures (0flags — all supported VarDictJava engine flags arecorpus,no-output, orparity-exempt).no-output— Performance or concurrency flag; does not alter output bytes.parity-exempt— Accepted for CLI compatibility matching upstream semantics.
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
-G |
--reference |
Reference FASTA file path (.fai index required) |
required | corpus |
-b |
--bam |
Indexed BAM/CRAM; somatic: "tumor.bam|normal.bam" |
required | corpus |
-N |
--name |
Sample name (somatic: "TUMOR|NORMAL") |
derived from BAM | corpus |
-n |
— | Regular expression (REGEXP) to extract sample name from BAM filename |
— | corpus |
-R |
--region |
Region chr:start-end[:gene] instead of BED |
— | corpus |
| positional | — | BED file (used when -R absent) |
— | corpus |
-h |
--header |
Print .var column header before results (not help; use -H/-?/--help) |
off | corpus |
-H, -? |
--help |
Print CLI help message and exit (also accepts --?) |
— | parity-exempt |
| — | --version |
Print version, upstream provenance, and AI disclosure metadata | — | parity-exempt |
| — | --completions |
Print shell completion script (bash, zsh, or fish <SHELL>) to stdout and exit |
— | parity-exempt |
| — | --manpage |
Print standalone roff vardictrust(1) manual page to stdout and exit |
— | parity-exempt |
| — | --output |
Write output (.vcf, .var, or -i splice counts) directly to file; .gz/.bgz suffixes use multithreaded BGZF (StagedFileTarget + File::sync_all + input-collision guard) |
stdout |
parity-exempt |
| — | --tbi, --index |
Write a pure-Rust Tabix (.tbi) index alongside a BGZF-compressed --output .vcf.gz/.vcf.bgz file (noodles::tabix; contigs <= 512 Mbp, hints --csi above 512 Mbp) |
off | parity-exempt |
| — | --csi |
Write a pure-Rust CSI (.csi) index alongside a BGZF-compressed --output .vcf.gz/.vcf.bgz file (noodles::csi with 16 kbp linear-window loffset propagation for spanning SVs; supports contigs > 512 Mbp) |
off | parity-exempt |
| — | --stats-json |
Write run telemetry JSON (mode, threads, regions_count, tiles_count, elapsed_ms, peak_rss_kb, exceptions_caught) to <PATH> |
— | no-output |
| — | --parity |
Explicitly lock 100% VarDictJava v1.8.3 byte-for-byte parity mode (default in v1.x) |
on | parity-exempt |
| — | --compat |
Pin target compatibility contract ('vardictjava' [aliases 'vardictjava-1.8.3', '1.8.3'] for 100% upstream parity, or 'off' to activate all 49 CompatProfile accuracy, SV/mate-pileup, somatic multi-allelic/amplicon/LOH, spliced RNA-Seq, fgumi/fgbio consensus-BAM/CRAM, VCFv4.2/v4.3 SV/BND interop, Welford-SD, and SAM =/X fixes and stamp ##VarDictRustCompat=off) |
vardictjava |
parity-exempt |
| — | --preset |
Clinical workflow preset (wgs, wes, amplicon, ctdna, hifi, or ont <PRESET>): enables --compat=off (stamping ##VarDictRustCompat=off and ##VarDictRustPreset=<PRESET>), 0-based BED coordinates (preserving 1-based -R), and modality-calibrated candidate/VCF FILTER defaults (--preset hifi|ont leave --vcf-max-nm unset by default, relying on span-proportional read-level mismatch filtering unless --vcf-max-nm is passed explicitly; explicit CLI flags override preset defaults; for paired T/N somatic cfDNA/WBC workflows add --paired-strict, and for < 5% VAF somatic WGS add -f 0.01) |
— | parity-exempt |
| — | --emit-intermediate |
Emit legacy .var table instead of VCF |
off | corpus |
-d |
— | Delimiter for splitting region info | \t |
corpus |
-v |
— | Accepted and ignored (never read by VarDictJava v1.8.3) | — | parity-exempt |
-y |
--verbose |
Verbose mode | off | no-output |
-D |
--debug |
Debug mode (append per-read debug columns to .var) |
off | corpus |
| — | --DP, --default-printer |
Debug print destination (OUT or ERR; alias: --defaultPrinter) |
— | corpus |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
| — | --no-end |
Omit END tag in VCF INFO (ports var2vcf_valid.pl -E; -E <COL> and --compat=off omit_nonsv_vcf_end omit non-SV INFO/END, while symbolic SVs under --compat=off retain INFO/END unless --no-end / --noend is passed explicitly) |
off | parity-exempt |
| — | --pass-only |
Emit only PASS variants in VCF output (ports var2vcf_valid.pl / var2vcf_paired.pl -S) |
off | parity-exempt |
| — | --paired-strict |
Disable germline rescue in paired somatic VCF filtering and apply P<FLOAT> / P0.01Likely / InDelLikely tags (ports var2vcf_paired.pl -M) |
off | parity-exempt |
| — | --vcf-all-alleles, --all-alleles |
Emit all alleles at the same position in single-sample, amplicon, and paired somatic VCF output instead of collapsing to the top-AF winner (ports var2vcf_valid.pl / var2vcf_paired.pl -A) |
off | parity-exempt |
| — | --vcf-pval |
Maximum Fisher p-value <FLOAT> for high-confidence somatic calls under --paired-strict (ports var2vcf_paired.pl -P) |
0.05 |
parity-exempt |
| — | --min-splitreads |
Minimum split reads <INT> required to emit symbolic structural variants in single-sample VCF output (ports var2vcf_valid.pl -T; under --compat=off, discordant-pair SVs with SPANPAIR > 0 bypass the default 1 floor unless --min-splitreads is passed explicitly; UB-5) |
1 |
parity-exempt |
| — | --no-pstd-filter |
Disable pSTD (PSTD=0) read-position standard-deviation filter in single-sample VCF output (ports var2vcf_valid.pl -P 0) |
off | parity-exempt |
| — | --vcf-af |
Override VCF minimum allele-frequency filter (f<FLOAT>) and 0/0 vs 0/1 GT threshold <FLOAT> independently of engine -f (ports var2vcf_valid.pl / var2vcf_paired.pl -f; 0 honored via defined() semantics) |
-f (0.02 if -f 0 in single) |
parity-exempt |
| — | --vcf-min-depth |
Minimum total read depth <INT> (DP) for VCF d<INT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -d) |
3 (single) / 5 (paired) |
parity-exempt |
| — | --vcf-min-vd |
Minimum variant read depth <INT> (VD) for VCF v<INT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -v) |
2 (single) / 3 (paired) |
parity-exempt |
| — | --vcf-qmean |
Minimum mean base quality <FLOAT> (QUAL) for VCF q<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -q) |
22.5 |
parity-exempt |
| — | --vcf-mapq |
Minimum mean mapping quality <FLOAT> (MQ) for VCF Q<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -Q) |
10 (single) / 0 (paired) |
parity-exempt |
| — | --vcf-pmean |
Minimum mean read-position distance <FLOAT> (PMEAN) for VCF p<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -p) |
8 |
parity-exempt |
| — | --vcf-sn |
Minimum signal-to-noise ratio <FLOAT> (SN) for VCF SN<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -o) |
1.5 |
parity-exempt |
| — | --vcf-max-nm |
Maximum mean mismatches <FLOAT> (NM) before VCF NM<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -m; unset by default under --preset hifi|ont unless --vcf-max-nm is passed explicitly) |
5.25 (unset on --preset hifi|ont) |
parity-exempt |
| — | --vcf-gt-freq |
Homozygous-alt genotype gap <FLOAT> in [0, 1] (GT is 1/1 if 1 - AF < <FLOAT>, else 1/0 if AF >= 0.5, else 0/1 if AF >= --vcf-af/-f, else 0/0; ports var2vcf_valid.pl / var2vcf_paired.pl -F) |
0.2 |
parity-exempt |
| — | --vcf-msi |
Non-monomer microsatellite (MSILEN > 1) repeat threshold <FLOAT> for VCF MSI<FLOAT> filter (ports var2vcf_valid.pl / var2vcf_paired.pl -I) |
12 |
parity-exempt |
| — | --vcf-cluster-dist |
Variant cluster window <INT> in bp for VCF Cluster<INT>bp filter across single-sample, amplicon, and paired somatic streams (ports var2vcf_valid.pl / var2vcf_paired.pl -c) |
0 |
parity-exempt |
| — | --orientation-bias |
Annotate F1R2/F2R1 read-pair orientation counts, INFO/OBP & SOB, and optionally apply FILTER=OrientationBias via --orientation-bias[=MAX_AF:MIN_SOB:MAX_OBP|annotate] (0.10:0.80:0.01 when bare; =annotate emits OBP/SOB/F1R2/F2R1 without filtering; double-strand fgumi/fgbio duplex aD >= 1 && bD >= 1 observations balanced under --compat=off) |
off | parity-exempt |
| — | --noise-model |
Annotate calibrated Beta-Binomial polymer-stutter upper-tail p-value INFO/ERRP and optionally apply FILTER=PolymerNoise via --noise-model[=MAX_ERRP|annotate|off] (0.005 when bare and enabled by default in --preset hifi|ont; =annotate emits ERRP without filtering; =off disables both; 100% immunity on SNVs, SVs, and non-repeat indels) |
off (0.005 on --preset hifi|ont) |
parity-exempt |
| — | --methylation |
Annotate 5mC+5hmC cis-CpG epigenetic fractions within ±200 bp (FORMAT/METH Number=R and INFO/DMETH ALT - REF difference) from SAM MM:Z and ML:B:C tags |
off | parity-exempt |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
-c |
— | BED chromosome column (1-based; default 3 for 13-col UCSC refGene; 4-col BED & 8-col amplicon BED auto-detected) |
3 |
corpus |
-S |
— | BED start column (default 7 for 13-col UCSC refGene) |
7 |
corpus |
-E |
— | BED end column (default 8 for 13-col UCSC refGene; also omits single-sample non-SV VCF INFO/END matching var2vcf_valid.pl -E, while symbolic SVs under --compat=off retain INFO/END unless --no-end / --noend is passed) |
8 |
corpus |
-s |
— | BED segment-start column | 10 (= -S if set) |
corpus |
-e |
— | BED segment-end column | 11 (= -E if set) |
corpus |
-g |
— | BED gene column | 13 |
corpus |
-z |
— | BED coordinates are 0-based half-open | off (1-based) | corpus |
-x |
— | BED region extension (bp) | 0 |
corpus |
-X |
— | Nucleotide extension | 2 |
corpus |
-Y |
--ref-extension |
Max region length | 1200 |
corpus |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
-f |
--af-threshold |
Allele-frequency threshold | 0.01 |
corpus |
-r |
— | Minimum variant reads | 2 |
corpus |
-q |
— | Minimum base quality | 22.5 |
corpus |
-Q |
— | Minimum mapping quality | — | corpus |
-P |
— | Mean read position filter | 5 |
corpus |
-m |
— | Maximum mismatches | 8 |
corpus |
-M |
— | Min match+insertion read length (shorter reads ignored) | 0 |
corpus |
-B |
— | Minimum reads for bias | 2 |
corpus |
-o |
— | qratio filter | 1.5 |
corpus |
-O |
— | Output MAPQ threshold | 0 |
corpus |
-F |
— | SAM flag filter | 0x504 |
corpus |
-k |
— | Local realignment 0/1 | 1 |
corpus |
-3 |
— | Move indels to 3′ (moveIndelsTo3) |
off | corpus |
-K |
— | Include Ns in depth calculation | off | corpus |
-p |
— | Pileup-only mode | off | corpus |
-t |
--dedup |
Remove duplicated reads (one pair per start position) | off | corpus |
-u |
— | Unique mode: count overlapping mates once (forward read) | off | corpus |
-UN |
--UN |
Unique mode: count overlapping mates once (first read in pair) | off | corpus |
-T |
--trim |
Trim bases after INT bases in each read (0 = disabled) |
0 |
corpus |
| — | --VS |
SAM/BAM validation stringency (SILENT or LENIENT; STRICT unsupported) |
LENIENT |
parity-exempt |
| — | --adaptor |
Adaptor sequence(s), comma-separated, excluded from realignment | — | corpus |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
-V |
— | Min normal AF (somatic mode) | 0.05 |
corpus |
| — | --fisher |
In-engine Fisher exact test (p-value / odds ratio) | off | corpus |
-a |
--amplicon |
Amplicon mode "int:float" (distance:fraction) |
auto 10:0.95 on 8-col BED |
corpus |
-sp |
--amplicon-single-primer |
Single-primer extension amplicon mode: check -a distance only on primed edge (col8 == col3 or col7 == col2) and bypass un-primed overlap fraction (AstraZeneca-NGS/VarDictJava#303) |
off | corpus |
-i |
--splice |
RNA splicing mode (emits sorted 4-column intron count table) | off | corpus |
| — | --mfreq |
Mono frequency threshold | 0.25 |
corpus |
| — | --nmfreq |
Normal mono frequency threshold | 0.1 |
corpus |
-J |
--crispr |
CRISPR cutting site coordinate | — | corpus |
-j |
— | CRISPR flanking size | — | corpus |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
-U |
--nosv |
Disable structural variant calling | off | corpus |
-L |
— | SV minimum length in bp | 1000 |
corpus |
-w |
--insert-size |
SV read length | 300 |
corpus |
-W |
--insert-std |
SV flanking length | 100 |
corpus |
-A |
— | SV minimum AF | 4 |
corpus |
-I |
— | Indel size | 50 |
corpus |
| — | --chimeric |
Chimeric read handling | off | corpus |
| — | --deldupvar |
Delete/dup variant handling | off | corpus |
| Short | Long | Description | Default | Status |
|---|---|---|---|---|
| — | --threads |
Thread count (-th/--th/-th<N> aliases; bare -th = all cores; falls back to RAYON_NUM_THREADS when -th is omitted) |
RAYON_NUM_THREADS or all cores |
no-output |
| — | --tile-size |
Region tile size in bp (bounded-memory WGS) | auto (<= 1 Mbp untiled; > 1 Mbp 100 kbp tiles; max 500 Mbp) |
no-output |
Commons-CLI Single-Dash & vardictcpp Alias Compatibility: Upstream Java single-dash long options (-sp, -fisher, -adaptor, -chimeric, -deldupvar, -nosv, -splice, -header, -dedup, -debug, -verbose, -amplicon, -DP, -default-printer, -defaultPrinter, -mfreq, -nmfreq, -insert-size, -insert-std, -ref-extension, -crispr, -trim, -VS), hidden double-dash vardictcpp v2..v4 drop-in CLI aliases (--vcfall for --vcf-all-alleles, --noend for --no-end, --vcfpass for --pass-only, and --vcf VCF output no-op; MHH-Bioinformatics-Hematology/vardictcpp#4), and boolean-prefix short-option clusters (-pz, -pz0, -uk, -ua, -pR) are normalized transparently alongside standard -- GNU long flags, while Rust-native GNU --vcf-*, post-filter, vardictcpp alias, output/compatibility, and shell/manpage flags reject single-dash typos (-vcf-*, -vcf, -vcfall, -noend, -vcfpass, -all-alleles, -orientation-bias, -amplicon-single-primer, -pass-only, -paired-strict, -min-splitreads, -no-pstd-filter, -no-end, -index, -stats-json, -parity, -compat, -preset, -completions, -manpage) with an actionable -- hint before short-flag cluster splitting.
Loud-Error Legacy Flags (AGENTS.md §12): Passing either of the 2 remaining unimplemented VarDictJava options (-C, -Z / -downsample / --downsample) or -VS STRICT fails fast with VardictError::Unsupported, paired BAM (-b "tumor|normal") combined with amplicon mode (-a) in default --compat=vardictjava VCF mode fails fast with VardictError::Unsupported (AstraZeneca-NGS/VarDictJava#378; supported under --compat=off and --preset amplicon), unknown --compat targets fail fast with VardictError::Unsupported, and unknown --preset values or conflicting --compat/--parity/--preset flags fail fast with VardictError::Parse rather than ignoring the flag.
Reproducible Profiling Hooks: When compiled with opt-in Cargo features (profile-cpu, profile-heap, or profile-dhat), vardictrust honors VARDICT_PROFILE_CPU, VARDICT_PROFILE_HEAP, and VARDICT_PROFILE_DHAT output directory environment variables (driven via harness/profile.sh).
Per the rewrites.bio manifesto, we disclose all AI tools, their operational roles, and human verification gates:
- AI Systems Used: Google DeepMind Gemini / Antigravity CLI, Anthropic Claude Code, and Qoder.
- Scope of AI Assistance: Implementation of core Rust modules under human architectural direction, cleanroom Rust statistical and VCF post-filtering routines, test harness engineering, and adversarial differential verification.
-
Verification Guarantee (Evidence Before Completion): Zero AI-generated code was accepted on model assertion. Every algorithmic component was validated against VarDictJava v1.8.3 across 934 automated Cargo workspace tests (680 core library tests, 110 corpus and modality parity tests, 65 engine behavior tests, 2 amplicon streaming memory tests, 3 CRAM stack tests, 38 CLI tests, and 36 CLI integration binary tests) enforcing a
>= 90%line-coverage gate (cargo-llvm-cov), 37 harness diagnostic self-tests (25 shell tests and 12 Python test suites), the 92-case integration corpus, 10 slice fixtures, 18 multi-modal slices across 6 cohorts, the 89-job 12-cell full-corpus sweep, and multi-gigabyte public benchmarks (SEQC2, GIAB HG008, GIAB HG002, GIAB HG005, GIAB NA24385 b37) under float tolerance$\varepsilon = 10^{-6}$ , with reproducibility documented indocs/testing/test-matrix-and-ci-audit.mdand workflow skills in.agents/skills/.
VarDictRust is authored and maintained by Palak Sheth (palakpsheth@gmail.com), developed as an idiomatic Rust rewrite of VarDict and VarDictJava originally created by Zhongwu Lai and the AstraZeneca-NGS team:
Lai Z, Markovets A, Ahdesmaki M, et al. VarDict: a novel and versatile variant caller for next-generation sequencing in cancer research. Nucleic Acids Research, 2016;44(11):e108. doi:10.1093/nar/gkw227
@article{lai2016vardict,
author = {Lai, Zhongwu and Markovets, Alena and Ahdesmaki, Miika and Chapman, Brad and Hofmann, Oliver and McEwen, Robert and Johnson, Justin and Dougherty, Brian and Barrett, J. Carl and Dry, Jonathan R.},
title = {{VarDict: a novel and versatile variant caller for next-generation sequencing in cancer research}},
journal = {Nucleic Acids Research},
volume = {44},
number = {11},
pages = {e108},
year = {2016},
doi = {10.1093/nar/gkw227}
}
@article{seqc2_2021_reference,
author = {Fang, Li Tai and Zhu, Baolin and Zhao, Yongmei and Chen, Wanqiu and Yang, Zhaowei and Xu, Leming and others},
title = {{Establishing community reference samples, data and call sets for cancer genomics}},
journal = {Nature Biotechnology},
volume = {39},
number = {9},
pages = {1151--1160},
year = {2021},
doi = {10.1038/s41587-021-00993-6}
}
@article{giab_2020_benchmark,
author = {Zook, Justin M. and Hansen, Nancy F. and Olson, Nathan D. and Chapman, Lindsay and Mullikin, James C. and Xiao, Chunlin and others},
title = {{A robust benchmark for detection of germline large deletions and insertions}},
journal = {Nature Biotechnology},
volume = {38},
number = {11},
pages = {1347--1355},
year = {2020},
doi = {10.1038/s41587-020-0538-8}
}If you use VarDictRust in published research, cite both Lai et al. (2016) and this software:
@software{sheth2026vardictrust,
author = {Sheth, Palak},
title = {{VarDictRust: Memory-Safe, High-Performance Variant Calling for NGS}},
year = {2026},
version = {1.2.0},
url = {https://github.com/palakpsheth/VarDictRust}
}Full citation metadata is available in CITATION.cff.
The evaluation manuscript itself is repository-tracked (not yet peer-reviewed): manuscript Markdown (typeset PDF), supplement Markdown (typeset PDF), with figures, tables, and the deterministic reproduction pipeline documented in the paper reproducibility package.
VarDictRust source code and binary distributions are licensed under the permissive MIT License (SPDX MIT), including the cleanroom MIT saddlepoint binomial and hypergeometric statistical routines in crates/vardictrust-core/src/stats/hypergeom.rs, with third-party permissive crate notices cataloged in LICENSE-3RD-PARTY and deny.toml.