HyphAeon, WALRUS,
BUSHWHACKER & SQUINT
with Steven Weaver, Anton Nekrutenko, and the HyPhy / Galaxy teams
Four core stages, four new formulations
Fast compiled implementations throughout (Rust, C++20/WASM, and PyTorch/WebGPU) across the Align → Tree → Selection stack. Today we start at the top with HyphAeon, then step through the rest:
| Workflow Stage | Current Bottleneck | Tool & Stack | When You Reach For It |
|---|---|---|---|
| 1. Multi-Scale Homology | Global flat MSAs struggle with clade-specific & disordered regions | SQUINT · Part 04Rust · .hdb |
Parameter-free MDL alignment that abstains where homology breaks down |
| 2. Phylogeny & Networks | Strictly binary trees yield unstable splits in rapid radiations | BUSHWHACKER · Part 03Rust · .bwz |
Lossless MDL trees, rapid radiations, gene transfer & convergence |
| 3. Joint Align + Tree + ML | Sequential MSA → tree → ML handoffs propagate indel FPs (>80%) | HyPhy 3 / WALRUS · Part 02C++20 · SIMD128 WASM |
Formal hypothesis tests & detailed single-gene analyses in browser/CLI |
| 4. Exome-Scale Operator | Per-site ML is too slow to perturb, permute, or correlate | HyphAeon · Part 01PyTorch · WebGPU |
Proteome-wide selection scans, QC, trait mapping & coevolution |
HyphAeon
A compact, tree-free, differentiable selection operator for vertebrate-scale alignments
Detects site-level positive and purifying selection across an entire coding alignment in under a second on a laptop, replacing per-site Markov likelihood optimization with a compact, tree-free neural operator.
Run exome-wide selection scans in minutes, then reuse the same differentiable model for alignment QC, trait-convergence mapping, site coevolution, and phylogenetic permutation tests.
Scaling codon models to VGP-size datasets
- VGP and TOGA now give us 17,000+ orthologs across hundreds of vertebrate genomes
- Classical ML (
HyPhy MEME) optimizes 61×61 Markov rate matrices from scratch at every site- Accurate and well-calibrated, but scanning a full vertebrate proteome takes weeks of cluster compute
- Independent single-site estimates carry high variance when branch divergence is sparse
- An offline numerical optimizer puts you in a one-shot straitjacket: you run it once on a fixed alignment and tree, and cannot easily differentiate it, re-score perturbations, or run large-scale permutation and pairwise coevolution screens
Why a small, column-wise model works
- Large protein language models (650M–15B parameters) learn sequence and gene-family context rather than phylogenetic dN/dS
- HyphAeon (1.91M parameters) scores one codon column at a time across M species, without seeing gene identity, sequence position, or flanking codons
- Trained directly on empirical alignments — 17,186 VGP/TOGA mammalian genes (742 species, 9.77M codons) paired with
MEMELRTs — rather than synthetic simulations - Empirical Bayes shrinkage (r = 0.71): on finite alignments, two independent realizations of the same evolutionary process correlate at only r ≈ 0.71; HyphAeon matches that ceiling on held-out genes while smoothing single-site ML variance (0.24 ms/site)
Effectively tree-free: continuous metric space
Instead of pruning branch-by-branch over a discrete binary tree, HyphAeon embeds pairwise distances Dij into 4D MDS coordinates (>88% variance), so it runs with a tree or from pairwise distances alone.
| Paradigm | Phylogenetic Input | Genetic Code & dS | Consequence at VGP Scale |
|---|---|---|---|
| Classical ML ( MEME, PAML) |
Fixed bifurcating tree (branch-by-branch pruning) | Explicit 61×61 codon matrix | Exact, but compute-heavy and sensitive to local tree error / ILS |
| Protein LMs (650M–15B params) |
None (sequences treated as i.i.d. strings) | Amino acids only (no dS baseline) | Does not separate shared ancestry or mutation rate from selection |
| HyphAeon | Tree optional: Newick tree or raw pairwise distances Dij | Isolated dS & dN tracks + Markov distance decay | Parallel across species, 500–1,000× faster, smooths local tree errors |
How HyphAeon works (1.91M parameters)
Tree-RoPE
Encodes each species' 4D MDS coordinates from pairwise distances directly into attention, without traversing a discrete tree.
Markov decay
Down-weights comparisons across long branches (e−λDij), separating independent convergence from shared ancestry.
[ROOT] token
Aggregates across all M species via attention, so selection on a small subset of lineages is not diluted by conserved background branches.
CORAL loss
Most sites are neutral (LRT ≈ 0). Predicting 16 ordered exceedance thresholds prevents MSE collapse toward zero and preserves tail ranking.
One forward pass, four downstream analyses
Input: any coding alignment (FASTA/NEXUS; tree optional). Runtime: <1 sec per gene in a browser (WebGPU) or <2 h for 17,000 genes on one GPU / Galaxy. Once computed, the same forward pass supports four analyses:
| What One Pass Returns | How You Use It | Biological Question It Answers |
|---|---|---|
Site scoresLRTs, p, q |
Re-score after masking a species, exon, or residue | Is this hit genuine adaptation or a draft-genome annotation error? |
Lineage attributionsas ∈ ℝM |
Correlate against a trait vector y with phylogenetic permutations (permulations) |
Which genes & sites drove a convergent trait across my tree? |
Site-pair correlationcorr(ai, aj) |
Identify codon pairs driven by the same subset of lineages | Which residues co-evolve in 3D or buffer human disease mutations? |
Selection velocityvs = d(LRTs) / dt |
Differentiate site selection scores over sampling calendar dates | Which sites are actively sweeping in longitudinally sampled data (e.g., viruses)? |
Separating positive selection from annotation errors
WhyShifted exon boundaries and draft-genome errors create apparent bursts of positive selection in comparative alignments.
HowMask one species (or sliding exon window) at a time and re-score; genuine selection persists while single-genome artifacts drop out.
Cellular localization gradient across mammals
- Why: Before applying a neural model to new VGP clades (birds, fish, reptiles), check whether it reproduces established proteome-wide selection patterns
- How: Stratify QC-filtered site scores across 15,845 genes by subcellular location and membrane topology
- What you get: A monotonic outside-in gradient, from 8.0% secreted/outer surface down to 2.4% core 80S ribosome (P = 5.1 × 10−121)
- Resolves membrane topology: outer-facing receptors (6.8%) vs. inner-leaflet scaffolds (5.0%)
Mapping convergent traits to specific sites
- Why: Gene-wide averages favor short proteins (e.g., SEM1, 70 aa) and dilute focal adaptive sites inside large multi-domain genes
- How: Correlate each site's species vector
asagainst trait vectory; calibrate with 1,000 Brownian permulations/gene (15.87M runs in 90 min) - What you get: 8 canonical sonar genes in the top 12 of 15,035 (TMC1 #1, CIB2 #2, PCDH15 #3, Prestin composite #3: 762 codons, ρmax = 0.907, 4 parallel substitutions)
Distinguishing adaptive gain from relaxed constraint
- Why: Losing a trait (vision in moles, olfaction in whales) relaxes purifying constraint, letting random substitutions mimic accelerated evolution in convergent scans
- How: Compare each gene's peak adaptive signal against its substitution rate in the conserved structural core (codons ≥ 90% invariant across background mammals)
- What you get: Adaptive gains (Prestin, PCDH15, EPAS1) preserve the structural core (<2.2×), whereas vestigial eye-lens (LIM2, CRYBA1, MIP) and olfactory (OR6B1) genes erode it up to 9.5× (P = 1.8 × 10−19)
Repeatability across scales: Gould vs. Morris
- The debate: If evolution replayed, would lineages take different paths (Gould: contingency) or converge on the same solutions (Conway Morris: determinism)?
- How: After filtering vestigial decay, measure sharing across 1.23M adaptive sites in four convergent traits (echolocation, diving, burrowing, longevity)
- What you get: Low sharing for exact amino acids (7.6–14.0%, Gould) and codon position (16.3–27.1%), rising through 10-aa loops (31.5–42.3%) to 3D domains (83.7–93.9%, Morris)
Why human disease alleles persist in mammals
- Why: Purifying selection excludes 98.0% of 25,938 pathogenic ClinVar variants from ≥ 2 mammals, yet 2.0% (515 alleles) appear as wild-type in healthy species
- How: Correlate lineage-attribution vectors (
ai, aj) across 497.9M residue pairs (7,576 PDBs) to find sites adapting on the same lineages, without structural input - What you get: Inside co-evolving sectors, 97.6% (40/41) of persistent disease alleles carry a co-mutated partner (4.65× over baseline, P = 4.3 × 10−25; 20.2× at <5 Å)
Compensatory partners restore local packing volume
- Why: Same-lineage co-substitution alone does not show how a second residue buffers a deleterious allele inside a folded pocket
- How: Compare side-chain volume changes (ΔV) across 345 compensated pairs (|ΔV| ≥ 25 ų, within 20 Å) linking pathogenic alleles to mammalian partners
- What you get: Side-chain volume compensation (r = −0.91) — bulky clashes (MPZ, SPOP, PSEN1) pair with partner shrinkage, while cavities (GLA, HBB) pair with expansion
Transfer beyond mammals: cross-clade & viral tests
WhyVGP spans birds, fish, reptiles, and amphibians — does a model trained only on placental mammals transfer to other clades?
HowWithout retraining, HyphAeon matches MEME across 73 published cross-clade alignments (median ρ = 0.68); we also applied the same weights to longitudinally sampled RNA viruses via vs = d(LRTs)/dt.
HyPhy 3 & WALRUS
Joint codon alignment, recombination-aware trees, and selection inference in one pass
Takes raw unaligned coding sequences (CLI or browser at veg.github.io/hyphy-3), repairs frameshifts, aligns codons with column homology posteriors, infers a phylogeny with recombination checks, and runs eight selection tests in one pass.
Runs 20–87× faster than HyPhy 2.5 and cuts indel-driven false positives from >80% to 1.4–4.4% by propagating alignment uncertainty directly into selection tests.
Joint alignment, phylogeny, and selection
WhyStandard aligners optimize sequence scores independently of the codon substitution model, which can push selection false positives above 80% in indel-rich loops.
Howhyphy3 walrus (C++20 + SIMD128 WebAssembly) runs one shared Inside–Outside engine from raw FASTA to 8 selection tests (20–87× faster than HyPhy 2.5).
11,190 avian genes: 13× fewer false positives
WhyOn real vertebrate orthogroups, standard pipelines (PRANK + GUIDANCE + BUSTED) flag 35–48% of conserved housekeeping genes as positively selected.
HowJoint codon alignment propagates column homology posteriors (Phom), repairs frameshifts, and controls GC3 drift inside one pass (6.6–35.8× faster).
PRANK packs an indel into a false MEME hit (p = 2.7×10−4); WALRUS -u separates it (Δln L = +122) into a purifying core.
Selection, GC3 drift, and clade shifts in one pass
- Shared likelihood pass: jointly quantifies indel-loop selection (71.9% of genes), synonymous-rate islands (57.3%), GC3 drift (52.1%), and CpG hotspots
- Unsupervised clade discovery: finds lineage shifts without pre-tagging branches, e.g., passerine intensification in antiviral helicase ZNFX1 (K = 4.5×, p = 9.4×10−29)
Unsupervised domain & regime forensics on TP53
What you getFrom raw coding sequences across 267 mammals & 35 primates: 1D HMM recovers exact PDB 1TUP domains, isolates 6 invariant cancer hotspots (ω = 0), and discovers a Murinae relaxation shift (K = 0.50, p = 3.1×10−7).
BUSHWHACKER
Evolutionary trees, rapid radiations, and lateral networks by lossless data compression
Infers trees, unresolved polytomies, and lateral transfer or convergence links by lossless data compression, retaining a branch only when it saves bits.
Removes 60–80% of unsupported gene-tree conflicts in rapid vertebrate radiations without bootstrap thresholds, and runs 882-mammal supermatrices in under 2 GB of RAM.
Heredity as lossless data compression
HowEncode one ancestor plus sparse branch edits. A branch or lateral link enters the graph only when shared edits save more nats than its address costs (1.98 GB RAM vs. 79.2 GB for IQ-TREE 2 on 882 mammals).
gzip -9).
Branches enter only when they save bits
WhyEnforcing strictly bifurcating trees on rapid radiations introduces low-support splits: 2/3 of single-gene trees disagree with species trees and shift across models or seeds.
HowZero-change stems (ΔL ≤ 0) remain polytomies instead of forced bifurcations; positive compression savings directly weight species-tree inference.
Back to Prestin: tree intact, convergence isolated
HowContiguous transfers pay 2 endpoints (recombination / gene conversion); scattered parallel edits isolate adaptive convergence without letting 4 sonar sites distort the mammalian species tree.
N7T, I384T, S392A, G601A) extracted directly from the MDL model, cutting species-tree false splits nearly in half vs. IQ-TREE 2.Gene conversion vs. cross-order convergence
- Species-tree baseline: 85.9% of proteins (97.9% >1,500 aa) compress tighter on the species tree than on a free gene tree
- How: Without synteny or paralog labels, genomic footprint separates contiguous tracts (6.0% of genes, median 85 aa) from scattered parallel sites (11.9%)
- What you get: Contiguous tracts stay within families (68.9%) and enrich 3.9–5.4× in CYP, OR & KRAB clusters; scattered sites cross orders 3.3× more often (38.0%)
Guild neutrality vs. focal cochlear convergence
- Ecological guilds tested: Do independent lineages sharing a lifestyle — ant-eaters (pangolins/anteaters), subterranean, marine, and echolocators (bats/whales) — show genome-wide convergence?
- Proteome-wide neutrality (left): None exceed random expectation (0.50–1.47×); the raw 12.6× ant-eater spike comes from giant proteins (titin) and multicopy receptors (1.35× length-adjusted)
- Focal machinery (right): Inside the 27-gene inner-ear hair-cell complex, half (9/18) of species-tree parallel links unite echolocating bats or whales (3.0×, P = 0.0011; labels = gain in
+nats)
SQUINT
Multi-scale sequence homology by lossless compression
Aligns sequences using parameter-free Minimum Description Length compression (without BLOSUM or LG tables) and abstains whenever shared ancestry cannot beat a repeat-aware null.
Avoids aligning across clade-specific exons and scrambled disordered tails, recovering a 3–6× faster-evolving vertebrate adaptive stratum often missed by global MSAs.
Alignment as lossless data compression
- Bit-budget criterion (ΔL = Lind − Ljoint > 0): align two sequences or clades only when joint ancestral encoding takes fewer bits than encoding them independently — defining a parameter-free horizon at ΔL = 0
- Repeat-aware baseline (Lind): compresses each sequence's local composition and tandem repeats (periods 1–12) before cross-species comparison, so low-complexity tracts cannot earn spurious alignment bits
- First-principles rates & marginalization: derives rates from the genetic code and 5-axis chemistry (no BLOSUM or LG tables), summing over gap placements, unaligned segments, and inline frameshift repairs via sparse Forward–Backward DP
- Tree-indexed archive (
.hdb): stores universal cores, clade-local blocks, frameshift repairs, and unaligned bubbles intact rather than flattening into one matrix — running in 2–4 s/gene (Rust & WASM)
When global alignment should abstain
WhyUnlike pairwise search (BLAST, HMMER), standard multiple aligners place every residue into one flat matrix, mixing lineage-specific genes (vpu vs. vpx below, or clade-specific vertebrate exons) or leaving them to gap trimmers.
Repeat-aware MDL defines the alignment horizon
BiologyVertebrate FUS (33 species, 450 Myr) pairs folded RNA-binding cores (RRM, ZnF; 4.4 bits/aa) with Gly/Ser-rich disordered tails (QGSY, RGG; 2.5 bits/aa) that scramble from mammals to fishes.
HowGenetic-code + 5-axis chemistry rates vs. a repeat-aware null (no BLOSUM/LG): Gly repeats are already cheap independently, so cross-class pairing saves 0 bits and emits anchored bubbles.
One MDL test defines four homology tiers
- Type I · Universal positional core: Residue order compresses across the full tree (ΔLpos > 0 at root) — standard 1-to-1 columns (e.g., folded FUS
RRM/ZnF). - Type II · Clade-scoped positional: Order fails globally but compresses inside a subclade u — lineage-specific exons, loops, or genes (e.g., vpu / vpx).
- Type III · Anchored non-positional: Order scrambles even within clades; emits an anchored bubble governed by one shared chemistry/grammar model (e.g., IRS1).
- Type IV · Clade phase transition: Inside a bubble, two clade-specific chemistry models beat one shared model — a conserved bulk shift (e.g., GJD2, BCL11B).
Clade-scoped domains evolve 3–6× faster
- Question: Do clade-restricted (Type II) domains evolve differently from universal (Type I) cores inside the same protein?
- How: Run standard
FELandMEMEon strict Type II blocks vs. Type I cores on the same subtrees (565 paired vertebrate cohorts) - What you get: Monotonic stratigraphy — Type II ω rises from deep clades (2.16×, 352 Mya) through birds (4.39×,
MEME4.7×) to young mammal orders (6.23×; ρ = −0.33, p = 1.3 × 10−15)
Why global aligners and trimmers miss Type II sites
- Type I control (top bar): Universal cores survive
MAFFT + trimAlcleanly (only 1.7% clipped), whereas clade-specific Type II blocks face a two-way trap - Skip trimming → outgroup mixing (◇): Untrimmed
MAFFTpacks non-homologous outgroups (≥25% occupancy) into 78.1% of Type II columns — contaminating 85% of Type IIMEMEhits - Apply trimming → clade erasure (bars):
trimAldeletes gappy subclade columns (40.7% in birds, 52.8% in primates, 98.7% in cetartiodactyls) - Net result (bottom row): Only 3 / 80 (3.8%) of Type II adaptive hits remain both unclipped and uncontaminated — though clade-restricted
MAFFTreplicates the 3.4× ω signal
Liquid homology: fast turnover, frozen net charge
- Why: When residue order scrambles inside intrinsically disordered loops, standard tools discard them under the assumption of neutral drift
- How: Inside 5,904 doubly-anchored tetrapod bubbles, calibrate observed chemical drift against neutral 61-codon simulations from flanking Type I 4-fold sites (ψ = 1 is neutral)
- What you get: 21.7% (1,284) sit in the liquid regime — individual residues turn over near neutrality (ψAA20 ≥ 0.70) while bulk net charge stays purified (ψNCPR ≤ 0.30; IRS1, SFPQ, AFF4, CHRM4)
Clade-locked phase switches & null-control audits
- Double-locked shifts (top): Across 3,000 tetrapod orthologs, Type IV bubbles jump cleanly at major clade roots and stay tightly conserved — e.g., therian GJD2 (4 → 19 aa, 215× lock), placental BCL11B (105×), and isomeric Gln→Pro switches in CHRM4
- Negative-control audits (bottom): Exact phylogenetic sign tests confirm marine traits match the 50% neutral baseline (50.9–51.6%, p ≥ 0.13) and flag warm-blooded G/P/C drift (85.7%) as coding GC3 isochore bias rather than convergence
Four tools, compiled and open source
Compiled and GPU-accelerated implementations running locally on a laptop or browser and scaling to full VGP proteomes on HPC or Galaxy (Orbit).
| Tool | Primary Focus | Stack & Web App | Code & Preprint |
|---|---|---|---|
| SQUINT | Multi-scale homology & frameshift repair | Rust · WASM (.hdb) veg.github.io/squint |
github.com/veg/squint Preprint in preparation |
| BUSHWHACKER | Trees, polytomy hubs & lateral networks | Rust · WASM (.bwz) veg.github.io/bushwhacker |
github.com/veg/bushwhacker doi:10.5281/zenodo.24222787 |
| HyPhy 3 / WALRUS | Joint codon alignment, tree & selection ML | C++20 · SIMD128 WASM veg.github.io/hyphy-3 |
github.com/veg/hyphy-3 bioRxiv 2026.11.06.764988 |
| HyphAeon | Exome-scale selection, QC, traits & epistasis | PyTorch · WebGPU veg.github.io/HyphAeon |
github.com/veg/HyphAeon · HF weights bioRxiv 2026.09.06.749597 |