RhizAeon (PA-FF v2.1) is a next-generation genomic recombination detection engine built from first principles in native Rust and WebAssembly. It replaces exhaustive combinatorial triplet scanning with continuous metric manifold projection and physical attention force-field deconvolution.
By avoiding the combinatorial O(NΒ³) bottleneck of triplet methods (such as 3SEQ and RDP), RhizAeon scales strictly linearly with taxon cohort size (O(N Β· K Β· L)), running 130x to 500x faster on moderate-to-large cohorts while naturally resolving multi-way mosaicism (3+ parents) and introgression from unsampled (ghost) lineages.
Run RhizAeon directly in your web browser with zero installation:
π https://veg.github.io/rhizaeon-code/
- 100% Client-Side Privacy: WebAssembly executes locally on your CPU; your sequence data never touches a remote server.
- One-Click Empirical Benchmarks: Preloaded with Potato Virus Y (Darren Martin benchmark), HIV-1 CRF02_AG, and Human mtDNA clonal controls.
- Interactive Dossiers: Instant, in-browser rendering of continuous force-field trajectories, Manhattan changepoints, and mosaic breakpoint tables.
- Linear-Time Scaling (
O(NK)vs.O(NΒ³)): Evaluates alignments against K β€ 32 Buneman metric landmarks. Scans 128 full-length genomes (12 kb) in 1.16 seconds, compared to ~9.2 minutes for 3SEQ (~500x speedup). - Immune to Heterotachy & Hypermutation (FPR = 0.00%): Private autapomorphic rate bursts (e.g. the Darren heterotachy trap) and localized hypermutation showers (e.g. APOBEC) are dissipated into a continuous
[ROOT]sink token, preventing false-positive donor attribution. - Multi-Way Mosaic Deconvolution: Simultaneously detects multiple distinct parental donor cassettes across a recombinant chromosome without triplet truncation.
- Zero-Dependency Native Binary & WASM: Compiled as a standalone, statically linked native binary (
rhizaeon) and zero-overhead WebAssembly library for client-side execution directly in web browsers. - Interactive Visual Reporting: Emits standalone, zero-dependency HTML dashboards (
--html) featuring interactive trajectory manifold visualizations, restoring potential curves, and breakpoint locators.
| Cohort Size (N) | Alignment Length (L) | 3SEQ Runtime (O(NΒ³)) |
RhizAeon Runtime (O(NK)) |
Empirical Speedup |
|---|---|---|---|---|
| 4 taxa | 1,800 nt | 14.1 ms | 8.7 ms | 1.6x faster |
| 8 taxa | 6,000 nt | 25.0 ms | 20.2 ms | 1.2x faster |
| 12 taxa | 3,000 nt | 111.9 ms | 15.4 ms | 7.3x faster |
| 16 taxa | 1,200 nt | 95.1 ms | 12.8 ms | 7.4x faster |
| 24 taxa | 3,000 nt | 744.2 ms | 25.9 ms | 28.8x faster |
| 32 taxa | 3,000 nt | 1,537.7 ms | 29.3 ms | 52.4x faster |
| 64 taxa | 1,200 nt | 5,971.7 ms (~6.0 s) | 44.9 ms | 132.9x faster |
| 128 taxa | 12,000 nt | ~550,000 ms (~9.2 min) | 1,167.9 ms (1.17 s) | ~470x faster |
The RhizAeon engine (Rust core, CLI, and WebAssembly bindings) is developed and released in the HyphAeon monorepo. This repository holds the GitHub Pages application, empirical benchmark datasets, and research/manuscript artifacts β and consumes published, versioned artifacts:
| Component | Published artifact |
|---|---|
rhizaeon CLI |
pip install rhizaeon (compiled Rust extension in the wheel) |
| Browser engine | rhizaeon-wasm-<version>-pkg.tar.gz on HyphAeon releases, fetched into docs/pkg/ |
| Engine source | rust/rhizaeon/crates/ and rhizaeon/ in veg/HyphAeon |
pip install rhizaeonThe wheel bundles the compiled Rust extension β no Rust toolchain needed. To build from source instead, clone veg/HyphAeon and run maturin develop in rhizaeon/.
docs/pkg/ is not committed. It is fetched at deploy time from the pinned HyphAeon release β see scripts/fetch_wasm.sh (single source of truth for the engine version). For local preview:
bash scripts/fetch_wasm.sh # populates docs/pkg/rhizaeon [OPTIONS] --input <INPUT_FASTA>-i, --input <PATH>: Input FASTA alignment (required).-o, --output <PATH>: Write structured summary JSON report.-v, --viz <PATH>: Write rich visualization dossier JSON (schema draft 2020-12).--html <PATH>: Generate a standalone, zero-dependency interactive HTML dashboard.-t, --title <STRING>: Custom title for dashboard and report headers.-l, --landmarks <INT>: Target spectral landmarks K on the simplex Ξ^K (default:16).-a, --alpha <FLOAT>: Family-wise significance threshold (default:0.05).-p, --poisson-floor <INT>: Minimum supporting informative sites (default:3).
# 1. Quick command-line scan with stdout summary table
rhizaeon -i tests/empirical/data/hiv1_kal153_crf02_ag.fasta
# 2. Complete analysis writing summary JSON and interactive HTML report
rhizaeon \
-i tests/empirical/data/hiv1_kal153_crf02_ag.fasta \
-o kal153_summary.json \
--html kal153_report.html \
--title "HIV-1 CRF02_AG (KAL-153) Recombination Analysis" βββββββββββββββββββββββββββββββββββ
β Input Multi-Sequence Alignment β
ββββββββββββββββββ¬βββββββββββββββββ
β
βββββββββββββββββββββββββ΄ββββββββββββββββββββββββ
βΌ βΌ
Global Divergence Matrix Buneman Metric MDS (4D)
D_glob in R^(N x N) m_i in R^4
β β
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββ€
βΌ βΌ βΌ
Landmark Selection Tree-RoPE Phases PhyloBias CTMC Prior
K <= 32 on Delta^K theta_{i, d} ln(P_ij)
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
βΌ
Continuous Cross-Attention Tensor
A in R^(U x N x (N+1))
(Includes [ROOT] Sink)
β
βΌ
Cumulative Attention Curves
C in R^(N x M x (U+1))
β
βΌ
Candidate Outlier Screener (O(NKL))
- Circular buffer spatial coherence
- Lazy participation ratio (PR)
- Autapomorphic rate-burst filter
β
βΌ
Dual-Flank Force Field Deconvolution
- Continuous restoring potential zero-crossing
- Hookean apparent coordinate displacement
- Profile likelihood polisher
β
βΌ
Rigorous Due Diligence Audit
- Fisher's Exact 2x2 test (p < 0.05)
- Reticulation graph cycle adjudication
- Deduplication & overlap pruning
β
βΌ
Verified Recombination Events (|E|)
RhizAeon projects whole-sequence Hamming divergence
Analytical Jacobi rotation extracts coordinates O(N Β· K Β· L) throughput.
Conventional sliding-window and triplet algorithms are vulnerable to private rate variation (the Darren heterotachy trap) and hypermutation bursts (such as APOBEC). RhizAeon computes rotary embedding phase angles from Buneman coordinates:
and integrates a continuous-time Markov substitution prior with background pseudocount
Continuous cross-attention Softmax is evaluated over all
By anchoring an unpolarized [ROOT] sink token at the metric origin (
Recombination events generate localized mechanical tension between a sequence's background phylogenetic affinities (Home) and its converted tract affinities (Donor). RhizAeon models this tension via Hookean apparent coordinate displacement:
Continuous restoring potential zero-crossing inflections provide sub-15 nucleotide breakpoint localization without sliding-window slicing, and dual-flank metric displacement unambiguously resolves Home and Donor parentage (or certifies introgression from unsampled ghost lineages).
To prevent reciprocal mirror-image reporting (A β B vs. B β A), RhizAeon constructs a directed reticulation graph across candidate events, resolving cycles in favor of the lineage exhibiting maximal dynamic metric velocity reversal.
RhizAeon was benchmarked side-by-side against 3SEQ across 11 representative regimes:
Benchmark Regime RhizAeon (PA-FF) 3SEQ Result
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Strict Clock Null Certified H0 Null Certified H0 Null 0.00% FPR
Darren Heterotachy Null Certified H0 Null Certified H0 Null 0.00% FPR
APOBEC Hypermutation Null Certified H0 Null Certified H0 Null 0.00% FPR
Darwinian Selection Null Certified H0 Null Certified H0 Null 0.00% FPR
Single Crossover (d = 0.004) Detected (MAE 1.1k) Detected (MAE 49) 1.2x faster
Single Crossover (d = 0.357) Detected (MAE 4 nt) Detected (MAE 3 nt) 7.3x faster
Cassette Swap (Standard) Detected (MAE 2 nt) Detected (MAE 1 nt) 7.4x faster
Cassette Swap (Long Span) Detected (MAE 11nt) Detected (MAE 2 nt) 2.9x faster
Micro-conversion (120 nt) Detected (MAE 18nt) Detected (MAE 4 nt) 28.8x faster
Ghost Donor Introgression 1 Unified Event 33 False Triplets 52.4x faster
Multi-Way Mosaic (3 Parents) Both Cassettes Missed 2 of 4 BPs 132.9x faster
rhizaeon-code/
βββ README.md # Human-oriented overview & user guide
βββ AGENT.md # Machine-readable specification for AI agents
βββ LICENSE # MIT License
βββ docs/ # GitHub Pages web application
β βββ index.html # Client-side WASM dashboard
β βββ assets/ # Images & branding
β βββ examples/ # Bundled example alignments
β βββ pkg/ # WASM bundle β fetched at deploy, NOT committed
βββ scripts/
β βββ fetch_wasm.sh # Pinned HyphAeon release fetch (version of record)
β βββ simulations/ # Parameter sweep & plotting utilities
βββ benchmarks/ # Posada-Crandall & scenario benchmark harnesses
βββ empirical_datasets/ # Published reanalysis datasets
βββ empirical_showcase/ # Showcase analyses (PBP2X, XBB, MHC, Heliconius)
βββ paper/ # Manuscript sources
βββ tools/ # History-validation utilities
βββ tests/
βββ empirical/ # Real-world benchmark alignments
β βββ data/ # HIV-1 CRF02_AG, SARS-2 XBB, Human mtDNA
β βββ test_empirical_benchmarks.py
βββ simulated/ # Simulation verification harnesses
βββ evaluate_head_to_head_3seq.py
βββ test_simulated_scenarios.py
The Rust engine workspace (
crates/rhizaeon-core,rhizaeon-cli,rhizaeon-wasm) now lives in the HyphAeon monorepo atrust/rhizaeon/; the CLI ships to PyPI asrhizaeon.
The Rust unit/integration and WebAssembly suites run in the HyphAeon monorepo (rust/ workspace). This repository's Python harnesses exercise the published rhizaeon CLI:
pip install rhizaeon
# 1. Empirical benchmark tests (KAL-153, SARS-CoV-2 XBB, mtDNA)
python3 tests/empirical/test_empirical_benchmarks.py
# 2. Simulated benchmark tests (Crossover, Cassette, Heterotachy Null)
python3 tests/simulated/test_simulated_scenarios.pyIf you use RhizAeon in your research, please cite:
- Kosakovsky Pond, S. L. et al. (2026). RhizAeon: Physical Attention Force Field Deconvolution for Ultra-Fast Genomic Recombination Analysis.
For bug reports, feature requests, or questions, please open an issue on GitHub: π https://github.com/veg/rhizaeon-code