Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
1.2.0 - 2026-11-29¶
Added¶
- Consensus-UMI Interop (
Switch 42), Read-Pair Orientation Bias Filtering (--orientation-bias), PacBio HiFi & ONT Long-Read Presets (--preset hifi|ont), &93-Flag CLI Surface (palakpsheth/VarDictRust#96, PR #172): - Added
Switch 42(CompatProfile::consensus_bam_compatunder--compat=offand--preset), interoperating cleanly withfgumi/fgbioconsensus BAM/SAM/CRAM alignments via zero-allocationcD:i/aD:i/bD:i/MI:Zauxiliary tag decoding (SamRecord), SAMtags §1.5 aligned-query'N'/'n'NMinflation neutralization acrossCigarParser,CigarModifier, and mismatch pre-scanners (-m),MI-aware-tmolecular family deduplication (DupKey), and double-strand duplex (aD >= 1 && bD >= 1)min(f1r2, f2r1)orientation balancing. - Added
--orientation-bias[=MAX_AF:MIN_SOB:MAX_OBP|annotate](0.10:0.80:0.01default when bare;=annotateemits annotations without filtering), computing per-sampleFORMAT/F1R2andFORMAT/F2R1read-pair orientation counts,INFO/SOBstrand-orientation bias, two-sided 2x2 Fisher's exactINFO/OBP(output::vcf::fisher_two_tailed_pover(ref_f1r2, ref_f2r1, alt_f1r2, alt_f2r1)), andFILTER=OrientationBiasfor low-AF FFPE deamination and 8-oxoG oxidative damage artifacts (93CLI flags across7functional groups). - Added
--preset hifi(PacBio Revio HiFi) and--preset ont(Oxford Nanopore R10.4.1 simplex/duplex & ultra-long ONT-UL) toWorkflowPreset, configuring25 kbpregion tile halos,163,840 bpsplit-tile seam retention windows, quantized>= 64 KiBONT-UL overhang FASTA reference loading,10 kbpeffective_realign_window, span-proportional read-level mismatch gating (effective_max_mismatches),2,048 bpSclipbuffer caps ((10..=99)Sshort-readmodify_cigarbypass), and2,000 bpfind_bp_with_modebreakpoint scanning while leaving--vcf-max-nmunset by default unless passed explicitly. - Wave-6 (
Switches 33–38) & Wave-7 (Switches 39–41)CompatProfileAccuracy & Normalization Switches (32 -> 42Total) (palakpsheth/VarDictRust#160, PR #166, PR #171) — preserving 100% byte-identicalVarDictJava v1.8.3output under default--compat=vardictjava(--parity): - Wave-6 Alignment, Left-Normalization & Somatic Reconciliation (
Switches 33–38, PR #166):sclip_majority_count_first(VariationUtils.java:90; ranks soft-clip consensus prefixes by(support_count DESC, prefix_len DESC, lexicographical_asc)),mate_overlap_both_strands(Clinical-Genomics/BALSAMIC#1396,AstraZeneca-NGS/VarDictJava#239; rebalances agreed overlapping FR mate pairs evenly across forward/reverse strand tallies under-u),canonical_vcf_complex_left_align(AstraZeneca-NGS/VarDictJava#264,mskcc/vcf2maf#279; 5'-left-aligns unequal-length indels andComplexdelins inO(L + shift)with on-demand16 kbpupstream repeat chunk fetching and cross-seam deduplication),somatic_reconcile_split_alleles(clintval/vartovcf#191,clintval/vartovcf#195; reconciles cross-description and cross-position tumor/normal representations normalizing to identical(CHROM, POS, REF, ALT)),adj_snv_full_sclip_match(clintval/vartovcf#181,clintval/vartovcf#186; requires full-clip reference match on rescued2..=5 bp(>= 2 bp) soft-clips inadj_snv), andindel_only_shift3(AstraZeneca-NGS/VarDictJava#263,clintval/vartovcf#117; restrictsINFO/SHIFT3 > 0to unequal-length indels and complex alleles). - Wave-7 Homozygous-Alt LOH, Right-Fold MNV Accounting & Unspanned Stitch Guard (
Switches 39–41, PR #171):somatic_loh_homozygous_alt(SomaticPostProcessModule.java:221,238; classifies normal-drivenemit_v2_loh_fallbackrows asLikelyLOHwhen tumor exhibits homozygous-alt LOH against heterozygous normal),mnp_exact_right_fold(VariationRealigner.java:320-351,clintval/vartovcf#101,clintval/vartovcf#155,clintval/vartovcf#160; tracks upstream match context soadjust_mnpincrementsref_coveragestrictly for 5'-truncated reads and prunes 100%-orphan cis-split prefixes), andstrict_unspanned_lgins_stitch(VariationRealigner.java:1872-1960,AstraZeneca-NGS/VarDictJava#363; rejects unspanned|p3 - p5| > 15realignlgins30chimeric stitches lacking spanning soft-clips or clean0..=15 bpTSD overlap). - 16-Modality Public-Data Omnibus Verifier, Portable Zero-JVM CI Gate, Manuscript Expansion, &
890-Test Suite (PR #164, PR #165, PR #166, PR #169, PR #171, PR #172): - Added stdlib-only
harness/verify_public_data.py(--suite {wave4,wave5,presets,wave6,v120,ablation,tiling,all}with singleflight(cohort, mode, flags)run caching and42/42only_1..42/loo_1..42CompatProfileablation across16real-world sequencing modalities includingfgumi 0.9.0duplex/SPE, 24h FFPESEQC2, PacBio Revio HiFi, and PromethION ONT/ONT-UL viaharness/get_v120_public_slices.sh), addedharness/run_portable_invariants.sh(< 12szero-JVM multi-switch/tiling/CRAM/var2vcf -A/UMI/FFPE gate inpr_check.shanddifferential.yml), upgraded all8cargo-fuzztargets to42-bitCompatProfile::from_mask+WorkflowPresetfuzzing, added the beginner--presetquickstart (README.md,docs/migration.md) andv1.1.0clinical study manuscript expansion (benchmarks/v110-compat-study/,Figure 9,Table 9,Supplementary Table S7), and grew the Cargo workspace suite from807to890tests (649vardictrust-corelib +110corpus_parity+53engine_behavior+2amplicon_stream_mem+3cram_stack+38CLI bin +35CLI integration) and Python harness tests from156to159across37diagnostic scripts.
Changed¶
- Realignment Slice Fast-Paths,
O(N)Split-Tile Seam Indexing, & Packaging Synchronization (PR #163, PR #166, PR #168, PR #172): added zero-diffrealign::is_matchandrealign::is_match_refslice fast-paths and SNV-only amplicon FASTA-open elision; indexed cross-tile seam deduplication inO(N)viaFxHashMap; synced in-treepackaging/bioconda/recipes/vardictrust/meta.yamlto pure-MITv1.1.0(sha256: c38fa31f2c2c33b16eef91e2a6f5b096a302498acbb8dbc04a58c6cb726fb7e9,--build-numbersupport inprepare_bioconda_pr.sh, andtrigger_rtd.sh synctag-convergence polling); and recertified all16benchmarks/evidence/*.jsonmanifests forv1.2.0.
Fixed¶
- Waves 1–6 Split-Tile Seam, Overhang, Somatic, Preset, Statistical, & CRAM/CSI Hardening (PR #165, PR #167, PR #168, PR #169): preserved distinct-
ENDco-anchored symbolic SVs (<DUP>/<DEL>/<INV>) across post-normalization dedup andSpillableVcfAccumulatordisk spills while exempting symbolic SVs fromClusterNbp; conservedref_coverageacross split-tile spanning deletions and parent-BED-clampedfind_svwindows plusVariation::tile_planteddistant-mate SVs and backward-overhang deletions; evaluated split-tile ownership on pre-normalizationorigin_poswith repeat-straddlehold_frombounds; deferredmate_overlap_both_strandsrebalancing tofinalize_overlap_strand_rebalancewith-uinsertion strand-shortfall conservation; rescued low-purity0 < vd1 < vd2LikelySomatic/Germlinetumor0/1calls, explicit-r/-q--presetfloor overrides, raw IUPAC FASTA reference keys,-a -pshifted-reference pileup rows,-sp5' mate guards, subnormal Fisher tails, leading-gap window-0--csiloffsetbackfills, colon-path BAM/CRAM splitting, Crossref-verifiedGong et al. 2022DOIs (10.1038/s41597-022-01359-6), and worktreewave4/v120symlink staging inharness/recertify.sh.
1.1.0 - 2026-11-25¶
Added¶
- Clinical Short-Read Workflow Presets (
--preset <wgs|wes|amplicon|ctdna>), Single-Primer Amplicon (-sp), Multi-Allelic VCF (--vcf-all-alleles), &92-Flag CLI Surface (palakpsheth/VarDictRust#94, PR #152, PR #154, PR #155, PR #157, PR #161, PR #162): - Added
--preset <wgs|wes|amplicon|ctdna>(WorkflowPresetandConfig::from_presetincrates/vardictrust-core/src/config.rs), keeping default invocations 100% byte-identical toVarDictJava v1.8.3(--compat=vardictjava/--parity) while stamping##VarDictRustCompat=offand##VarDictRustPreset=<preset>in VCF headers, setting0-based BED coordinates (-c 1 -S 2 -E 3 -g 4 -zon non-amplicon BEDs while keeping-R1-based unless-zis passed explicitly), preserving UCSC 8-column CDS BED8SimpleModeunderwgs/wes/ctdnavsAmpliconMode(-a 10:0.95) under--preset amplicon, deduplicating paired somaticQ20FILTERtags, and giving explicit CLI flags full override precedence (harness/verify_presets_public_data.sh). - Added
--vcf-all-alleles(--all-alleles, hiddenvardictcppalias--vcfall;AstraZeneca-NGS/VarDictJava#65), completing 18/18var2vcf_valid.pl/var2vcf_paired.plpost-filter parity by porting-Amulti-allelic VCF emission across Simple, Amplicon, and Paired Somatic modes via genericSplitVarDeduper<P>cross-tile deduplication and associative disk spill/merge (SpillableVcfAccumulator) while keeping-A <INT>asVarDictJava'ssv_min_af. - Added
--amplicon-single-primer/-spfor single-primer extension (SPE) panels such as QIAseq V3 and ArcherDX (AstraZeneca-NGS/VarDictJava#301,AstraZeneca-NGS/VarDictJava#303,AstraZeneca-NGS/VarDictJava#326,AstraZeneca-NGS/VarDict#191) and hidden double-dashvardictcpp v2..v4drop-in CLI aliases (--vcfall,--noend,--vcfpass,--vcf;MHH-Bioinformatics-Hematology/vardictcpp#4,bioconda/bioconda-recipes#68008,bioconda/bioconda-recipes#71981), completing the92-flag CLI surface across7functional groups. - Dual-Mode
--compat=vardictjava|offGovernance & All32CompatProfileCorrectness Switches (palakpsheth/VarDictRust#34,palakpsheth/VarDictRust#94,palakpsheth/VarDictRust#95,palakpsheth/VarDictRust#158, PR #152, PR #153, PR #156, PR #157, PR #159) — defaults toCOMPAT_VARDICTJAVA_1_8_3(aliasesvardictjava-1.8.3,1.8.3,--parity) for 100% byte-identicalVarDictJava v1.8.3output while activating all32switches together under--compat=off(##VarDictRustCompat=off, zero per-bug--fixflags, validated acrossharness/get_wave4_public_slices.sh,harness/verify_wave4_public_data.sh, andharness/verify_wave5_public_data.sh): - VCFv4.2 / VCFv4.3 Specification & Validator Compliance (8 switches):
strict_vcf_ad_number_r(clintval/vartovcf#101,AstraZeneca-NGS/VarDict#75,AstraZeneca-NGS/VarDict#76,EBIvariation/vcf-validator#99; enforcesNumber=Rin single-sampleFORMAT/ADatVD == 0sites by emittingRD,0whenALT != "."and scalarRDwhenALT == "."),canonical_vcf_gt(clintval/vartovcf#99,clintval/vartovcf#54,AstraZeneca-NGS/VarDictJava#344; canonicalizes unphased1/0to0/1and promotes rescued carrier0/0withVD > 0to0/1),omit_nonsv_vcf_end(clintval/vartovcf#105; restrictsINFO/ENDto structural variants),recompute_vartype_after_adj_complex(clintval/vartovcf#109,clintval/vartovcf#147; recomputesINFO/TYPEafter 5'-prefix stripping on complex alleles),sanitize_iupac_alt_alleles(AstraZeneca-NGS/VarDictJava#267,AstraZeneca-NGS/VarDictJava#287,AstraZeneca-NGS/VarDict#137,bcbio/bcbio-nextgen#3321; reduces non-ACGTNIUPAC ambiguity codes inALToutside symbolic<...>tags and suppresses non-pileupREF == ALTrows),sanitize_sample_info(AstraZeneca-NGS/VarDictJava#116; bijective%XXencoding forINFO/SAMPLE),canonical_sv_vcf_anchoring(AstraZeneca-NGS/VarDictJava#398,AstraZeneca-NGS/VarDictJava#225,AstraZeneca-NGS/VarDictJava#229,AstraZeneca-NGS/VarDict#111,AstraZeneca-NGS/VarDictJava#382,clintval/vartovcf#192,clintval/vartovcf#107,clintval/vartovcf#108,samtools/hts-specs; VCFv4.2 1-bp upstream reference anchors,##ALT=<ID=DEL|DUP|INV>, signedSVLEN, andEND;SVTYPE;SVLEN), andstandard_dup_symbolic_alt(AstraZeneca-NGS/VarDictJava#342; normalizes< 100 bpnegative<dup-N>alleles to<DUP>with unified homozygous span accounting). - Depth, Allele Count, Strand & Subtracted-Mean Invariants (5 switches):
reconcile_vd_dp(AstraZeneca-NGS/VarDictJava#92,AstraZeneca-NGS/VarDictJava#386,AstraZeneca-NGS/VarDictJava#400; enforces0 <= VD <= DP,0.0 <= AF <= 1.0,0.0 <= ADJAF <= 1.0,0 <= HICNT <= HICOV, and0.0 <= HIAF <= 1.0),reconcile_rd_vd_dp(AstraZeneca-NGS/VarDict#168,AstraZeneca-NGS/VarDictJava#323; enforcesDP >= RD + VD),reconcile_strand_and_hq_sums(AstraZeneca-NGS/VarDictJava#316,clintval/vartovcf#120,clintval/vartovcf#142; enforcesALD[0] + ALD[1] == VDand0 <= HICNT <= VD),nonnegative_subtracted_means(bcbio/bcbio-nextgen#1704; clampsPMEAN/QMEAN/MQ/NM/QUAL >= 0), andlive_duprate(u64-widened duplicate-read accounting across untiled and split-tile runs). - Somatic, Amplicon & Multi-Contig Calling (4 switches):
somatic_continue_after_bad_var(joachimwolff/VarDictJava#4,clintval/vartovcf#139,clintval/vartovcf#149,AstraZeneca-NGS/VarDictJava#376; continues evaluating lower-AF somatic candidates at multi-allelic loci when a top-ranked artifact failsis_good_var),paired_somatic_amplicon(AstraZeneca-NGS/VarDictJava#378,AstraZeneca-NGS/VarDictJava#155,AstraZeneca-NGS/VarDict#109,MHH-Bioinformatics-Hematology/vardictcpp#1,MHH-Bioinformatics-Hematology/vardictcpp#3; paired-b "tumor|normal" -acalling withGDAMP;TLAMP;NCAMP;AMPFLAGandFILTER=AMPBIAS),preserve_mixed_sex_contigs(preserves distinctX/chrX,Y/chrY, andMT/chrMcontigs), andcoordinate_sorted_vars(UB-3/AstraZeneca-NGS/VarDictJava#282; deterministic ascending genomic coordinate iteration). - CIGAR, Indel Realignment & Adapter Chimera Hardening (7 switches):
cigar_strip_outer_hard_clips(AstraZeneca-NGS/VarDictJava#341,AstraZeneca-NGS/VarDictJava#103,Kennedy-Lab-UW/VarDictJava@9a0beb0d,hedera-dx/VarDictJava@17d1cb51; strips outerH/PCIGAR operators without advancingalignment_startand treats interiorPas non-consuming),cigar_homopolymer_merge(AstraZeneca-NGS/VarDictJava#402; conserves read length across homopolymer multi-indels),eqx_cigar_read_length(full SAM=/Xequivalence withMforminimap2 --eqx/pbmm2),adaptor_all_consensus_dirs(AstraZeneca-NGS/VarDictJava#240,AstraZeneca-NGS/VarDictJava#241,AstraZeneca-NGS/VarDict#119,PolinaBevad/VarDictJava@92c62cf6; screens 5' and 3' Illumina/TruSeq adapters across all 20 soft-clip consensus sites),shift3_3prime_alleles(AstraZeneca-NGS/VarDictJava#292; FASTA-matchedREF/ALTsequences after-33' shifting),exact_35_overlap, andexact_cigar_dlen_match. - Structural Variants, Region Bounds & IEEE Half-Even Rounding (8 switches):
sv_respect_min_len(AstraZeneca-NGS/VarDictJava#328,AstraZeneca-NGS/VarDict#157; enforces-L <INT>by materializing bounded<= 32,768 bpexplicit sequence alleles for split-refined indels< -Land filtering discordant-only SVs< -L),preserve_discordant_svs(UB-5; retains discordant-only single-sample<DUP>/<INV>/<DEL>SVs unless--min-splitreadsis explicitly passed),mark_dup_sv_inclusive_end(UB-6),sv_lazy_mate_pileup,strict_region_bounds(AstraZeneca-NGS/VarDictJava#369),suppress_pileup_sentinels(UB-1/UB-2),pileup_preserve_shifted_ref(AstraZeneca-NGS/VarDictJava#330), andexact_binary_half_even. - Cleanroom Pure-
MITHypergeometric Engine, 8-Target Fuzzing, Zero-Allow Lint Ratchet, &807-Test Suite (palakpsheth/VarDictRust#92, PR #144, PR #149, PR #150, PR #156, PR #161): - Added cleanroom
MITstats::hypergeomsaddlepoint binomial and hypergeometric routines (Catherine Loader 2000, NIST DLMF §5.11.1, and extended-precisionf80summation;0.var/VCF diffs across15,747locked Fisher fixture rows and the full corpus), restoring pureMITSPDX licensing acrossvardictrust-core,vardictrust,CITATION.cff, Bioconda (linux-64,linux-aarch64,osx-64,osx-arm64viapackaging/bioconda/prepare_bioconda_pr.sh), andnf-core/modules(packaging/nf-core/prepare_nfcore_pr.sh). - Enforced the zero-allow 11-lint (
unwrap_used,expect_used,panic,unreachable,todo,unimplemented,dbg_macro,print_stdout,print_stderr,string_slice,indexing_slicing) andunsafe_coderatchet across both crates (harness/lint_ratchet.sh --scan-only), expandedcargo-fuzzto8targets orchestrated byharness/run_deep_fuzz.sh(34,396,380ASan executions /9,900CPU-seconds with0crashes), and grew the automated Cargo workspace suite from691to807tests (580vardictrust-corelib +110corpus_parity+42engine_behavior+2amplicon_stream_mem+3cram_stack+35CLI bin +35CLI integration) and Python harness tests from150to156across37diagnostic scripts.
Changed¶
- Multi-Thread Skewed-Panel Scheduling & Bounded CRAM/BAM Memory Optimizations (PR #149, PR #150, PR #151), preserving 100% byte-identical
VarDictJava v1.8.3output (24/24profiled VCFs byte-identical): - Decoupled weighted worker concurrency (
max_in_flight = 2 * num_threads) from a64 MiBbyte-weighted pending-output buffer (FlowState) and32,768 bpbatch-span caps inregions::batch_tiles, eliminating head-of-line thread starvation on skewed targeted panels; added tile-scopedCramContigPinGuard,1 MiBchunked FASTA loading, and a160 MiB(4 × 40 MiB) byte-tracked LRUCRAM_CONTAINER_CACHE, cuttingHG008somatic CRAM peak RSS by-471.5 MBandhg008-subDHAT heap bytes by an additional-9.64%(-289.9 MB). - Added owned
Cow<'_, Vars>post-processing fast-paths, streamingAmpliconCoverSweep, pre-pruneToVarsBuilder::drain_vars_intoelision, watermarked 2-bitSeedTable12/SeedTable17k-mer indices (-49.0%index bytes), and regex-freeCigarModifiercursor scanners (-100%runtime regex allocations), cutting slice DHAT byte churn by-23.4%to-86.2%and jemalloc exitinuse_spaceby-51.9%to-95.1%. - Packaging, Provenance, Documentation & Manuscript Synchronization (PR #142, PR #143, PR #145, PR #146, PR #147, PR #154, PR #155, PR #161, PR #162): synced prior
v1.0.10Bioconda/bioconda/bioconda-recipes#71875and Nextflow/nf-core/modules#13830baselines, expandedUPSTREAM.tomlcross-ecosystem lineage, recertified all16benchmarks/evidence/*.jsonmanifests (FP = b18477ae0a7b07c1,PERF_FP = 5c41be8047133842,3.24x8-threadchr1scaling in1.26 GiBflat RSS), and synchronizedREADME.md,ROADMAP.md,DIVERGENCES.md,docs/,zensical.toml,wiki/, andpaper/{manuscript,supplement}.{md,pdf}.
Fixed¶
- Spanning-SV
.csiIndexing & Perl$FREQ/--no-endVCF Parity (PR #156, PR #159): propagated 16 kbpIndexer::<LinearIndex>::new(14, 6)loffsetentries intoIndex<BinnedIndex>on--csioutputs so structural variants spanning multiple 64 KiB BGZF blocks are never missed bytabix/bcftools view -r(clintval/vartovcf#161); restored verbatim Perl$FREQstring parity in##FILTER=<ID=f...>headers andFILTERtags (-f 0.0→f0.0,-f 1e-5→f1e-5;AstraZeneca-NGS/VarDict@009e017,MHH-Bioinformatics-Hematology/vardictcpp#4); decoupled explicit--no-end/--noendfrom-E <INT>; and keyedcheck_release_consistency.pyBioconda/nf-corelicense checks on each recipe's own pinned version. - Additional
VarDictJava v1.8.3&var2vcfEdge-Case Parity + Hostile-Input & CI Hardening (PR #148, PR #150, PR #153, PR #156): preserved split-tile multi-BAM (-b b1:b2:b3) continuity while retaining upfrontAstraZeneca-NGS/VarDictJava#187index checks; removed the non-Java500 bpBamFeedhalo inprocess_amplicon_region; included SAM=/Xin CRISPR-J/-jspan accounting; enabled multi-tile-isplice trajectory replay and-tboundary dedup; preserved ASCII spaces in#CHROMsample headers while neutralizing Unicode line separators; formatted-Ddebug strings viaround_half_evenand propagated somaticv2.debug; seededrealign::partial_pipelinemax_read_lengthacross all four call sites while removing the non-Java SVpartial_pipeline_pathswriteback; added fail-fast.faicontig/bounds validation (AstraZeneca-NGS/VarDictJava#393), BED43'_UTRapostrophe verification (AstraZeneca-NGS/VarDict#172), CRAMSliceHeader/InflightCramGuardepoch bounds,SIGPIPE-safe harness matchers, and workflowtimeout-minutescaps.
1.0.10 - 2026-11-18¶
Added¶
- Expanded
cargo-fuzzcoverage (SeedMap-populatedfuzz_modify_cigarand newfuzz_parse_and_realigntarget), added37harness diagnostic self-tests (25shell tests +12Python test suites, including single-pass FIFO-safecompare_vcf.pysample-column andFORMATsubfield count parity checks), and expanded the automated Cargo workspace test suite from664to691tests (491vardictrust-corelibrary unit tests +110corpus_parity+29engine_behavior+2amplicon_stream_mem+3cram_stack+29CLI bin +27CLI integration binary tests) (crates/vardictrust-core/fuzz/,harness/compare_vcf.py,harness/tests/) (PR #135, PR #136, PR #137, PR #138, PR #139, PR #140).
Changed¶
- Landed SemVer-compatible zero-diff CPU, heap-allocation, and code-consolidation optimizations across
vardictrust-corewhile preserving 100%VarDictJava v1.8.3(0886261) byte-for-byte parity (PR #137, PR #138, PR #140): - Clipped CIGAR deletion coverage updates (
parse.rs) to sorted merged±5,000 bploaded reference windows with idempotenti64coordinate-compressedfinish_ref_coveragesweeps for> 64 bpspans; flattened multi-tilemax_read_lengthpre-scanning (lib.rs) into a non-nested250 kbpband pool with disjointalignment_startband ownership,4 MiBper-bandFallbackSequentialcap, and a lazy4 MiB2-bitACGT+'N'side-map 12-mer index on 2nd+ parent-wide misses; and addedEXP_UNDERFLOW_LN_F64 = -746.00-ULPexp()short-circuiting and loop-invariantp3hoisting infisher.rs. - Replaced
swar_mismatch_count_u64softwarecount_ones()with a 3-op branchless multiply-shift horizontal byte sum, tightenedfind_35_match(Iterator::positioncandidate scanning + exact O(1)mm0IEEE-7540.1ratio pre-rejects,2.60×faster), addedfind_conseq_sliceeliminating allSclipdeepBTreeMap/IndexMapclones acrossrealignlgdel/find_del_paths/find_dup_disc_paths, replaced quadratictmp3scans inrealignlgins30with binary-searched window slices, indexedSOFTP2SVupfront viaSclipSlotinfind_sv, and unifiedfind_mm5/find_mm3and.var/genotype/regex formatting over stack-allocated buffers (StackBuf). - Reduced
JavaHashMap<i32, Vars>to96 B(Option<Box<V>>cold fallback,Option<Box<Vec<K>>>NewKeyLog,active_tree_bins: u32, ASCIIjava_string_hash/java_comparefast-paths,into_entries), deleted the privateStrNodeRed-Black tree injava_hashmap_key_orderin favor ofJavaHashMap<&str, usize>, addedbuild_aligned_variants_prunedto skip Phase-2collect_reference_variantson doomed sub-threshold sites, consolidated.varserializers viaTableModeStyleacross Simple36/38, Amplicon38/40, and Somatic55/61, removed duplicate per-tileBTreeMappasses and unused privateSAM_READER_CACHE/ADAPTOR_MAP_CACHE, addedi64\(O(1)\) pre-regionMatchskipping / single-baseMatchspecialization / fused paired CIGAR scans />= 10Sand>= 12Smodify_pure_sm_in_placefast-paths, and added 2-slotBAM_META_TLS(BAM_CACHE_EPOCH),<= 4096 BBamFeedInnerstashes,ACGTacgt=fast-skip incompute_cram_nm,SeedKey::pair_17_12, and RAIIWorkerRegionGuard. - Synced in-tree
packaging/bioconda/recipes/vardictrust/meta.yamltov1.0.9verified GitHub release tarball SHA-256c40c3bf6180144d87ae39a52470b07e68b61f2ea41ef8c990deaf24529025284, trimmed unusedregexandnoodlesbed/vcffeatures from binary manifests, and retiredenv RUST_MIN_STACK=67108864and the last# shortcut:comment inharness/cram_twin.sh(PR #134, PR #136, PR #140).
Fixed¶
- Raised
MAX_CACHED_CRAM_CONTAINER_BYTESincrates/vardictrust-core/src/bam.rsfrom4 MiBto16 MiB(should_cache_cram_container/fetch_cram_container_in), added per-key singleflight CRAM container decode coalescing (InflightCramDecode/InflightCramGuardonCramContainerCacheShard), upgradedCRAM_META_TLSfrom 1 slot to 2 slots (lookup_cram_meta_tls/insert_cram_meta_tls) eliminatingT <-> Npaired somatic TLS thrash, and bufferedprevalidate_cram_container_slicesthrough a64 KiBseek-retaining window (SeekWindowReader) so standard10,000–10,240-read150–250 bpIllumina CRAM containers (~6.3–9.8 MiB) decode once across concurrent workers and hitCRAM_CONTAINER_CACHEwhile keeping8 × 4 = 32decoded-record slots bounded to<= 512 MiBand bypassing oversized long-read containers (PR #136, PR #139). - Hardened hostile-input
.bai/.csiindex loading and text SAM CIGAR decoding uncovered by pre-release libFuzzer sweeps: added zero-allocation structural header and remaining-byte count pre-validation (MAX_BAI_BYTES = 512 MiB,MAX_CSI_BYTES = 256 MiB,MAX_CSI_DECOMPRESSED_BYTES = 256 MiB,n_ref/n_bin/n_chunk/n_intv/l_auxbounds) inread_validated_bai_indexandread_validated_csi_indexbefore delegating tonoodles, and terminated non-advancingcigar.iter()Errloops immediately inSamRecord::fill_from_alignment_recordandintersects_record(crates/vardictrust-core/src/bam.rs). - Hardened CLI
-th/--threadspositional-BED normalization (require_equals = true+ free-positional counting preserving Commons-CLI first-wins duplicate-th), stale.tbi/.csisidecar cleanup and0555read-only preflight validation when overwriting BGZF--outputpaths without--tbi/--csi,--outputparent-directory spill staging inSpillableVcfAccumulatorwithstd::env::temp_dir()fallback, andFileStamp-validated process-wideOnceLock.fai/.gzimetadata sharing across worker threads (crates/vardictrust/src/cli.rs,src/main.rs,crates/vardictrust-core/src/lib.rs,src/bam.rs) (PR #136, PR #138). - Hardened harness BSD/macOS portability, comparator validation, and CI supply-chain pins: added
execvp-safeportable.sh --timeout,resolve_data_root, and 16-pathfind_gitleakswhile removing GNU-isms across 11 scripts; hardened.github/workflows/release.yml(!announcement_is_prerelease, step-scopedCARGO_REGISTRY_TOKEN, idempotentvardictrust-core+vardictrustpublish, removed emptyannounce); bumpedsetup-conda-envtoconda-env-v3-with portable CLI pins and pinnedplaywright==1.62.0indocs.yml; hardenedgcp_paper_runner.sh(--stageallowlist + immutable SHA-256-verified installers); and added SHA-256 verification onconcordance_multimodal.shtruth slices andrun_stage_6.shdownloads (PR #135).
1.0.9 - 2026-11-16¶
Added¶
- Ported OpenJDK 8
java.util.HashMap.TreeNodeRed-Black treeification (treeify,balanceInsertion,rotateLeft,rotateRight,moveRootToFront,getTreeNode, single-passprobe_tree_slot/putTreeVal), deletion rebalancing (removeTreeNodeentry-topology untreeification,balanceDeletion, and 2-child interior link swapping), andresize()TreeNode.split(UNTREEIFY_THRESHOLD = 6) intoJavaHashMap<K, V>behind a coldOption<Box<Vec<TreeLink>>>sidecar (size_of::<Node<i32, i32>>() == 12,0extra per-node bytes across< 8-collision biological cohorts), sealingJavaHashwith UTF-16Stringordering (encode_utf16().cmp(...)) and signedi32spread-hash comparisons (CWE-4072^16-stride collision DoS closure; expanded the automated Cargo workspace test suite from657to664tests:467vardictrust-corelibrary unit tests +110corpus_parity+29engine_behavior+2amplicon_stream_mem+3cram_stack+28CLI bin +25CLI integration binary tests) (crates/vardictrust-core/src/javamap.rs,src/tovars.rs,benches/engine.rs,ROADMAP.md) (Issue #116SEC-17b, PR #131).
Changed¶
- Migrated the ReadTheDocs (
vardictrust.readthedocs.io) and strict CI documentation platform frommkdocs-material(mkdocs.yml) to Zensical (zensical.toml,zensical>=0.1.1,<0.2.0), adding MathJax v3 configuration (docs/javascripts/mathjax.js), fence-aware Mermaid and GFM staging normalization inharness/prepare_docs_site.py, space-safe Zensical pre-commit/pre-push strict gates, pure-stdlib TOMLnavvalidation incheck_release_consistency.py, and 4-page Playwright Chromium DOM/MathJax/Mermaid/SVG UI verification (zensical.toml,.readthedocs.yaml,.github/workflows/docs.yml,.githooks/{pre-commit,pre-push},harness/prepare_docs_site.py,harness/tests/test_docs_ui.py) (Issue #123, PR #122, PR #129). - Updated workspace and CI dependencies:
noodles(0.118 -> 0.119, includingnoodles-bam 0.98.0,noodles-cram 0.102.0,noodles-sam 0.93.0, andnoodles-vcf 0.96.0),flate2(1.1.10 -> 1.1.11),lzma-rust2(0.22.0 -> 0.24.0),log(0.4.34 -> 0.4.35),pymdown-extensions(>=13.0), transitive Cargo lockfile dependencies, and pinned GitHub Actions (step-security/harden-runner,taiki-e/install-action,github/codeql-action/upload-sarif) (Cargo.toml,Cargo.lock,crates/vardictrust-core/fuzz/Cargo.toml,.github/workflows/*.yml) (PR #110, PR #111, PR #112, PR #115, PR #117, PR #124).
Fixed¶
- Hardened release supply-chain bootstrap, dataset SHA-256 verification, tag ruleset governance, and deterministic complexity tests: replaced pipe-to-shell and unverified third-party toolchain installers in
.github/workflows/release.ymlwith cached 4-architecturecargo-dist v0.33.0SHA-256 archive verification,macos-15aarch64-apple-darwinrunner migration, SLSA v1.0resolvedDependencies[0]alignment,workflow_dispatchrecovery, and 6-jobstep-security/harden-runneraudit; upgradedharness/assets.tsvto 6 columns with 40 verified SHA-256 digests, atomicstage_verified_sha256, and unconditional disk rehashing acrossharness/fetch_data.shand slice stagers; enforced lockout-saferefs/tags/v*ruleset24867690inharness/configure_github_repo.py; and replaced sub-second wall-clock test assertions with deterministic step and probe bounds (.github/workflows/release.yml,harness/assets.tsv,harness/fetch_data.sh,harness/lib/portable.sh,harness/configure_github_repo.py,crates/vardictrust-core/src/) (Issue #116SEC-05/SEC-14/SEC-12b, PR #119, PR #120, PR #121, PR #130, PR #131).
1.0.8 - 2026-11-14¶
Added¶
- Native direct file output, BGZF compression, Tabix/CSI indexing, run telemetry, and explicit parity pinning:
--output <PATH>(streaming.vcf,.var, and-isplice counts directly to plain files or multithreaded BGZF.gz/.bgzvianoodles::bgzf::io::MultithreadedWriterwithFile::sync_allverification),--tbi/--indexpure-Rust Tabix (.vcf.gz.tbi) and--csipure-Rust CSI (.vcf.gz.csi) index generation (noodles::tabixandnoodles::csi, honoringINFO/ENDcoordinate spans for symbolic<DEL>,<DUP>,<INV>, and<INS>records, with an actionable--csihint when--tbiencounters coordinates exceeding Tabix's512 Mbplimit),--no-end(var2vcf_valid.pl -EINFO/ENDsuppression),--stats-json <PATH>pipeline telemetry,--parityand--compat vardictjava-1.8.3CLI forward-compatibility pinning, andUPSTREAM.tomlreference provenance manifest (crates/vardictrust/src/cli.rs,src/main.rs,crates/vardictrust-core/src/lib.rs,src/output/vcf.rs) (Issue #93, Issue #94, PR #100, PR #102, PR #104). - Commons-CLI single-dash long-option compatibility (
-fisher,-adaptor,-chimeric,-deldupvar,-nosv,-splice,-header,-dedup,-debug,-verbose,-amplicon,-DP,-default-printer,-defaultPrinter,-mfreq,-nmfreq,-insert-size,-insert-std,-ref-extension,-crispr,-?/--?),--default-printer/--insert-size/--insert-std/--ref-extension/--crisprlong aliases, and-Cand-Z/-downsample/--downsampleexplicitVardictError::Unsupportedreporting (crates/vardictrust/src/cli.rs) (PR #104). - Additional upstream VarDictJava CLI parity, short-option cluster normalization, thread-pool environment fallback, and workspace package metadata:
-T/--trim(-trim) per-base pileup read trimming (trim_bases_after/is_trim_at_opt_t_bases),-n <REGEXP>sample-name regex extraction,-VS/--VSSILENT/LENIENTvalidation stringency acceptance (-VS STRICTfails fast withVardictError::Unsupported), clustered boolean-prefix short options (-pz,-pz0,-uk,-ua,-pR),RAYON_NUM_THREADSfallback when-th/--threadsis omitted, and MSRVrust-version = "1.91.0"+crates.iometadata inheritance acrossCargo.toml,crates/vardictrust/Cargo.toml, andcrates/vardictrust-core/Cargo.toml(crates/vardictrust/src/cli.rs,crates/vardictrust-core/src/config.rs,src/cigar/parse.rs) (PR #105). - Cross-tile
.varintermediate boundary deduplication viaSplitVarDeduper(SPLIT_VAR_RETENTION_WINDOW_BP = 200_000) across split tiles inSimpleModeandSomaticMode, preserving within-tile multiplicity and-pshifted-singleton position-0 companion triples, verified by multi-tile.var/.vcf/SV/splice conservation suites (crates/vardictrust-core/src/lib.rs,tests/engine_behavior.rs) (Issue #91, PR #99, PR #100, PR #101, PR #104). - Certified 92-chromosome per-contig parity suite (
docs/validation/chr-parity-v107.md,benchmarks/chr-parity-v107.json:92 / 92 MATCH,0diffs across 5 cohorts including full 22-autosomeGIAB HG002WGS8,111,171variants), strict Markdown relative-link and MkDocs build audits, clinical/engineering SWOT ecosystem review (docs/ecosystem-survey.md), Bioconda and Nextflownf-core/modulesv1.0.7packaging sync (withMIT AND GPL-2.0-or-laterblock-sequencemeta.yml), 29 zero-conda / 7 oracle CI self-test wiring, 5-target release performance budget guard, and live--verify-cargo-listrelease-consistency validation (PR #86, PR #87, PR #88, PR #89, PR #97). - Expanded the automated Cargo workspace test suite from
519to657tests (460vardictrust-corelibrary unit tests +110corpus_parity+29engine_behavior+2amplicon_stream_mem+3cram_stack+28CLI bin +25CLI integration binary tests) (PR #104, PR #105, PR #106, PR #107). - Consolidated
var2vcf_valid.pl/var2vcf_paired.plVCF post-filter CLI flags (--pass-only,--paired-strict,--vcf-pval <FLOAT>,--min-splitreads <INT>,--no-pstd-filter; portingvar2vcf_valid.pl-S/-T/-P 0andvar2vcf_paired.pl-S/-M/-Pwith verbatimP$PVALtoken preservation and programmaticresolve_effective_configbounds validation) plus GNU-only single-dash typo guards failing fast with actionable"did you mean '--...'?"errors and tightenedsplit_bool_prefix_clustertail checks (crates/vardictrust-core/src/config.rs,src/lib.rs,src/output/vcf.rs,crates/vardictrust/src/cli.rs) (PR #106). - Promoted
-n <REGEXP>and-T/--trimtocorpusparity status (0unexercisedCLI flags remaining inREADME.md) via zero-subprocess in-processcorpus_paritycoverage alongside--fisherVCF raw-cell formatting assertions, and closed the resolved--fisherVCF raw-cell divergence inDIVERGENCES.md(crates/vardictrust-core/tests/corpus_parity.rs,golden/PROVENANCE,README.md,DIVERGENCES.md) (PR #106). - Completed all 11 remaining live
var2vcf_valid.pl/var2vcf_paired.plVCF threshold, genotype, and cluster-filter CLI flags (89total CLI flags across 7 functional groups together with--completionsand--manpage):--vcf-af <FLOAT>(-f),--vcf-min-depth <INT>(-d),--vcf-min-vd <INT>(-v),--vcf-qmean <FLOAT>(-q),--vcf-mapq <FLOAT>(-Q),--vcf-pmean <FLOAT>(-p),--vcf-sn <FLOAT>(-o),--vcf-max-nm <FLOAT>(-m),--vcf-gt-freq <FLOAT>(-F, validated in[0, 1]),--vcf-msi <FLOAT>(-I), and--vcf-cluster-dist <INT>(-c), modeled viaVcfThreshold<T>with explicit GNU--vcf-*defined()(Option::Some) zero semantics (honoring0on explicit overrides while preserving legacy bare-f 00.02single-sample fallback) andSingleRecordStreamer+ 4-stateSingleVcfEventbounded-memoryCluster<N>bpsliding-window buffering across tiled and disk-spilled single-sample/amplicon streams (crates/vardictrust-core/src/config.rs,src/lib.rs,src/output/vcf.rs,crates/vardictrust/src/cli.rs) (PR #107). - Added zero-dependency
--completions <SHELL>(bash,zsh,fish) and--manpage(vardictrust(1)roff) generators backed byclap::CommandFactoryintrospection, reorganized CLI--help(-H/--help) into 7help_headingsections matchingREADME.md, added cross-compile-safe completion and manpage installation inpackaging/bioconda/recipes/vardictrust/build.sh, authored thedocs/migration.mdRosetta Stone guide fromVarDictJava+ R + Perl (var2vcf_valid.pl/var2vcf_paired.pl) pipelines, recorded[advisory_comparators.vardictcpp](version = "3",bioconda_build = "hc52dbad_0") inUPSTREAM.toml, and expandedcheck_release_consistency.pystructural guards (crates/vardictrust/src/completions_man.rs,src/cli.rs,docs/migration.md,packaging/bioconda/recipes/vardictrust/build.sh,UPSTREAM.toml,.agents/skills/vardictrust-release/scripts/check_release_consistency.py) (PR #108). - Added end-to-end GRCh38 HLA/alt-contig colon-name support (e.g.,
HLA-A*01:01:01:01:100-200[:GENE]) across-R/--regionand BED calling via right-to-left known-contig prefix matching inregions::parse_region_flagand zero-allocationpub(crate) bam::build_noodles_region(replacing string-formatted"{}:{}-{}"region reparsing), alongside MkDocs 1.6 top-levelnot_in_navvalidation, Nextflownf-coreCRAM/CSI/ReadTheDocs packaging metadata, and MSRV1.91.0/DIVERGENCES.mdrelease-consistency guards (crates/vardictrust-core/src/regions.rs,src/bam.rs,src/reference.rs,mkdocs.yml,packaging/,harness/tests/,.agents/skills/vardictrust-release/) (PR #107).
Changed¶
- Landed zero-output-diff Tier-1 performance and memory optimizations across CIGAR parsing, BAM/CRAM I/O, local realignment, Fisher exact statistics, and VCF/table serialization (Issue #90, PR #98, PR #99, PR #100, PR #101, PR #102, PR #103, PR #104, PR #105, PR #106):
- Added single-
Match(150M) and pureS/Min-placemodify_cigarfast-paths, zero-copyseq/qualread slices,modify_cigar_preserving_buffersscratch buffer capacity restoration, hoistedadjusted_nm, stackByteSet([u64; 4]), and direct byte-slice CIGAR scanners incrates/vardictrust-core/src/cigar/modify.rsandsrc/cigar/parse.rs. - Parallelized multi-tile
scan_multi_tile_max_read_lengthspre-scans acrossrun_parallel_for_bamand added an automatic 64 MiB worker stack floor for.craminputs (CRAM_WORKER_THREAD_STACK_FLOOR_BYTES) (crates/vardictrust-core/src/lib.rs,src/runner.rs). - Expanded
BGZF_BLOCK_CACHEfrom 8 to 32 shards (BGZF_CACHE_SHARDS = 32), added LUT/vectorized BAM sequence decode, switched-tduplicate tracking to typedFxHashSet<DupKey>, cached per-handleSharedBamMetacontig tables, decodedBamFeedCIGAR operations in a single pass, validated CRAM container spans lock-free viaHeader::reference_sequences(), sharedArc<[u8]>Referencespans (RegionSpanSlot), inlinedReference::get_baseprimary-region lookup, packed[u64; 3]SeedKeyentries, and pre-sizedSeedMaphash tables (crates/vardictrust-core/src/bam.rs,src/reference.rs). - Added inline single-allele
VariationEntriesstorage withJavaHashMapnew-key delta logs, SomaticRefSiteMode/CompactRefSiteelision, andO(W_mate log W_mate)sv::partial_pipelinedelta-log merging; eliminatedFisherExact::supportandsum_elementsheap allocations via algebraicsupport_len(), 1-point fast return,f80_sum_iter, 4,096-entry thread-local LRU memoization, and stackodds_ratio_buf/write_odds_ratio_intoformatting; removed redundantVariantandVars::var_desc_to_variantclones viaVars::variant_by_desc,ZERO_VARIANT,StackBuf,Cow<[u8]>splice/marker helpers, single-winnerBTreeMapbucketing, and single-buffer VCF formatting (crates/vardictrust-core/src/stats/fisher.rs,src/stats/f80.rs,src/tovars.rs,src/variations/mod.rs,src/javamap.rs,src/realign.rs,src/sv.rs,src/postprocess/,src/output/). - Refactored
PairedVcfRecordto a single contiguousStringbuffer withusizebyte-spanFILTERoffsets (3 -> 1heapStringallocation per somatic VCF candidate,u64spill serialization inSomaticVcfCandidate, and zero-copyPairedRecordStreameremission) (crates/vardictrust-core/src/output/vcf.rs,src/lib.rs) (PR #106). - Replaced
perl_num_strheapStringallocations with stack-formattedwrite_perl_num_stracross single-sample and paired VCFFILTER/INFOemission, short-circuited single-sample/ampliconFisherExactandunirootstrand-bias calculation inbuild_single_vcf_eventunder--pass-onlywhen non-Fisher filters already fail, formatted worker candidates through a per-tileString::with_capacity(512)scratch buffer retaining exact-sizedString::from(scratch.as_str())lines inSingleVcfRecord, added anIndexMap::get_mut(chr)fast-path inSpillableVcfAccumulator::insertavoiding per-candidatechr.to_string()allocations, reused pre-allocatedVariant.biascapacity acrosspostprocess/{simple,amplicon,somatic}.rs, and eliminated avoidable per-call heap allocations incigar/parse.rs,realign.rs,sv.rs, andtovars.rs(crates/vardictrust-core/src/output/vcf.rs,src/lib.rs,src/postprocess/,src/cigar/parse.rs,src/realign.rs,src/sv.rs,src/tovars.rs) (PR #107).
Fixed¶
- Added
StagedFileTargetatomic.tmp.<pid>.<seq>staging andDropresidue cleanup across--output,--tbi,--csi, and--stats-json(preserving live existing targets on early abort while falling back directly for character devices/FIFOs such as/dev/nullor read-only parent directories), alongside input/output file collision guards refusing output paths that resolve to any input reference,.fai, BED, BAM/CRAM, or.bai/.csi/.craiindex (crates/vardictrust-core/src/lib.rs,crates/vardictrust/src/main.rs) (Issue #93, PR #104, PR #105). - Eliminated
stderrBrokenPipe(EPIPE) panics across-yverbose logging,--DP ERRdebug printing, and profiling warnings viaverbose_eprintln!, hardened hostile CIGAR/alignment/CRISPR arithmetic (TLEN = i32::MIN,268435455D,i32::MAX&i64CRISPR/SV/realignment coordinate saturation, missing*qualities,-xextension saturation, andcov_capbounds) against signed overflow or OOM allocation, fixed paired-VCF omitted--Nsample extraction (bam1|bam2) and#CHROMsample-name whitespace normalization, enforced value-awareUNSUPPORTED_FLAGSand 1-based-c/-S/-E/-s/-eBED column validation without-R, emitted-isplice junction rows in deterministic sorted key order, added actionable 5/6-column BED column hints (-c 1 -S 2 -E 3 -z), and synchronizedvardictrust --versionlicense text toMIT AND GPL-2.0-or-later(crates/vardictrust/src/cli.rs,src/main.rs,crates/vardictrust-core/src/config.rs,src/output/vcf.rs,src/cigar/,src/sv.rs,src/realign.rs,src/tovars.rs,src/bam.rs,src/regions.rs,src/lib.rs) (Issue #91, Issue #93, PR #98, PR #104, PR #105). - Hardened remaining production arithmetic and hostile-input bounds (
AGENTS.md §9): rejected hostile BAM/CRAM CIGAR reference-span overflows withio::ErrorKind::InvalidDataacrossbam_alignment_end,BamFeed, andvalidate_cram_spanand enforced unconditionali32::MAXcoordinate/tag bounds inRecordPreprocessor(bam.rs), guarded slice-end wrap inutil::subseqand sequence offset/length casts inreference.rs, widened iteration/exponent bounds and negative-inputNaNguards instats/{zeroin,f80}.rsandstats/rmath/stirlerr.rs, replaced unchecked arithmetic andu32 -> i32threshold casts with checked/saturating andi64-widened math acrosscigar/parse.rs,realign.rs,sv.rs,tovars.rs,variations/,postprocess/somatic.rs, andoutput/table.rs, and alignedDIVERGENCES.mdwith##source=VarDict_v1.8.2byte-parity and certified3.14xscale.jsonmetrics (crates/vardictrust-core/src/bam.rs,src/util.rs,src/reference.rs,src/stats/zeroin.rs,src/stats/f80.rs,src/stats/rmath/stirlerr.rs,src/cigar/parse.rs,src/realign.rs,src/sv.rs,src/tovars.rs,src/variations/,src/postprocess/somatic.rs,src/output/table.rs,DIVERGENCES.md) (PR #107). - Completed comprehensive pre-
v1.0.8adversarial security hardening across input parsing, VCF/stderr output sanitization, temp-file/symlink safety, and CI/supply-chain gates: enforced.fai/.gzi/.crai/CRAM container & slice-header allocation caps and out-of-bounds landmark guards beforenoodlescontainer/slice reads (reference.rs,bam.rs,output/vcf.rs), rejected control/newline/NUL injection across-G,-R,-N,.faicontigs, and BED records before emitting##fileformat=VCFv4.2while preserving SAM=(Seq::Eq) bases and single-BAM colon paths (chr17:100-200.bam) during SV calling (regions.rs,cigar/parse.rs,output/vcf.rs,sv.rs,lib.rs), neutralized C0/C1/OSC terminal escapes onstderrCLI diagnostics and closed profiling/temp-file TOCTOU and0555read-only-parent symlink overwrite vectors viaO_CREAT | O_EXCL(0600/0700),O_NOFOLLOW, andDirectTempStaged/DirectPinnedstaging (main.rs,profile.rs,lib.rs), and hardenedwiki.yml(persist-credentials: false,::add-mask::, job-scopedcontents: write),release.yml(origin/mainancestor tag guard),deny.toml(yanked = "deny",wildcards = "deny",required-git-spec = "rev"),dependabot.yml(cooldowndefault-days: 7), andpackaging/nf-core/modules/vardictrust/main.nfshell quoting (PR #114).
1.0.7 - 2026-11-01¶
Added¶
- Bounded 512 MiB reference sequence cache (
DEFAULT_FASTA_CACHE_BUDGET_BYTES) with active-CramFeedArc<ContigSlot>pinning (Arc::strong_count == 1eviction),RegistryDelegatingAdapterhandle pooling (MAX_POOLED_FASTA_ADAPTERS = 8), andIndexedCraibinary-searched slice seek (crates/vardictrust-core/src/bam.rs) (PR #81). - Multi-threaded amplicon execution across
(chrom, seg_idx)groups viarunner::run_parallelwith deterministic input-order reassembly (crates/vardictrust-core/src/lib.rs) (PR #82). - Production no-panic lint ratchet (
harness/lint_ratchet.sh) wired intoharness/pr_check.shandharness/rgate.sh, plusx86_6480-bitlong doubleoracle platform guard (harness/run_oracle.sh,harness/compare.sh,harness/golden_store.py) and POSIX-portable shell helpers (harness/lib/portable.sh) (PR #71, PR #72, PR #80). - Expanded the automated Cargo workspace test suite from
427to519tests (350vardictrust-corelibrary unit tests +110corpus_parity+26engine_behavior+2amplicon_stream_mem+3cram_stack+19CLI bin +9CLI integration binary tests) and expanded the harness diagnostic self-test suite to 36 scripts (25 shell tests and 11 Python test suites).
Changed¶
- Replaced hot-path
VariationMap::get_variationstring formatting/cloning withindexmap::map::RawEntryMut, switchedVars::var_desc_to_varianttoFxBuildHasher, boxedVariationMap::sv: Option<Box<Sv>>, added an integeru128fast path intypes::round_half_even, and eliminated redundant per-variant heap allocations acrosstovars.rs,sv.rs,util.rs, andvariations/util.rs(crates/vardictrust-core/src/variations/mod.rs,src/types.rs,src/tovars.rs,src/sv.rs,src/util.rs,src/variations/util.rs) (Issue #63, PR #82). - Enforced
hg008-cram-twin(cram_to_bam_wall_ratio <= 2.50) andcram_parity(cram_to_bam_wall_ratio <= 1.50) inharness/perf_budget.py,harness/pr_check.sh,harness/recertify.sh, andharness/gcp_paper_runner.sh(PR #73, PR #81).
Fixed¶
- Resolved comprehensive A–N VarDictJava v1.8.3 parity and robustness findings across PR #67–PR #82:
- Split
_rjem_malloc_confby target OS (background_thread:trueon Linux vsbackground_thread:false,dirty_decay_ms:250,muzzy_decay_ms:0,narenas:8on non-Linux viaMALLOC_CONF_LINUX_DEFAULT,MALLOC_CONF_NON_LINUX_DEFAULT,malloc_conf_bytes_for_targetincrates/vardictrust/src/main.rs) (PR #70). - Replicated
HashMap.putVal9-node treeify trigger (bin_len >= TREEIFY_THRESHOLDinJavaHashMap::insert),JavaHashMap::get_or_put_with/variations::get_or_put_vars,ToVarsBuilder::build_aligned_variantsempty-Varsinsertion parity beforecollect_reference_variants, andSTRICT_VAR_ORDER=1unsorted.varrow-order verification (crates/vardictrust-core/src/javamap.rs,src/variations/mod.rs,src/tovars.rs,src/realign.rs) (PR #74). - Replicated
inc_cnt/ insertiontpsignedi32arithmetic andrealignlginssignedmax_read_length - 10bounds, excluded=/Xfromget_soft_clipped_length/get_match_insertion_length/prepare_sv_structures_for_analysis(query_consumed_leninbam.rs), scaledCigarModifier::modify_cigar's iteration bound with CIGAR operator count, and traversedsvffus/svrfusinis_best_sv_usedin OpenJDKHashMap<String, List<Sclip>>bucket order (java_string_hash,java_hashmap_key_orderincrates/vardictrust-core/src/cigar/modify.rs,src/cigar/parse.rs,src/realign.rs,src/javamap.rs,src/sv.rs,src/variations/mod.rs) (PR #75). - Replicated
DUPRATE=0snapshot parity,Utils.getRoundedValueToPrint"N."/"-0."formatting (push_java_rounded),FisherExact::get_odds_ratiojava_double_to_stringscientific notation under--fisher, Apache Commons Math 3SaddlePointExpansion/HypergeometricDistribution(--fisher), and R 4.xfround5-decimal even-mantissa tie-break (round_as_r) (crates/vardictrust-core/src/output/table.rs,src/output/vcf.rs,src/stats/fisher.rs,src/types.rs,src/variations/mod.rs) (PR #76, PR #77). - Replicated whole-stream VCF
$hash{chr}{start}candidate accumulation and 4-decimalround_half_evenAF winner selection across BED regions, Perlsub reorderchromosome ordering (perl_reorder_chromosomes), and> 1 Mbpmulti-tilemax_read_lengthpre-scan (scan_multi_tile_max_read_lengths) plus-t(config.dedup) boundary duplicate continuity (crates/vardictrust-core/src/lib.rs,src/output/vcf.rs,src/cigar/modify.rs) (PR #78). - Replicated Commons-CLI
createNumber(parse_java_number_*) & first-wins scalar options,-FInteger.decode&samfilter_raw != "0", adaptor 6-meri + 6 < sequence.len()&ACGTacgt-only complement (realign::fill_adaptor_maps), BED header/delimiter/4-col auto-detect (java_split,detect_amplicon_bed,parse_amp_bed_from_readerjava_hashmap_key_order),resolve_modeprecedence (#378/--DP ERR), amplicon segmentsplicechaining, and zero-coverage-pamplicon null-row formatting (amplicon_38_into/amplicon_40_into) (crates/vardictrust/src/cli.rs,crates/vardictrust-core/src/realign.rs,src/regions.rs,src/postprocess/amplicon.rs,src/output/table.rs) (PR #69, PR #79). - Added truncated BGZF EOF (
UnexpectedEof) detection, CRAM/FASTA contig span validation (validate_cram_span,fetch_subsequencepast-end error) and 3' chromosome-end overhang padding (CRAM_REF_OVERHANG_PAD = 65_536), rawVec<u8>quality byte preservation forPhred >= 95(normalize_cram_base),i32region coordinate bounds (parse_int_with_commas<= i32::MAX), checked integer conversions acrosscrates/vardictrust-core, and the 16 MiB worker stack floor (WORKER_THREAD_STACK_FLOOR_BYTES/run_with_worker_stackincrates/vardictrust-core/src/runner.rs) (PR #80).
1.0.6 - 2026-10-29¶
Changed¶
- Increased Rayon worker thread pool stack size to
16 MiB(WORKER_THREAD_STACK_BYTES = 16 * 1024 * 1024incrates/vardictrust-core/src/runner.rs) to prevent stack exhaustion on deep CRAM rANS/LZMA container decoding and recursive structural variant realignment paths, and eliminated per-regionHashMapallocation inreference::get_reference_with_chr_len(crates/vardictrust-core/src/reference.rs,src/realign.rs) (Issue #60, PR #61, PR #62). - Expanded the in-process workspace test suite from
416to427tests (263vardictrust-corelibrary unit tests +110corpus_parity+25engine_behavior+2amplicon_stream_mem+2cram_stack+17CLI bin +8CLI integration binary tests) and codified the mandatory multi-skill PR review and inline review thread resolution gate (AGENTS.md §15.8,CONTRIBUTING.md §6.1,.github/pull_request_template.md,.agents/skills/vardictrust-pr/SKILL.md,harness/tests/test_bioconda_recipe.py) (PR #61, PR #62). - Synchronized in-tree Bioconda recipe metadata (
packaging/bioconda/recipes/vardictrust/meta.yaml) with thev1.0.5source tarball digest (PR #59). - Simplified
harness/engine_fingerprint.shby removing the legacynormalize_gate_blob()/blob_oid()SemVer normalization workaround soFPandPERF_FPhash rawHEAD:<path>git blob OIDs directly under the Two-Tier Release Recertification Policy (AGENTS.md §15.4). - Recertified all 16 release evidence artifacts in
benchmarks/evidence/*.jsonunder engine fingerprint5865a2a0b24a8c17(perf_fingerprintc490c36317b8f25b;harness/acceptance.sh8/8 PASS) against live pinnedVarDictJava v1.8.3andvardictcpporacle executions on an isolated 32-vCPU GCPn2-standard-32host (2 hit / 90 livegolden-store executions).
Fixed¶
- Resolved 14 deep-coverage VarDictJava v1.8.3 parity edge cases across
Simple,Somatic,Amplicon, andSplicingmodes and 7 sequencing chemistries (Illumina,PacBio HiFi,ONT,Element,Ultima,MGI,Roche SBX) at both-f 0.01and-f 0(-r 2and-r 1noise floor) (Issue #60, PR #61, PR #62): - Cleared per-BAM duplicate tracking while preserving cumulative
total_reads/duplicate_reads(RecordPreprocessor::reset_for_next_bam,Scope.resetDuplicates), replicatedBAMReader.hasMoreBams(if idx > 0 && !any_passed { break; }) across colon-delimited multi-BAM inputs (bam1:bam2), and validated both tumor and normal BAM specifications upfront (parse_colon_bamsincrates/vardictrust-core/src/lib.rs,src/bam.rs,src/realign.rs,src/sv.rs). - Seeded BAM2's
CigarParserandsv::find_all_sv(find_del_disc) with BAM1's discoveredspliceset and propagated updatedmax_read_lengthandsplicestate across subsequentcombine_analysiswindows in somatic mode (crates/vardictrust-core/src/lib.rs,src/postprocess/somatic.rs, matchingSomaticMode.java:104-122andSomaticPostProcessModule.java:198-200, 303-311, 398-406). - Updated
max_read_lengthprior to the0x800supplementary-read early return (CigarParser.java:181-190), counted referenceNbases as mismatches (nmm++,m++) with unconditionaloffsetincrement inM-after-Ilookahead (CigarParser.java:460-476), and used signedi32loop bounds (for k in 0..element_len) when rescuing trailing mismatches into a \(3'\) soft-clip (CigarParser.java:1322-1457) (crates/vardictrust-core/src/cigar/parse.rs). - Unconditionally cached adaptor-cleared empty consensus sequences (
soft_clip.sequence = Some(final_seq.clone())) infind_conseq(VariationUtils.java:136-148,crates/vardictrust-core/src/variations/util.rs), delegatedensure_reference_loadedtoreference::get_reference_with_chr_len(VariationRealigner.java:149, 250, 916, 1020,crates/vardictrust-core/src/realign.rs), preservedvref.cntin \(5'\)/\(3'\) SV inversion branches (StructuralVariantsProcessor.java:781-795, 922-936,crates/vardictrust-core/src/sv.rs), and allowed signednext_var.fwd/revdecrements during DUP/INV reference adjustment (ToVarsBuilder.java:337-340,crates/vardictrust-core/src/tovars.rs). - Selected somatic
max_af_varianton 4-decimal banker-roundedfreq(SomaticPostProcessModule.java:118-127, 219-227), emittedtlamp = 0, ncamp = 0on amplicon null pileup rows while persistinggood_variantsacross amplicons (AmpliconPostProcessModule.java:152-246), canonicalized negative-zeroround_half_evenformatting (-0$ o$"0"), applied two-stage1dp -> 0dpHALF_EVENrounding to pairedMQ(var2vcf_paired.pl), evaluated VCF filter thresholds on roundedHIAF/SN/MSI/SBF, and emitted;CRISPR=in single-sample VCF INFO when-Jis enabled (crates/vardictrust-core/src/lib.rs,src/postprocess/amplicon.rs,src/output/table.rs,src/output/vcf.rs).
1.0.5 - 2026-10-27¶
Added¶
- First-class in-process
vardictrust-coretest suites (crates/vardictrust-core/tests/corpus_parity.rs[110 tests] andcrates/vardictrust-core/tests/engine_behavior.rs[25 tests],416total workspace tests:252core lib +110corpus_parity+25engine_behavior+2amplicon_stream_mem+2cram_stack+17CLI bin +8CLI integration binary tests) enforced with a>= 90%cargo-llvm-covline coverage gate in CI (PR #49). - Public
vardictrust_core::run_with_writerAPI for direct in-process streaming and testing without subprocess spawn overhead (PR #49). - Supply-chain, CI workflow, and git hook hardening:
.cargo/audit.toml(cargo-audit0.22+ schema withdeny = ["warnings"]),deny.toml([graph] all-features = trueand[sources]registry lockdowns), reusable.github/actions/setup-conda-envcomposite action, expanded.github/dependabot.ymlacross all 19 direct crate dependencies plus/docspip dependencies, and offline-safecargo deny/cargo auditchecks in.githooks/pre-commit,harness/pr_check.sh, andharness/acceptance.sh(PR #49, PR #51). - Automated documentation fingerprint and 16-file SHA-256 manifest synchronizer (
harness/sync_evidence_docs.py) integrated intoharness/recertify.sh(PR #49).
Changed¶
- Accelerated
VariationRealigner::find_35_matchvia SWARu648-byte word comparisons (crates/vardictrust-core/src/realign.rs), replaced eager CRAM slice vector buffering with streaming cached CRAM container decoding incrates/vardictrust-core/src/bam.rs, and borrowed single-allele somaticVarsincrates/vardictrust-core/src/postprocess/somatic.rs(Issue #45, PR #46). - Added a synchronous single-thread runner fast-path (
num_threads == 1) incrates/vardictrust-core/src/runner.rsand eliminated ~582,600 redundant per-regionstat()syscalls on BAM metadata cache hits incrates/vardictrust-core/src/bam.rs(PR #49). - Consolidated October 2026 dependency and GitHub Actions updates: bumped
noodles(0.117\(\to\)0.118),noodles-bam(0.96\(\to\)0.97),noodles-cram(0.100\(\to\)0.101),noodles-fasta(0.67\(\to\)0.68),noodles-sam(0.91\(\to\)0.92),noodles-vcf(0.94\(\to\)0.95),rustc-hash(1.1.0\(\to\)2.1.3),lzma-rust2(0.21.0\(\to\)0.22.0),clap_lex(1.1.0\(\to\)1.1.1),libc(0.2.186\(\to\)0.2.191),mkdocs(1.6.1),mkdocs-material(9.8.0),pymdown-extensions(12.3), and SHA-pinned GitHub Actions (step-security/harden-runnerv2.22.2,taiki-e/install-actionv2.87.31,actions/cachev6.1.0,actions/setup-pythonv7.1.0,github/codeql-actionv4.39.1) (PR #52, PR #57). - Audited and compressed
README.mdwith Progressive-JPEG layout, 5-channel installation instructions (including Seqera Wave container digests and Nextflownf-core/modules), and verified CLI flag documentation (PR #50). - Recertified all 16 release evidence artifacts in
benchmarks/evidence/*.jsonunder engine fingerprintd925892846918c2a(perf_fingerprintb7decb95be6077f1;harness/acceptance.sh8/8 PASS) with 100% pinnedVarDictJava/vardictcppgolden-store baseline reuse.
Fixed¶
- Achieved 100% full-genome parity (
56,642 / 56,642intervals,8,111,171variants, 0 diffs) against VarDictJava v1.8.3 across GIAB HG002chr1..chr22(Issue #47, PR #48): - Preserved soft-clip
unusedstate acrossfind_sv(<DEL>,<DUP>,<INV>) and synchronizedfind_conseqsoft-clip mutations back to the liveSclipentry viasync_sclip_after_conseqincrates/vardictrust-core/src/sv.rs, matchingStructuralVariantsProcessor.java:687-965. - Used
config.extension(-x, default0) instead ofconfig.extension_nuc(-X, default3) when computing reference seed fetch bounds incrates/vardictrust-core/src/reference.rs(get_reference), matchingReferenceResource.java:85-89. - Removed the
paths:filter from.github/workflows/differential.ymlso the requiredDual-Engine Differential Parity (Tier-2)status check executes on every pull request (PR #50). - Replaced hardcoded
noodlesversion string matching inharness/tests/test_evidence.shwith a version-agnosticsed -Esubstitution (PR #57).
1.0.4 - 2026-10-25¶
Fixed¶
- Achieved 89 / 89 MATCH (
fp=0, fn=0across1,202,444compared oracle.var/.vcf/splice records and36multi-slice/mode suites) against VarDictJava v1.8.3 across the 12-cell full-corpus validation sweep (Tier-P30,267x–45,707xAML panelsSRR15006540/SRR8657348/SRR15006375/SRR15006376/SRR15006386,51.8 GiBHG002 STAR RNA-seq-isplice & cDNA, direct whole-chromosome-R chr1:1-249250621, full-cohort Amplicon / HG002 Deep WGS / HG008 Somatic WGS / SEQC2 WES690,800variants,24-arm WGS/WES MRD-f 0.001/-f 0/--fishermatrix,30-arm ultra-deep7,361x–173,132xMRD stress matrix, andG4/E2CRAM 3.0 twins; Issue #42, PR #43): - Bug A (
crates/vardictrust-core/src/cigar/parse.rs,src/reference.rs): Select the covering secondaryLoadedRegion(region_slice_for_span) onself.region.chrduring structural-variantpartial_pipelinere-parsing and spliced alignments (CigarParser.java:181–193,257). - Bug B (
crates/vardictrust-core/src/reference.rs): Truncate loaded reference sequences tosite_end = bases.len() - 17after seedingPendingSeedChunk(ReferenceResource.java:106–112) so the trailingSEED_1(17 bp) lookahead is excluded fromregion_sequencesandreference_sequenceswhile remaining indexable by overlapping subsequent regions. - Bug C (
crates/vardictrust-core/src/bam.rs): Normalize CRAM reference-matching bases decoded against soft-masked lowercase FASTA contigs (a/c/g/t/n) to uppercase (A/C/G/T/N) inSamRecord::fill_from_alignment_record, and reconstruct omitted CRAM 3.0 (store_nm=0)NMedit distance tags viacompute_cram_nmper SAMtags §1.5. - Bug D (
crates/vardictrust/src/cli.rs,crates/vardictrust-core/src/config.rs,src/output/vcf.rs): Replicate Perl falsy$opt_f ? $opt_f : 0.02fallback (var2vcf_valid.pl:21) viavalid_freq_threshold(config)when-f 0is passed in single-sample mode, while preserving0.0for truthy decimal/scientific zero strings (-f 0.0,-f 0e0). - Bug E (
crates/vardictrust-core/src/postprocess/somatic.rs): Propagate in-placev2nt.is_noise()coverage decrements (total_pos_cov -= pos_coverage) back intov2.var_desc_to_variantandv2.variantsso subsequent tumor alleles at multi-allelic somatic loci observe the mutatedv2.variants[0](SomaticPostProcessModule.java:172–186). - Bug F (
crates/vardictrust-core/src/realign.rs): Fix<dupN>\(3'\) flank substring offset inrealignins(start_idx = sv_flanking, matchingVariationRealigner.java:744–746substr(ins3, SVFLANK - ins3.length())). - Bug G (
crates/vardictrust-core/src/sv.rs): Queryvar_data.ref_coverage.get(&(p5_adj + 1))afterp5--infind_sv\(5'\) candidate deletion scan (StructuralVariantsProcessor.java:732, 748). - Bug H (
crates/vardictrust-core/src/stats/fisher.rs,src/output/table.rs,src/output/vcf.rs,src/lib.rs): AddFisherExact::new_java/new_with_mode(..., config.fisher)emulatingFisherExact.java:72, 112, 129with 7-decimallogdcbanker's rounding (round_half_even(value, 7)) and OpenJDKDoubleStream.sum()Kahan-Babuška compensated summation (java_stream_sum) for ultra-deep--fisherparity. - Adaptive Region Tiling (
crates/vardictrust-core/src/lib.rs,crates/vardictrust/src/cli.rs): Execute BED intervals<= 1 Mbp(DEFAULT_UNTILED_SPAN_MAX) as single untiled intervals matching VarDictJava while tiling multi-megabase intervals> 1 Mbpinto100 kbp(DEFAULT_TILE_SIZE) windows to preserve< 1.5 GiBbounded WGS memory; raiseMAX_TILE_SIZEto500 Mbp. - Wired
harness/scale_bench.shandharness/run_integration.shto cache and replayvardictcppinvocations viaharness/golden_store.sh, eliminating redundant multi-minutevardictcppre-executions across test and scale loops. - Added unit and real-data end-to-end regression tests across
crates/vardictrust-coreandcrates/vardictrust/tests/flags.rs(293total workspace tests:241core lib +4core integration +15CLI unit +33CLI integration tests). - Recertified all 16 release evidence artifacts in
benchmarks/evidence/*.jsonunder engine fingerprint552856835a1eec01(perf_fingerprint9346a6e5419cc5e2;harness/acceptance.sh8/8 PASS).
1.0.3 - 2026-10-24¶
Added¶
- Opt-in zero-default-overhead profiling subsystem (
crates/vardictrust/src/profile.rs,crates/vardictrust/tests/profile_smoke.rs) with Cargo featuresprofile-cpu(pprof+infernoSVG flamegraphs),profile-heap(tikv-jemallocator+jemalloc_pprof), andprofile-dhat(dhat::Allocallocation-site churn), driven byharness/profile.shand stdlib-onlyharness/profile_catalog.py(PR #35). - Golden Baseline Store (
harness/golden_store.sh,harness/golden_store.py,harness/tests/test_golden_store.py) and turnkey G4 cohort stager (harness/stage_g4.sh) for hash-verified, host-scoped caching of pinnedVarDictJava v1.8.3andvardictcpp 3oracle outputs (PR #32,PR #33). - Complete 10-class
vardictcppdivergence forensic catalog (CPP-1throughCPP-10) indocs/upstream-bugs.md, cross-linked acrossREADME.md,benchmarks/README.md, anddocs/validation/omnibus-empirical-validation.md(PR #37). - In-tree Nextflow
nf-core/modulespackaging (packaging/nf-core/modules/vardictrust/,packaging/nf-core/prepare_nfcore_pr.sh) with multi-arch Seqera Wave containers (linux/amd64,linux/arm64) andnf-testsnapshots. - Four repository-specific Agent Skills under
.agents/skills/(vardictrust-issue,vardictrust-pr,vardictrust-profiling, andvardictrust-releasewith stdlib-onlycheck_release_consistency.py), validated inharness/tests/test_bioconda_recipe.py.
Changed¶
- Zero-allocation
get_variation/get_variation_maybe(IndexMapraw_entry_mut_v1withFxBuildHasher, stack UTF-8 key buffer) andFxHashMapref_coverage+ borrowed-keyincrementinCigarParser(PR #35). - Replaced per-bucket
Vecallocations inJavaHashMapwith an OpenJDK-isomorphic flat intrusive node arena (buckets: Vec<u32>,nodes: Vec<Node<K, V>>, free-list reuse), preserving exact bucket/chain iteration andtreeify_binsemantics while eliminating inner-bucket heap allocations and bare slice indexing (PR #35). - BAM I/O and record decoding optimization (O-1 + O-3): share parsed
.bai/.csiindex and SAM header metadata across worker threads viaMETA_CACHE, pool up to 4 BGZF readers per thread/path viaBAM_READER_POOL(cleared via RAII guard aroundrun()), and decode concretenoodles::bam::Recordfields and auxiliary tags (nM/NM/SA/MC/MQ) in a single pass without per-read trait-object allocations (PR #35). CigarModifier::modify_cigar: added dynamic(has_d, has_i, has_s)byte pre-filters across pre-loop and fixpoint-loop regexes (recomputed on everycigar_strmutation) and replaced the 5 unconditional post-loop regexes with bounds-checked, allocation-free byte-slice matchers (PR #35).VariationRealigner::realignlgins30/find_conseq/find_35_match(NEW-1): hoistedsc5_usedand integer distance bounds ahead ofBTreeMaplookups inrealignlgins30, cached empty consensusSome(Vec::new())infind_conseq, and pre-reversedseq3once for forward slice comparison infind_35_match(PR #35).ToVarsBuilderandrealignlgdeloptimization (O-9): replaced upfrontnon_insertion_variants.clone()and per-positionVariationMap::clone()with a sparse copy-on-writeFxHashMapoverlay, eliminated per-positionVecandVariantclones andHashSet<String>allocations inis_the_same_variation_on_ref, and guardedrealignlgdelsoft-clip loops on livecnt/used/consensus length before cloningSclip(PR #35).- Reference k-mer seed indexing (
O-4 + O-5): replacedHashMap<Vec<u8>, Vec<u32>>withSeedMap(SeedKey17-byte inline key +SeedPositions::One/Many+FxBuildHasher) and eliminated redundantbases.clone()andLoadedRegionStringclones inget_reference(PR #35). - Stack-buffered
round_half_even(StackBuf<64>intypes::round_half_evenwith heap fallback for oversized values, O-12a) and allocation-free integer CIGAR deletion suffix checkcigar_contains_dlen_dinVariationRealigner::no_passing_reads(O-7,PR #35). - Enabled
noodles-bgzf/libdeflatefor whole-block BGZF deflate decompression in BAM/BAI/CSI/VCF.gz readers (O-2, +3.74% median wall-time improvement onhg002chr20,PR #35). - Configured
tikv-jemallocatoras the default Linux global allocator with static_rjem_malloc_conf(background_thread:true,dirty_decay_ms:250,muzzy_decay_ms:0,narenas:8) and guardedStructuralVariantsProcessor::find_svto filter out sub-minrsoft-clip clusters before cloningSclip, cutting peak RSS by 1.7×–4.2× (hg002497.1 MiB,seqc2467.9 MiB,hg008313.1 MiB,chr1249 Mbp1.42 GiBwith1.22×flat RSS scaling,PR #35,PR #37). - High-region-count Exome BED optimization (
EBO-1..EBO-3, Issue #36,PR #37): addedCachedBgzfReaderwith a 1-block thread-local cursor and 8-shard × 16-slot LRU process-wideBGZF_BLOCK_CACHEinbam.rs(EBO-1), deferredReference::seed12-mer/17-mer hashing until the first soft-clip realignment query viaOnceCell<RawSeedMap>inreference.rs(EBO-2), and batched up to 16 consecutive small same-chromosome tiles inregions::batch_tilesandrunner::run_parallel_batched(EBO-3), cuttingseqc2-exome-tier2wall time by 2.51× (19m 28.78s\(\to\)7m 46.34s,6.9×faster thanVarDictJava) andscale.jsonexome BED wall time across 1–8 threads by 1.38×–2.38× (3m 06.43sat-th 8). - Recertified all 16 release evidence artifacts in
benchmarks/evidence/*.jsonunder engine fingerprint27f3667b32ac14f5(perf_fingerprint9f75643cf12aa988;harness/acceptance.sh8/8 PASS,PR #37).
Fixed¶
- Per-tile BAM streaming for
chrMRNA splicing (-i), ungated parity-restoringsplice-tile-ownershipandmate-window-ownershiptile ownership rules, and lowercase-nallele_keypassthrough (PR #29).
1.0.2 - 2026-10-17¶
Fixed¶
- Bounded-memory amplicon calling: per-base insert expansion replaced with an
interval-overlap test plus a streaming
-ppath (active-interval sweep), eliminating OOMs on huge BED intervals with byte-identical output.
Added¶
- Harness gates: pinned cpp
--chunk(default 50000) recorded to evidence,ORACLE_XMX_GBheap sizing for the Java oracle, and a gated truvari SV wrapper with loud SKIP when truvari is absent. - All 16 evidence artifacts recertified under the new engine fingerprint (acceptance 8/8 PASS).
1.0.1 - 2026-10-15¶
Added¶
- Official Bioconda package distribution for
vardictrust(anaconda.org/bioconda/vardictrust) supportinglinux-64,linux-aarch64,osx-arm64, andosx-64viaconda install -c bioconda -c conda-forge vardictrust. Galaxy wrapper distribution remains an explicit follow-up. - Advisory
vardictcppthird arm everywhere VarDictRust compares against VarDictJava: pinned vardictcpp 3hc52dbad_0bioconda (samevardict-oracleconda env as the Java oracle; pin mirrors thevardict=2019.06.04pattern inbenchmarks/env/vardict-oracle.yml). Every gate arm records aCPP: MATCH/MISMATCH/SKIPline pluscompare_cpp.txt; evidenceextragainscpp_version,cpp_head,cpp_wall_s,cpp_maxrss_kb,cpp_f1,cpp_skip_reason;CPP_SKIP=1escapes the arm. The release gate stays java==rust — cpp never masks a verdict, andharness/acceptance.shfails loudly (not silently) when Tier-2 evidence lackscpp_version/cpp_skip_reason. Known cpp divergences are normalized indocs/upstream-bugs.md. - Three-way CRAM twin (
harness/cram_twin.sh): rust and cpp each call the hg008 slice pair from BAM and CRAM; gate is rust-BAM == rust-CRAM (18,426 variants MATCH), cpp twin recorded advisory. The rust-CRAM arm runs withRUST_MIN_STACK=64M: the default 2 MiB rayon worker stack overflows insidenoodles-cram 0.100.0rANS/name-tokenizer decoding (~97 frames; BAM unaffected; pinned bycrates/vardictrust-core/tests/cram_stack.rs), not a parity issue. Rebase note (2026-10-12; finalized 2026-10-14 per docs/validation/scale-recalibration-proposal.md sign-off): scale PASSES under the signed host-class barbar(P) = 0.6 × min(8, P)(P=4 on i7-13700Htaskset 0-7→ bar 2.4; RSS leg unchanged ≤ 1.5×); medians across 3 full runs give 3.72× (th1 1769s/th8 476s) with RSS 1.448× ≤ 1.5×, soscale.jsonrecords PASS (median 3.72 >= 2.4, RSS 1.448 <= 1.5). RSS headroom is thin (one run reached 1.489×) — variance watch only, no bar change. Java-th 8is OOM-killed on high-depth paired slices on 31G hosts (bisected 1✓/4✓/8✗); hg008/seqc2-exome evidences run at-th 4with cmds recorded verbatim. - Expanded
harness/run_extended_coverage.shfrom 9 to 17 clinical calling modalities (--crispr,-u,-A,--chimeric,-k 0,--fisher,-3,-O,-X,-c/-S/-E/-g,-M,--deldupvar,--DP ERR) and added 19 CLI flag integration tests incrates/vardictrust/tests/flags.rsplus 2 CRAM decoder stack tests incrates/vardictrust-core/tests/cram_stack.rs(230 total workspace tests). - Documentation and governance infrastructure: MkDocs Material site
(
mkdocs.yml,harness/prepare_docs_site.py,.github/workflows/docs.yml), automated GitHub Wiki sync (wiki/,.github/workflows/wiki.yml), ReadTheDocs API trigger (harness/trigger_rtd.sh), Playwright/GFM documentation UI test suite (harness/tests/test_docs_ui.py), and the end-to-end release engineering runbook inCONTRIBUTING.md §9.
Changed¶
- Canonicalized workspace-only SemVer fields (
Cargo.toml,crates/vardictrust/Cargo.toml,Cargo.lock) insideharness/engine_fingerprint.sh(normalize_gate_blob()) so pure release version bumps preserve the certified engine fingerprint (388f4a545470d12a) while external dependencies, profiles, features, and sources remain hashed. - Re-certified all 16 evidence artifacts in
benchmarks/evidence/under fingerprint388f4a545470d12aon the 14-core i7-13700H workstation (chip; benchmarks at -th 8, scale pin P=4 physical).
Fixed¶
- Fixed multi-sample BAM header extraction on
-b "b1|b2"incrates/vardictrust/src/main.rs, added warning when-Nomits the second sample name, and guardedend == 0inStructuralVariantsProcessor::find_inv. - Fixed
harness/record_evidence.pystalecompare_cpp.txt/cpp.timeleak onKEEP_DIRreuse whenextra.jsonrecords a pre-execution skip.
1.0.0 - 2026-10-10¶
First release of VarDictRust: an idiomatic-Rust rewrite of VarDictJava v1.8.3 (single static binary; no Java/R/Perl required).
Added¶
- All four calling modes: Simple (germline), Somatic (paired tumor/normal), Amplicon, and Splicing/SV.
- Complete VCFv4.2 output plus the legacy intermediate
.vartable (--emit-intermediate). - In-engine Fisher exact test (
--fisher) — no R dependency. - Bounded-memory region tiling + rayon parallelism for deep WGS.
- CRAM input support.
Parity¶
Output validated against VarDictJava v1.8.3 (commit 0886261), across 92
integration fixtures, 17 differential benchmarks, and 5 ground-truth cohorts.
Full results, per-slice exceptions, and the divergence ledger live in
README §Empirical Parity & Validation Status and
DIVERGENCES.md.
Fixed¶
Robustness improvements by design (no valid-input output changes relative to VarDictJava v1.8.3):
- Bounds-checked CIGAR processing fixes the entire VarDictJava
modifyCigarcrash family (VarDictJava#341, VarDictJava#243, VarDictJava#253, VarDictJava#283, VarDictJava#7, VarDictJava#38). - No panics in library code: NPE/AIOOBE/div-by-zero classes eliminated by the
no-panic rule (
#![forbid(unsafe_code)], nounwrapoutside tests). - Bounded memory at any depth via region tiling addresses the OOM family (VarDictJava#197, VarDictJava#384).
- Deterministic output regardless of thread count (VarDictJava#282, VarDictJava#181, VarDictJava#356).
- Correct
##contiglengths from the.fai(VarDictJava#320); fail-fast on missing BAM index (VarDictJava#187).