Repository navigation
VarDictRust v1.1.0 — Clinical Workflow Presets, Opt-In Upstream Bugfixes (--compat=off), Multi-Allelic VCF & MIT
LatestVarDictRust 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
MITLicense 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-precisionf80engine (stats::hypergeom,0diffs across15,747locked Fisher exact oracle rows), licensingvardictrustandvardictrust-corepurely underMIT. - Opt-In
--compat=off(32Upstream Bugfixes, Zero Flag Sprawl;VarDictRust#94,VarDictRust#95,VarDictRust#158,VarDictRust#152–VarDictRust#159): A single flag activates all32verified fixes forVarDictJava,VarDict(var2vcf_*.pl/teststrandbias.R/testsomatic.R),clintval/vartovcf,bcbio-nextgen, andEBIvariation/vcf-validatordefects, stamping##VarDictRustCompat=offin VCF headers for clinical auditability. - Clinical Short-Read Workflow Presets (
--preset <wgs|wes|amplicon|ctdna>,VarDictRust#161): Configures--compat=off, standard0-based BED coordinates (-c 1 -S 2 -E 3 -g 4 -zon non-amplicon BEDs while keeping-R chr:start-end1-based), and modality-calibrated candidate/VCF thresholds in one flag (stamping both##VarDictRustCompat=offand##VarDictRustPreset=<preset>), with full precedence for any explicit CLI flag override. - 18/18
var2vcfPost-Filter Parity + Single-Primer Amplicon (-sp) (VarDictRust#152,VarDictRust#157):--vcf-all-alleles(--all-alleles, hiddenvardictcppalias--vcfall): portsvar2vcf_valid.pl/var2vcf_paired.pl -Amulti-allelic VCF emission across Simple, Amplicon, and Paired Somatic modes with bounded-memory cross-tile deduplication (-A <INT>remainsVarDictJava'ssv_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..v4double-dash aliases (--vcfall,--noend,--vcfpass,--vcf), completing the92-flag CLI surface across7functional groups.
- WGS/WES Speed & Bounded CRAM/BAM Memory (
VarDictRust#149,VarDictRust#150,VarDictRust#151):5.5×–38.1×faster thanVarDictJava v1.8.3on WGS/WES (68.3×on amplicons) in8.3×–20.5×less RAM, scaling3.24×from 1 to 8 threads across 249 MbpGRCh38 chr1(233.18s→71.97sin1.26 GiBflat bounded RSS, whereVarDictJava v1.8.3OOM-crashes above31 GiB), while cuttingHG008somatic 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 --tbiAll 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)
strict_vcf_ad_number_r(clintval/vartovcf#101,AstraZeneca-NGS/VarDict#75,EBIvariation/vcf-validator#99): EnforcesNumber=Rin single-sampleFORMAT/ADatVD == 0sites (emittingRD,0whenALT != "."and scalarRDwhenALT == "."), preventingbcftools norm, GATK, andvcf-validatorarity errors.canonical_vcf_gt(clintval/vartovcf#99,clintval/vartovcf#54,AstraZeneca-NGS/VarDictJava#344): Canonicalizes unphased1/0(0.5 <= AF <= 1 - --vcf-gt-freq) to0/1and promotes rescued subclonal carrier0/0(VD > 0) genotypes to0/1, recovering true positives inrtg vcfevalwithout--squash-ploidy.omit_nonsv_vcf_end(clintval/vartovcf#105): RestrictsINFO/ENDto structural variants (<DEL>,<DUP>,<INV>,<INS>), preventingbcftoolsand Ensembl VEP from treating SNVs/MNVs as spanning intervals.recompute_vartype_after_adj_complex(clintval/vartovcf#109,clintval/vartovcf#147): RecomputesINFO/TYPE(SNV/Insertion/Deletion/Complex) after stripping shared 5' anchor prefixes on complex alleles.sanitize_iupac_alt_alleles(AstraZeneca-NGS/VarDictJava#267,bcbio/bcbio-nextgen#3321): Converts non-ACGTNIUPAC ambiguity codes inALTalleles to valid VCFv4.3 bases outside symbolic<...>tags and suppresses degenerateREF == ALTrecords.sanitize_sample_info(AstraZeneca-NGS/VarDictJava#116): Bijectively percent-encodes reserved VCF delimiter characters (;,=,,,%, whitespace) inINFO/SAMPLE.canonical_sv_vcf_anchoring(AstraZeneca-NGS/VarDictJava#398,clintval/vartovcf#192): Emits VCFv4.2 1-bp upstream reference anchors (POS >= 1),##ALT=<ID=DEL|DUP|INV>, signedSVLEN(<DEL>negative), andEND;SVTYPE;SVLEN.standard_dup_symbolic_alt(AstraZeneca-NGS/VarDictJava#342): Normalizes malformed negative<dup-N>symbolic alleles on short tandem duplications (< 100 bp, e.g.-L <= 100) to standard<DUP>with consistent homozygous span accounting.
2. Depth, Allele Count, Strand & Subtracted-Mean Invariants (5 fixes)
reconcile_vd_dp(AstraZeneca-NGS/VarDictJava#92,AstraZeneca-NGS/VarDictJava#386,AstraZeneca-NGS/VarDictJava#400): Guarantees0 <= VD <= DP,AF <= 1.0,ADJAF <= 1.0,HICNT <= HICOV, andHIAF <= 1.0when indel realignment rescues reads beyond raw site depth.reconcile_rd_vd_dp(AstraZeneca-NGS/VarDict#168,AstraZeneca-NGS/VarDictJava#323): EnforcesDP >= RD + VDacross pileup, structural variant, and somatic tumor/normal rescue paths.reconcile_strand_and_hq_sums(AstraZeneca-NGS/VarDictJava#316,clintval/vartovcf#120): Reconciles forward/reverse strand counts (ALDfwd + rev == VD) and high-quality read counts (0 <= HICNT <= VD) after somatic/SV count transfers.nonnegative_subtracted_means(bcbio/bcbio-nextgen#1704): ClampsPMEAN,QMEAN,MQ,NM, andQUALto>= 0during realigned read subtraction so negative quality means never appear in.var/VCF output.live_duprate: Reports observed duplicate read rate inDUPRATEacross single- and multi-tile runs instead of Java's constant0placeholder.
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) with55/61-column.varand 11-column paired VCF (GDAMP;TLAMP;NCAMP;AMPFLAGandFILTER=AMPBIAS).preserve_mixed_sex_contigs: Preserves distinctX/chrX,Y/chrY, andMT/chrMcontigs 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, eliminatingHashMapbucket-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 shiftingalignment_start(bwa mem -Ysupplementary alignments) and treats interiorPas 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 toMacross CIGAR preprocessing, pileup, realignment, SV spans, and-tdedup (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-matchedREF/ALTsequences after-33'-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 matching5D.
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, default1000), emitting explicit sequence alleles (<= 32,768 bp) for split-refined indels shorter than-Land 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-splitreadsis explicitly passed, fixes off-by-one mate-pair<DUP>boundary clustering, and defers distal mate-window pileups until local>= 12 bpsoft-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-depthNsentinel rows in-ppileup 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 OpenJDKDecimalFormatDigitListtie-underflow truncation.
Performance, Default Parity & Safety Hardening (v1.0.10 → v1.1.0)
- Default Parity & Indexing Fixes (
0Regressions): Fixes.csilinear-index offsets for structural variants spanning multiple 64 KiB BGZF blocks sotabix/bcftools view -rnever 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-isplice trajectory replay, BED43'_UTRapostrophe retention (AstraZeneca-NGS/VarDict#172), fail-fast.faicontig/bounds checks (AstraZeneca-NGS/VarDictJava#393), somatic-Ddebug propagation, and realignmentmax_read_lengthseeding. - Bounded-Memory CRAM & Multi-Thread Panel Scheduling:
64 MiBbyte-weighted worker backpressure +32 kbpbatch-span caps eliminate head-of-line thread starvation on skewed panels; per-tile CRAM reference pinning + a160 MiB(4 × 40 MiB) LRU container cache cutHG008somatic 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:
807Cargo workspace tests,156Python harness tests (37diagnostic scripts),19live public clinical cohort gates (HG002,HG005,NA24385 b37,SEQC2 HCC1395,HG008), a zero-exception 11-lint +#![forbid(unsafe_code)]workspace ratchet, and an 8-targetcargo-fuzzcampaign (34,396,380ASan executions /9,900CPU-s,0crashes).
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 | shInstall 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/VarDictRustYou 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