You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wetSpring — Life Science & Analytical Chemistry Validation
Pure Rust spring reproducing published results in metagenomics, analytical
chemistry (LC-MS, PFAS), and mathematical biology. Validates Python/R baselines
against Rust implementations, then promotes to GPU acceleration via
barraCuda.
Python/R baseline → Rust CPU parity → GPU acceleration → sovereign pipeline
(58 scripts) (1,902 tests) (44 GPU modules) (barraCuda/coralReef)
Springs are scientific validation targets. barraCuda provides GPU math.
toadStool routes hardware. Springs never import each other.
Write → Validate → Hand off → Absorb → Lean
────── ───────── ───────── ──────── ─────
CPU + test vs document barraCuda rewire to
WGSL Python in handoff adds ops upstream, delete local
Crate Structure
Crate
Purpose
Modules
wetspring-barracuda
Library: bio algorithms + I/O + validation
49 CPU + 44 GPU + 6 I/O
wetspring-forge
Hardware discovery, dispatch, visualization
13 modules
wetspring-barracuda-fuzz
libFuzzer targets for parsers
4 targets
GPU Evolution Status
Phase
Count
Description
Lean
22
Direct upstream barraCuda primitive
Compose
11
Multiple barraCuda primitives wired
Write → Lean
5
ODE shaders via generate_shader() (local WGSL deleted)
Tier C
0
Full lean achieved
Performance
Workload
Speedup
Parity
Spectral cosine (2048 spectra)
926x
≤ 1e-10
Full 16S pipeline (10 samples)
2.5x
88/88 checks
Shannon/Simpson diversity
15–25x
≤ 1e-6
Bifurcation eigenvalues
bit-exact
2.67e-16 rel
Rust vs Python (25 domains)
33x
51 ms vs 1,713 ms
Peak: Smith-Waterman
625x
exact
Quick Start
# Run all tests
cargo test --workspace --all-features
# Code quality
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo fmt --all -- --check
# Run a validation binary
cargo run --release --bin validate_diversity
# Run all validation binaries (meta-runner)
cargo run --bin validate_all
# Coverage gate (workspace alias)
cargo coverage-check
# GPU validation (requires gpu feature + compatible hardware)
cargo run --features gpu --release --bin validate_barracuda_cpu_v27
# Coverage
cargo llvm-cov --workspace --html
CPU Modules (49)
Module
Algorithm
Validated Against
adapter
Adapter detection + 3' trimming
Trimmomatic/Cutadapt
alignment
Smith-Waterman (affine gaps)
Pure Python SW
ani
Average Nucleotide Identity
Pure Python ANI
bistable
Fernandez 2020 phenotypic switching
scipy ODE
bootstrap
RAWR bootstrap resampling
Pure Python
capacitor
Mhatre 2020 phenotypic capacitor
scipy ODE
chimera
UCHIME-style chimera detection
DADA2-R
cooperation
Bruger 2018 QS game theory
scipy ODE
dada2
ASV denoising (Callahan 2016)
DADA2-R
decision_tree
Decision tree inference
sklearn
derep
Dereplication + abundance
VSEARCH
diversity
Shannon, Simpson, Chao1, Bray-Curtis, Pielou
QIIME2
dnds
Nei-Gojobori pairwise dN/dS
Pure Python
eic
EIC/XIC extraction + peak integration
asari 1.13.1
esn
Echo State Network reservoir (NPU int8)
Pure Python ESN
feature_table
LC-MS feature extraction
asari 1.13.1
felsenstein
Pruning phylogenetic likelihood
Pure Python JC69
gbm
Gradient Boosting Machine
sklearn GBM
gillespie
Gillespie SSA (stochastic simulation)
numpy
hmm
HMM (forward/backward/Viterbi)
numpy
hormesis
Biphasic dose-response via Anderson
Calabrese & Mattson 2017
binding_landscape
Colonization resistance, IPR
healthSpring exp098
kmd
Kendrick mass defect
pyOpenMS
kmer
K-mer counting (2-bit canonical)
QIIME2
merge_pairs
Paired-end overlap merging
VSEARCH
molecular_clock
Strict/relaxed clock, calibration
Pure Python
multi_signal
Srivastava 2011 multi-input QS
scipy ODE
neighbor_joining
NJ tree construction (Saitou & Nei 1987)
Pure Python
nmf
Non-negative Matrix Factorization
Yang 2020 / Gao 2020
ode
Generic RK4 ODE integrator
scipy.integrate
pangenome
Gene clustering, Heap's law, BH FDR
Pure Python
pcoa
PCoA (Jacobi eigendecomposition)
QIIME2 emperor
phage_defense
Hsueh 2022 phage defense deaminase
scipy ODE
placement
Phylogenetic placement (Alamin & Liu 2024)
Pure Python
qs_biofilm
Waters 2008 QS/c-di-GMP model
scipy ODE
quality
Quality filtering (Trimmomatic-style)
Trimmomatic
random_forest
Random Forest ensemble inference
sklearn
reconciliation
DTL reconciliation (Zheng 2023)
Pure Python
robinson_foulds
RF tree distance
dendropy
signal
1D peak detection
scipy.signal
snp
SNP calling
Pure Python
spectral_match
MS2 cosine similarity
pyOpenMS
taxonomy
Naive Bayes classifier (RDP-style)
QIIME2
tolerance_search
ppm/Da m/z search
FindPFAS
transe
TransE knowledge graph embedding
ROBOKOP
unifrac
Unweighted/weighted UniFrac
QIIME2
I/O Modules
All parsers stream from disk — no full-file buffering.
Module
Format
Features
io::fastq
FASTQ + gzip
Zero-copy for_each_record, iterator, stats
io::mzml
mzML (base64/zlib)
Streaming XML, reusable decode buffers
io::ms2
MS2
Streaming line parser, single reused buffer
io::mzxml
mzXML
Streaming XML iterator
io::jcamp
JCAMP-DX
Streaming multi-block parser
io::nanopore
POD5/FAST5/NRS
Binary signal bridge, int16 streaming
Code Quality
Check
Status
cargo fmt
Clean
cargo clippy (pedantic + nursery)
0 warnings
cargo doc --no-deps
0 warnings
#![forbid(unsafe_code)]
Workspace-level ([workspace.lints.rust]) + all crate roots
This repo is a domain validation spring in the
ecoPrimals sovereign computing ecosystem.
Springs reproduce published scientific results using pure Rust and
barraCuda GPU primitives.
See wateringHole for ecosystem
documentation and standards.
About
Pure Rust metagenomics, analytical chemistry & mathematical biology — 1,750+ tests, 350+ validation binaries, 5,700+ checks. GPU via barraCuda