Skip to content

Release v1.0.5: Full-Genome GIAB HG002 chr1..chr22 Parity (8,111,171 Variants), SWAR/CRAM Hot-Path Accelerations, 416-Test >=90% Coverage Suite, and Supply-Chain Hardening

[!NOTE] Historical Release Document: This document records the release certification for v1.0.5 (engine fingerprint d925892846918c2a). For the current v1.0.6 release certification (engine fingerprint 5865a2a0b24a8c17), see docs/release/v1.0.6-pr.md.

Target Branch: main
Source Branch: release/v1.0.5
Release Fingerprint: d925892846918c2a (perf_fingerprint b7decb95be6077f1)
Repository: https://github.com/palakpsheth/VarDictRust
Author / Maintainer: Palak Sheth palakpsheth@gmail.com
Governing Manifesto: rewrites.bio
Acceptance Gate: 8/8 Items PASS (harness/acceptance.sh)
Release Recertification Receipt (d925892846918c2a): validated vs VarDictJava 1.8.3, dataset micro + s1a-s9 + 17-modality extended + 18-slice multimodal + HG008/SEQC2/HG002(chr20)/Amplicon + 5 truth cohorts + chr1 scale, cmd bash harness/recertify.sh && bash harness/pr_check.sh && bash harness/acceptance.sh
Full-Genome chr1..chr22 Parity Receipt (PR #48, 08b397ab1d32e857): validated vs VarDictJava 1.8.3, dataset GIAB HG002 full-genome chr1..chr22 (56,642 50-kbp intervals, 8,111,171 variants, fp=0, fn=0), cmd target/release/vardictrust -G GRCh38_GIABv3.fasta -f 0.01 -N HG002 -b HG002.GRCh38.2x250.bam -c 1 -S 2 -E 3 -g 4 -z -th 32 hg002_full_giab_50kb.bed && python3 harness/compare_vcf.py --min-variants 1000000 java_giab_th32.vcf rust_giab_th32.vcf


Overview

This pull request prepares and certifies VarDictRust v1.0.5 off main (f886065), consolidating: 1. Full-Genome GIAB HG002 chr1..chr22 Parity (Issue #47, PR #48): Ungated parity-restoring fixes in StructuralVariantsProcessor::find_sv and Reference::get_reference achieving 100% parity (56,642 / 56,642 50-kbp intervals, 8,111,171 variants, fp=0, fn=0) against VarDictJava v1.8.3 (commit 0886261, Perl submodule 009e017) across all 22 autosomes of GIAB HG002 deep WGS. 2. SWAR u64 Realignment, Streaming CRAM & Runner Fast-Paths (Issue #45, PR #46, PR #49): SWAR 8-byte word matching in find_35_match, streaming cached CRAM container decoding, borrowed single-allele somatic Vars, synchronous single-thread runner fast-path (num_threads == 1), and elimination of ~582,600 redundant per-region stat() syscalls on BAM metadata cache hits. 3. 416-Test In-Process Workspace Suite, >= 90% Line Coverage Gate & 100% Golden-Store Reuse (PR #49): Added corpus_parity.rs (110 tests) and engine_behavior.rs (25 tests) via vardictrust_core::run_with_writer, bringing workspace tests to 416 with >= 90% cargo-llvm-cov line coverage enforcement and 100% pinned oracle baseline reuse (84 hit / 0 live). 4. Supply-Chain Hardening, Documentation Audit & Dependency Rollup (PR #50, PR #51, PR #52, PR #57): Hardened .cargo/audit.toml, deny.toml (all-features = true), .github/dependabot.yml, .githooks/, and GitHub Actions workflows, audited README.md, and upgraded noodles (0.118), rustc-hash (2.1.3), lzma-rust2 (0.22.0), clap_lex (1.1.1), libc (0.2.191), mkdocs-material (9.8.0), and pinned Actions.


Key Additions, Optimizations & Fixes in v1.0.5

1. Full-Genome GIAB HG002 chr1..chr22 Parity (8,111,171 Variants, Issue #47 / PR #48)

  • Soft-Clip unused State Preservation & find_conseq Sync in find_sv (crates/vardictrust-core/src/sv.rs):
  • Preserves sclip.used across candidate <DEL>, <DUP>, and <INV> checks when no structural variant is finalized, and synchronizes find_conseq soft-clip mutations back to the live Sclip map via sync_sclip_after_conseq (StructuralVariantsProcessor.java:687โ€“965).
  • Reference Seed Extension Parameter -x vs -X (crates/vardictrust-core/src/reference.rs):
  • Uses config.extension (-x, default 0) instead of config.extension_nuc (-X, default 3) when computing reference seed fetch bounds in get_reference (ReferenceResource.java:85โ€“89), with checked/saturating arithmetic in SeedMap.

2. Hot-Path Realignment, CRAM Streaming & Runner Optimizations (Issue #45, PR #46, PR #49)

  • SWAR u64 find_35_match (crates/vardictrust-core/src/realign.rs):
  • Accelerates \(3'/5'\) soft-clip sequence matching via 8-byte little-endian u64 XOR + zero-byte detection before tail byte checks.
  • Streaming Cached CRAM Container Decoding (crates/vardictrust-core/src/bam.rs):
  • Streams decoded CRAM records directly from cached containers without materializing intermediate per-slice record vectors, and eliminates redundant stat() syscalls on BAM metadata cache hits.
  • Single-Allele Somatic Vars Borrowing & Synchronous 1-Thread Fast-Path (crates/vardictrust-core/src/postprocess/somatic.rs, src/runner.rs):
  • Avoids cloning Variant structs on single-allele somatic loci and bypasses Rayon thread-pool dispatch when num_threads == 1.

3. Two-Tier Testing Architecture, 416 Workspace Tests & Supply-Chain Hardening (PR #49, PR #50, PR #51, PR #52, PR #57)

  • In-Process Functional Parity & Behavior Suites (416 Total Workspace Tests):
  • 252 core library unit tests + 110 corpus_parity tests + 25 engine_behavior tests + 2 amplicon_stream_mem + 2 cram_stack + 17 CLI unit tests + 8 CLI binary integration tests (3 profile_smoke + 4 robustness + 1 version), gated at >= 90% line coverage via cargo-llvm-cov.
  • Supply-Chain & Dependency Hygiene:
  • Added .cargo/audit.toml, enabled all-features = true and [sources] verification in deny.toml, wired offline-safe cargo deny and cargo audit into .githooks/pre-commit, and upgraded noodles 0.118, rustc-hash 2.1.3, lzma-rust2 0.22.0, clap_lex 1.1.1, libc 0.2.191, mkdocs-material 9.8.0, and SHA-pinned GitHub Actions.

Acceptance Gate & PR Check Certification

Both bash harness/pr_check.sh (6/6 stages) and bash harness/acceptance.sh (8/8 items) pass under certified engine fingerprint d925892846918c2a (perf_fingerprint b7decb95be6077f1):

item 1: PASS (Unit tests: 416 total workspace tests: 252 lib + 110 corpus_parity + 25 engine_behavior + 2 amplicon_stream_mem + 2 cram_stack + 17 cli + 3 profile_smoke + 4 robustness + 1 version)
item 2: PASS (Level 2: 91/92 static expected matches + UB-4 isolated; micro live oracle smoke.sh PASS)
item 3: PASS (Level 3: 17/17 benchmarks MATCH: micro + 10 slices + HG008 + SEQC2 exome + SEQC2 slices + HG002 + Amplicon + 17-mode extended + 18-slice multimodal)
item 4: PASS (Robustness: crash corpus + HG008 CRAM twin PASS)
item 5: PASS (Level 5 Scale & Perf-Budget PASS)
item 6: PASS (Level 4 Truth set: HG008, SEQC2, HG002, HG005, NA24385 b37 EQUAL across all 5 cohorts)
item 7: PASS (Hygiene: fmt, clippy, audit, deny, gitleaks 0 leaks)
item 8: PASS (Distribution: --version metadata 1.0.5, musl-ci PASS)
fingerprint d925892846918c2a

Key Documentation & Validation Artifacts