Multi-Step Substitution Route Epistasis

routecost Paired deep mutational scan route residuals, exact deposit agreement, and codon bridges
Karagöl and Karagöl 2026 (version 0.1.0-web)

Paired Mutational Scan Inputs client-side computation

Out of the 380 ordered amino acid exchanges in the standard genetic code, 230 require two or three nucleotide changes. Single-mutant deep mutational scans measure only single substitutions from one parent, so two-step routes through an intermediate lie outside what a single scan can measure. Pairing two scans from distinct starting sequences of equal length measures the complete two-step bridge X -> Z -> Y and checks assay compatibility on shared-parent sites.

Variant identifiers accept HGVS protein strings (p.Thr14Ala, p.Thr14=), short codes (T14A), or separate pos,wt,alt columns. When synonymous wild-type rows are absent, the chosen score percentile estimates the wild-type baseline, and effects are scaled by each scan's median absolute deviation (MAD).

Deposit Agreement & Route Summary

Additive First-Scan Difference vs Measured Second Leg

Target within 95% shared-parent null Target exceeding 95% shared-parent null Additive identity (u_A(X->Y) - u_A(X->Z) = u_B(Z->Y))

Differing Parent Positions & Route Epistasis Table

Standard Genetic Code Minimum Base-Change Matrix (380 Exchanges) click any cell

Across all 380 ordered non-self amino acid pairs, 150 (39.5%) are reachable by a single nucleotide change, 202 (53.2%) require at least two base changes and admit single-step amino acid intermediates, and 28 (7.4%) require all three codon positions to change.

Obligate Single-Step Intermediates & Codon Bridges (c_X -> c_Z -> c_Y)
1 nucleotide change (150 pairs) 2 nucleotide changes, bridged by Z (202 pairs) 3 nucleotide changes (28 pairs)

Method & Equations

Standardised Effects & Route Residual

MAD-scaled mutational effect

u_S(p, a) = (score_S(p, a) - WT_S) / MAD_S

Two-step route residual at position p where Scan A carries X and Scan B carries Z

r(X -> Z -> Y) = (u_A(p, Y) - u_A(p, Z)) - u_B(p, Y)

Statistic: median_Y |r(X -> Z -> Y)| across all common targets Y not in {X, Z} (minimum 6 targets).

Exact Deposit Agreement & Dispersion-Matched Null

When Parent A and Parent B differ at a single residue position p, every substitution Y not in {X, Z} at position p produces the exact same mutant protein in both experiments, so the noise-free rank correlation rho(u_A(p, Y), u_B(p, Y)) equals 1.0. Shared-parent positions (where Parent A and Parent B carry the same wild-type residue) provide empirical between-scan differences u_B(q, a) - u_A(q, a) matched by local mutational dispersion to calibrate permutation p-values and Benjamini-Hochberg false discovery rates.

Reference & Package

Karagöl T. and Karagöl A. (2026). Most substitutions need more than one base change and an exact test tells which deposited scans measure the route. bioRxiv, doi:10.64898/2026.11.17.767252. Python package: pip install routecost. Source repository: github.com/karagol-taner/two-step-substitution-routes (MIT License).