Skip to content

VarDictRust v1.1.0 — Clinical Workflow Presets, Opt-In Upstream Bugfixes (--compat=off), Multi-Allelic VCF & MIT

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 04:21
dcddd73

VarDictRust v1.1.0 is the first feature release of the v1.x series — delivering pure MIT licensing, clinical short-read workflow presets (--preset wgs|wes|amplicon|ctdna), opt-in --compat=off (32 upstream correctness fixes with zero --fix flag sprawl), multi-allelic VCF emission (--vcf-all-alleles, completing 18/18 var2vcf post-filters), single-primer extension amplicon calling (-sp), and major CRAM/BAM memory reductions, while keeping default invocations 100% byte-for-byte identical to VarDictJava v1.8.3 (0886261) + VarDict (009e017).

Important

Zero Breaking Changes for Existing Pipelines: Running vardictrust with no mode flag (or explicit --compat=vardictjava / --parity) produces 100% byte-identical output to VarDictJava v1.8.3 across all 92 Tier-1 fixtures, 17 Tier-2 WGS/WES/somatic/amplicon/CRAM benchmarks, and 5 NIST GIAB / FDA SEQC2 truth cohorts (FP = b18477ae0a7b07c1). Every output-changing upstream bugfix is strictly opt-in via --compat=off or --preset.


Highlights at a Glance

  • Pure MIT License Across Both Crates & Packaging (VarDictRust#92, VarDictRust#156): Replaces copyleft R-derived hypergeometric tail routines with a cleanroom Catherine Loader (2000) / NIST DLMF §5.11.1 saddlepoint + extended-precision f80 engine (stats::hypergeom, 0 diffs across 15,747 locked Fisher exact oracle rows), licensing vardictrust and vardictrust-core purely under MIT.
  • Opt-In --compat=off (32 Upstream Bugfixes, Zero Flag Sprawl; VarDictRust#94, VarDictRust#95, VarDictRust#158, VarDictRust#152–VarDictRust#159): A single flag activates all 32 verified fixes for VarDictJava, VarDict (var2vcf_*.pl / teststrandbias.R / testsomatic.R), clintval/vartovcf, bcbio-nextgen, and EBIvariation/vcf-validator defects, stamping ##VarDictRustCompat=off in VCF headers for clinical auditability.
  • Clinical Short-Read Workflow Presets (--preset <wgs|wes|amplicon|ctdna>, VarDictRust#161): Configures --compat=off, standard 0-based BED coordinates (-c 1 -S 2 -E 3 -g 4 -z on non-amplicon BEDs while keeping -R chr:start-end 1-based), and modality-calibrated candidate/VCF thresholds in one flag (stamping both ##VarDictRustCompat=off and ##VarDictRustPreset=<preset>), with full precedence for any explicit CLI flag override.
  • 18/18 var2vcf Post-Filter Parity + Single-Primer Amplicon (-sp) (VarDictRust#152, VarDictRust#157):
    • --vcf-all-alleles (--all-alleles, hidden vardictcpp alias --vcfall): ports var2vcf_valid.pl / var2vcf_paired.pl -A multi-allelic VCF emission across Simple, Amplicon, and Paired Somatic modes with bounded-memory cross-tile deduplication (-A <INT> remains VarDictJava's sv_min_af).
    • --amplicon-single-primer (-sp): supports single-primer extension (SPE) panels such as QIAseq V3 and ArcherDX on 8-column amplicon BEDs (AstraZeneca-NGS/VarDictJava#303).
    • Drop-in hidden vardictcpp v2..v4 double-dash aliases (--vcfall, --noend, --vcfpass, --vcf), completing the 92-flag CLI surface across 7 functional groups.
  • WGS/WES Speed & Bounded CRAM/BAM Memory (VarDictRust#149, VarDictRust#150, VarDictRust#151): 5.5×–38.1× faster than VarDictJava v1.8.3 on WGS/WES (68.3× on amplicons) in 8.3×–20.5× less RAM, scaling 3.24× from 1 to 8 threads across 249 Mbp GRCh38 chr1 (233.18s → 71.97s in 1.26 GiB flat bounded RSS, where VarDictJava v1.8.3 OOM-crashes above 31 GiB), while cutting HG008 somatic CRAM peak RSS by -471.5 MB, slice heap allocations by -23.4% to -86.2%, and runtime regex allocations by -100%.

Quick Start & Calling Modes

Mode / Flag Parity vs Fixes BED Coordinate Defaults Candidate Pileup (-f, -r) VCF FILTER Defaults (--vcf-*) VCF Provenance Headers
(default) / --compat=vardictjava / --parity 100% VarDictJava v1.8.3 byte-identical VarDictJava legacy (add -z when passing -c/-S/-E on 0-based BEDs) -f 0.01, -r 2 (-q 22.5) Single: d3, v2, Q10, q22.5; Paired: d5, v3, Q0, q22.5 ##source=VarDict_v1.8.2
--compat=off All 32 CompatProfile fixes active Unchanged unless set Unchanged unless set Unchanged unless set + ##VarDictRustCompat=off
--preset wgs --compat=off (32 fixes) 0-based BED (-c 1 -S 2 -E 3 -g 4 -z; -R stays 1-based) -f 0.05, -r 2 (pass -f 0.01 for <5% subclonal WGS) f0.05, d10, v3, Q20, q22.5 + ##VarDictRustCompat=off & ##VarDictRustPreset=wgs
--preset wes --compat=off (32 fixes) 0-based BED (-c 1 -S 2 -E 3 -g 4 -z) -f 0.01, -r 2 f0.02, d20, v4, Q20, q22.5 + ##VarDictRustCompat=off & ##VarDictRustPreset=wes
--preset amplicon --compat=off (32 fixes + paired -a) 0-based 8-col insert/thick BED (-a 10:0.95, dedup=false) -f 0.01, -r 2 f0.01, d50, v5, Q20, q22.5 + ##VarDictRustCompat=off & ##VarDictRustPreset=amplicon
--preset ctdna --compat=off (32 fixes) 0-based BED (-c 1 -S 2 -E 3 -g 4 -z) -f 0.001, -r 3 f0.002, d100, v4, q25, Q20 + ##VarDictRustCompat=off & ##VarDictRustPreset=ctdna
# 1. Strict drop-in VarDictJava v1.8.3 + R + Perl replacement on 0-based 4-col BED (100% byte-identical default):
vardictrust -G ref.fa -f 0.01 -N SAMPLE -b sample.bam -c 1 -S 2 -E 3 -g 4 -z targets.bed \
  -th 8 --output calls.vcf.gz --tbi

# 2. Paired tumor-normal liquid-biopsy ctDNA on CRAM with all 32 fixes, somatic-only filtering, & BGZF+CSI:
vardictrust --preset ctdna --paired-strict -G ref.fa -N "TUMOR|NORMAL" \
  -b "tumor.cram|normal.cram" panel.bed -th 16 --output somatic.vcf.gz --csi

# 3. Single-sample (or paired -b "T.bam|N.bam" -N "T|N") 8-col single-primer (-sp) amplicon panel with multi-allelic VCF:
vardictrust --preset amplicon -sp -G ref.fa -N SAMPLE -b panel.bam amplicons.bed8 \
  --vcf-all-alleles -th 8 --output amplicon.vcf.gz --tbi

All 32 --compat=off (CompatProfile) Correctness Fixes by Domain

Every switch below is off by default (--compat=vardictjava) and enabled together under --compat=off or --preset <wgs|wes|amplicon|ctdna> (full technical details in DIVERGENCES.md and the Migration Guide):

1. VCFv4.2 / VCFv4.3 Specification & Validator Compliance (8 fixes)

2. Depth, Allele Count, Strand & Subtracted-Mean Invariants (5 fixes)

3. Somatic, Amplicon & Multi-Contig Calling Fixes (4 fixes)

  • somatic_continue_after_bad_var (joachimwolff/VarDictJava#4, clintval/vartovcf#139, AstraZeneca-NGS/VarDictJava#376): Continues evaluating lower-AF candidate alleles at multi-allelic somatic loci when a noisy top-ranked artifact fails quality filters instead of aborting the locus early.
  • paired_somatic_amplicon (AstraZeneca-NGS/VarDictJava#378, MHH-Bioinformatics-Hematology/vardictcpp#1): Enables full paired tumor-normal amplicon calling (-b "tumor|normal" -a) with 55/61-column .var and 11-column paired VCF (GDAMP;TLAMP;NCAMP;AMPFLAG and FILTER=AMPBIAS).
  • preserve_mixed_sex_contigs: Preserves distinct X/chrX, Y/chrY, and MT/chrM contigs in mixed-assembly headers without cross-contig record clobbering.
  • coordinate_sorted_vars (UB-3 / AstraZeneca-NGS/VarDictJava#282): Iterates genomic positions in deterministic ascending coordinate order, eliminating HashMap bucket-order nondeterminism and fixing co-occurring insertion/SNV coverage overlays.

4. CIGAR, Indel Realignment & Adapter Chimera Hardening (7 fixes)

  • cigar_strip_outer_hard_clips (AstraZeneca-NGS/VarDictJava#341, AstraZeneca-NGS/VarDictJava#103): Strips outer hard-clip and pad (H/P) CIGAR operators without shifting alignment_start (bwa mem -Y supplementary alignments) and treats interior P as non-consuming.
  • cigar_homopolymer_merge (AstraZeneca-NGS/VarDictJava#402): Conserves read length when merging adjacent homopolymer multi-indels during CIGAR preprocessing.
  • eqx_cigar_read_length: Treats SAM =/X (SequenceMatch/SequenceMismatch) identically to M across CIGAR preprocessing, pileup, realignment, SV spans, and -t dedup (minimap2 --eqx / pbmm2).
  • adaptor_all_consensus_dirs (AstraZeneca-NGS/VarDictJava#240, AstraZeneca-NGS/VarDict#119): Screens 5' and 3' Illumina/TruSeq adapter sequences across all 20 soft-clip consensus call sites so unscreened adapter chimeras are never memoized as complex variants.
  • shift3_3prime_alleles (AstraZeneca-NGS/VarDictJava#292): Rebuilds FASTA-matched REF/ALT sequences after -3 3'-end repeat shifting.
  • exact_35_overlap & exact_cigar_dlen_match: Removes asymmetric out-of-bounds sentinels during large-insertion assembly and prevents decimal-suffix CIGAR strings (15D, 105D) from falsely matching 5D.

5. Structural Variants, Region Bounds & IEEE Half-Even Rounding (8 fixes)

  • sv_respect_min_len (AstraZeneca-NGS/VarDictJava#328, AstraZeneca-NGS/VarDict#157): Enforces -L <INT> (SV minimum length, default 1000), emitting explicit sequence alleles (<= 32,768 bp) for split-refined indels shorter than -L and filtering discordant-only SVs < -L.
  • preserve_discordant_svs (UB-5), mark_dup_sv_inclusive_end (UB-6), & sv_lazy_mate_pileup: Retains discordant-pair single-sample <DUP>/<INV>/<DEL> SVs unless --min-splitreads is explicitly passed, fixes off-by-one mate-pair <DUP> boundary clustering, and defers distal mate-window pileups until local >= 12 bp soft-clips validate.
  • strict_region_bounds (AstraZeneca-NGS/VarDictJava#369): Suppresses realignment spillover calls outside target BED/region intervals across Simple, Amplicon, and Somatic modes.
  • suppress_pileup_sentinels (UB-1/UB-2) & pileup_preserve_shifted_ref (AstraZeneca-NGS/VarDictJava#330): Suppresses zero-depth N sentinel rows in -p pileup mode while retaining genuine reference coverage rows when candidate indels shift away.
  • exact_binary_half_even: Uses exact IEEE-754 binary round-half-to-even formatting instead of OpenJDK DecimalFormat DigitList tie-underflow truncation.

Performance, Default Parity & Safety Hardening (v1.0.10 → v1.1.0)

  • Default Parity & Indexing Fixes (0 Regressions): Fixes .csi linear-index offsets for structural variants spanning multiple 64 KiB BGZF blocks so tabix/bcftools view -r never drops spanning SVs (clintval/vartovcf#161); restores verbatim Perl $FREQ ##FILTER=<ID=f...> formatting (-f 0.0 → f0.0, -f 1e-5 → f1e-5), split-tile multi-BAM (-b b1:b2:b3) continuity, multi-tile -i splice trajectory replay, BED4 3'_UTR apostrophe retention (AstraZeneca-NGS/VarDict#172), fail-fast .fai contig/bounds checks (AstraZeneca-NGS/VarDictJava#393), somatic -D debug propagation, and realignment max_read_length seeding.
  • Bounded-Memory CRAM & Multi-Thread Panel Scheduling: 64 MiB byte-weighted worker backpressure + 32 kbp batch-span caps eliminate head-of-line thread starvation on skewed panels; per-tile CRAM reference pinning + a 160 MiB (4 × 40 MiB) LRU container cache cut HG008 somatic CRAM peak RSS by -471.5 MB; compact 2-bit k-mer seed tables (-49% index RAM), streaming amplicon sweeps, and regex-free CIGAR cursor scanners cut slice heap allocations by -23.4% to -86.2%.
  • Verification & Fuzzing Depth: 807 Cargo workspace tests, 156 Python harness tests (37 diagnostic scripts), 19 live public clinical cohort gates (HG002, HG005, NA24385 b37, SEQC2 HCC1395, HG008), a zero-exception 11-lint + #![forbid(unsafe_code)] workspace ratchet, and an 8-target cargo-fuzz campaign (34,396,380 ASan executions / 9,900 CPU-s, 0 crashes).

Attribution, Citation & Verification Transparency

VarDictRust is built under the rewrites.bio manifesto and is a cleanroom Rust re-implementation of VarDict / VarDictJava, originally authored by Zhongwu Lai and the AstraZeneca-NGS team (Lai et al., Nucleic Acids Research 2016;44(11):e108). If you use VarDictRust in published research or clinical pipelines, please cite both Lai et al. (2016) and CITATION.cff. AI-assisted engineering provenance and empirical oracle validation scope (VarDictJava v1.8.3 commit 0886261 + VarDict commit 009e017) are documented in README.md §AI Tooling & Verification Transparency, ReadTheDocs (vardictrust.readthedocs.io), docs/release/v1.1.0-pr.md, and the full v1.0.10...v1.1.0 diff.


Install vardictrust 1.1.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/palakpsheth/VarDictRust/releases/download/v1.1.0/vardictrust-installer.sh | sh

Install via Cargo or Bioconda

# Crates.io (live now, pure MIT):
cargo install vardictrust --locked --version 1.1.0

# Bioconda (linux-64, linux-aarch64, osx-64, osx-arm64 — pin =1.1.0; Phase 3A recipe PR in progress):
conda install -c bioconda -c conda-forge "vardictrust=1.1.0"

Download vardictrust 1.1.0

File Platform Checksum
vardictrust-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
vardictrust-x86_64-apple-darwin.tar.xz Intel macOS checksum
vardictrust-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
vardictrust-aarch64-unknown-linux-musl.tar.xz ARM64 MUSL Linux checksum
vardictrust-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo palakpsheth/VarDictRust

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo palakpsheth/VarDictRust