Skip to content

1.0.8 - 2026-11-14

Choose a tag to compare

@github-actions github-actions released this 15 Nov 14:22
3637d50

Release Notes

Added

  • Native direct file output, BGZF compression, Tabix/CSI indexing, run telemetry, and explicit parity pinning: --output <PATH> (streaming .vcf, .var, and -i splice counts directly to plain files or multithreaded BGZF .gz/.bgz via noodles::bgzf::io::MultithreadedWriter with File::sync_all verification), --tbi / --index pure-Rust Tabix (.vcf.gz.tbi) and --csi pure-Rust CSI (.vcf.gz.csi) index generation (noodles::tabix and noodles::csi, honoring INFO/END coordinate spans for symbolic <DEL>, <DUP>, <INV>, and <INS> records, with an actionable --csi hint when --tbi encounters coordinates exceeding Tabix's 512 Mbp limit), --no-end (var2vcf_valid.pl -E INFO/END suppression), --stats-json <PATH> pipeline telemetry, --parity and --compat vardictjava-1.8.3 CLI forward-compatibility pinning, and UPSTREAM.toml reference 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/--crispr long aliases, and -C and -Z / -downsample / --downsample explicit VardictError::Unsupported reporting (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 / --VS SILENT/LENIENT validation stringency acceptance (-VS STRICT fails fast with VardictError::Unsupported), clustered boolean-prefix short options (-pz, -pz0, -uk, -ua, -pR), RAYON_NUM_THREADS fallback when -th / --threads is omitted, and MSRV rust-version = "1.91.0" + crates.io metadata inheritance across Cargo.toml, crates/vardictrust/Cargo.toml, and crates/vardictrust-core/Cargo.toml (crates/vardictrust/src/cli.rs, crates/vardictrust-core/src/config.rs, src/cigar/parse.rs) (PR #105).
  • Cross-tile .var intermediate boundary deduplication via SplitVarDeduper (SPLIT_VAR_RETENTION_WINDOW_BP = 200_000) across split tiles in SimpleMode and SomaticMode, preserving within-tile multiplicity and -p shifted-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, 0 diffs across 5 cohorts including full 22-autosome GIAB HG002 WGS 8,111,171 variants), strict Markdown relative-link and MkDocs build audits, clinical/engineering SWOT ecosystem review (docs/ecosystem-survey.md), Bioconda and Nextflow nf-core/modules v1.0.7 packaging sync (with MIT AND GPL-2.0-or-later block-sequence meta.yml), 29 zero-conda / 7 oracle CI self-test wiring, 5-target release performance budget guard, and live --verify-cargo-list release-consistency validation (PR #86, PR #87, PR #88, PR #89, PR #97).
  • Expanded the automated Cargo workspace test suite from 519 to 657 tests (460 vardictrust-core library unit tests + 110 corpus_parity + 29 engine_behavior + 2 amplicon_stream_mem + 3 cram_stack + 28 CLI bin + 25 CLI integration binary tests) (PR #104, PR #105, PR #106, PR #107).
  • Consolidated var2vcf_valid.pl / var2vcf_paired.pl VCF post-filter CLI flags (--pass-only, --paired-strict, --vcf-pval <FLOAT>, --min-splitreads <INT>, --no-pstd-filter; porting var2vcf_valid.pl -S/-T/-P 0 and var2vcf_paired.pl -S/-M/-P with verbatim P$PVAL token preservation and programmatic resolve_effective_config bounds validation) plus GNU-only single-dash typo guards failing fast with actionable "did you mean '--...'?" errors and tightened split_bool_prefix_cluster tail 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 / --trim to corpus parity status (0 unexercised CLI flags remaining in README.md) via zero-subprocess in-process corpus_parity coverage alongside --fisher VCF raw-cell formatting assertions, and closed the resolved --fisher VCF raw-cell divergence in DIVERGENCES.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.pl VCF threshold, genotype, and cluster-filter CLI flags (89 total CLI flags across 7 functional groups together with --completions and --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 via VcfThreshold<T> with explicit GNU --vcf-* defined() (Option::Some) zero semantics (honoring 0 on explicit overrides while preserving legacy bare -f 0 0.02 single-sample fallback) and SingleRecordStreamer + 4-state SingleVcfEvent bounded-memory Cluster<N>bp sliding-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 by clap::CommandFactory introspection, reorganized CLI --help (-H / --help) into 7 help_heading sections matching README.md, added cross-compile-safe completion and manpage installation in packaging/bioconda/recipes/vardictrust/build.sh, authored the docs/migration.md Rosetta Stone guide from VarDictJava + R + Perl (var2vcf_valid.pl / var2vcf_paired.pl) pipelines, recorded [advisory_comparators.vardictcpp] (version = "3", bioconda_build = "hc52dbad_0") in UPSTREAM.toml, and expanded check_release_consistency.py structural 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 / --region and BED calling via right-to-left known-contig prefix matching in regions::parse_region_flag and zero-allocation pub(crate) bam::build_noodles_region (replacing string-formatted "{}:{}-{}" region reparsing), alongside MkDocs 1.6 top-level not_in_nav validation, Nextflow nf-core CRAM/CSI/ReadTheDocs packaging metadata, and MSRV 1.91.0 / DIVERGENCES.md release-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 pure S/M in-place modify_cigar fast-paths, zero-copy seq/qual read slices, modify_cigar_preserving_buffers scratch buffer capacity restoration, hoisted adjusted_nm, stack ByteSet ([u64; 4]), and direct byte-slice CIGAR scanners in crates/vardictrust-core/src/cigar/modify.rs and src/cigar/parse.rs.
    • Parallelized multi-tile scan_multi_tile_max_read_lengths pre-scans across run_parallel_for_bam and added an automatic 64 MiB worker stack floor for .cram inputs (CRAM_WORKER_THREAD_STACK_FLOOR_BYTES) (crates/vardictrust-core/src/lib.rs, src/runner.rs).
    • Expanded BGZF_BLOCK_CACHE from 8 to 32 shards (BGZF_CACHE_SHARDS = 32), added LUT/vectorized BAM sequence decode, switched -t duplicate tracking to typed FxHashSet<DupKey>, cached per-handle SharedBamMeta contig tables, decoded BamFeed CIGAR operations in a single pass, validated CRAM container spans lock-free via Header::reference_sequences(), shared Arc<[u8]> Reference spans (RegionSpanSlot), inlined Reference::get_base primary-region lookup, packed [u64; 3] SeedKey entries, and pre-sized SeedMap hash tables (crates/vardictrust-core/src/bam.rs, src/reference.rs).
    • Added inline single-allele VariationEntries storage with JavaHashMap new-key delta logs, Somatic RefSiteMode / CompactRefSite elision, and O(W_mate log W_mate) sv::partial_pipeline delta-log merging; eliminated FisherExact::support and sum_elements heap allocations via algebraic support_len(), 1-point fast return, f80_sum_iter, 4,096-entry thread-local LRU memoization, and stack odds_ratio_buf / write_odds_ratio_into formatting; removed redundant Variant and Vars::var_desc_to_variant clones via Vars::variant_by_desc, ZERO_VARIANT, StackBuf, Cow<[u8]> splice/marker helpers, single-winner BTreeMap bucketing, 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 PairedVcfRecord to a single contiguous String buffer with usize byte-span FILTER offsets (3 -> 1 heap String allocation per somatic VCF candidate, u64 spill serialization in SomaticVcfCandidate, and zero-copy PairedRecordStreamer emission) (crates/vardictrust-core/src/output/vcf.rs, src/lib.rs) (PR #106).
    • Replaced perl_num_str heap String allocations with stack-formatted write_perl_num_str across single-sample and paired VCF FILTER/INFO emission, short-circuited single-sample/amplicon FisherExact and uniroot strand-bias calculation in build_single_vcf_event under --pass-only when non-Fisher filters already fail, formatted worker candidates through a per-tile String::with_capacity(512) scratch buffer retaining exact-sized String::from(scratch.as_str()) lines in SingleVcfRecord, added an IndexMap::get_mut(chr) fast-path in SpillableVcfAccumulator::insert avoiding per-candidate chr.to_string() allocations, reused pre-allocated Variant.bias capacity across postprocess/{simple,amplicon,somatic}.rs, and eliminated avoidable per-call heap allocations in cigar/parse.rs, realign.rs, sv.rs, and tovars.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 StagedFileTarget atomic .tmp.<pid>.<seq> staging and Drop residue 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/null or 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/.crai index (crates/vardictrust-core/src/lib.rs, crates/vardictrust/src/main.rs) (Issue #93, PR #104, PR #105).
  • Eliminated stderr BrokenPipe (EPIPE) panics across -y verbose logging, --DP ERR debug printing, and profiling warnings via verbose_eprintln!, hardened hostile CIGAR/alignment/CRISPR arithmetic (TLEN = i32::MIN, 268435455D, i32::MAX & i64 CRISPR/SV/realignment coordinate saturation, missing * qualities, -x extension saturation, and cov_cap bounds) against signed overflow or OOM allocation, fixed paired-VCF omitted--N sample extraction (bam1|bam2) and #CHROM sample-name whitespace normalization, enforced value-aware UNSUPPORTED_FLAGS and 1-based -c/-S/-E/-s/-e BED column validation without -R, emitted -i splice junction rows in deterministic sorted key order, added actionable 5/6-column BED column hints (-c 1 -S 2 -E 3 -z), and synchronized vardictrust --version license text to MIT 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 with io::ErrorKind::InvalidData across bam_alignment_end, BamFeed, and validate_cram_span and enforced unconditional i32::MAX coordinate/tag bounds in RecordPreprocessor (bam.rs), guarded slice-end wrap in util::subseq and sequence offset/length casts in reference.rs, widened iteration/exponent bounds and negative-input NaN guards in stats/{zeroin,f80}.rs and stats/rmath/stirlerr.rs, replaced unchecked arithmetic and u32 -> i32 threshold casts with checked/saturating and i64-widened math across cigar/parse.rs, realign.rs, sv.rs, tovars.rs, variations/, postprocess/somatic.rs, and output/table.rs, and aligned DIVERGENCES.md with ##source=VarDict_v1.8.2 byte-parity and certified 3.14x scale.json metrics (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.8 adversarial 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 before noodles container/slice reads (reference.rs, bam.rs, output/vcf.rs), rejected control/newline/NUL injection across -G, -R, -N, .fai contigs, and BED records before emitting ##fileformat=VCFv4.2 while 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 on stderr CLI diagnostics and closed profiling/temp-file TOCTOU and 0555 read-only-parent symlink overwrite vectors via O_CREAT | O_EXCL (0600/0700), O_NOFOLLOW, and DirectTempStaged / DirectPinned staging (main.rs, profile.rs, lib.rs), and hardened wiki.yml (persist-credentials: false, ::add-mask::, job-scoped contents: write), release.yml (origin/main ancestor tag guard), deny.toml (yanked = "deny", wildcards = "deny", required-git-spec = "rev"), dependabot.yml (cooldown default-days: 7), and packaging/nf-core/modules/vardictrust/main.nf shell quoting (PR #114).

Install vardictrust 1.0.8

Install prebuilt binaries via shell script

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

Download vardictrust 1.0.8

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

Verifying GitHub Artifact Attestations

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

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

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

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