Repository navigation
1.0.8 - 2026-11-14
Release Notes
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).
- Added single-
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).
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 | shDownload 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/VarDictRustYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo palakpsheth/VarDictRust