The 3D instrument could not start on this device — the sampler, transcript and readouts below still run the published problem live.
01 / 03 · thermo_physics.codon Station 13 · Offline Potts Codon Sampler · MIT

Station 13,
the annealing chamber

One 15-residue peptide, 84,934,656 synonymous ways to write its mRNA — cast in brass and glass. The greedy transcript in the chamber is kinked with 4 hairpins at energy 9.1111; the published Potts anneal relaxes it straight — 0 hairpins, energy 1.2891 — and the chamber runs a browser anneal of that Hamiltonian live while you watch. It runs entirely offline, in this browser, the way the sampler runs air-gapped on your own hardware.

Drag to orbit · Scroll to zoom
Energy H(s) · live
—
Published anneal
1.2891
Inverse temp β
0.90
Hairpins · live
— / 4 at greedy
// 01 · Published run

Station 13, the published run

Target peptide HAEGTFTSDVSSYLE, a 15-residue fragment — 45 nucleotides, 84,934,656 synonymous transcripts. A greedy CAI-only writer picks each host's favourite codon and stops there: perfect adaptation on paper, but GC-rich and kinked with hairpins that stall ribosome initiation. The Potts sampler trades a little CAI for a transcript that actually expresses: no hairpins, GC pulled back toward the host target, energy down by 7.822.

Hairpins here are the station's inverted-repeat detector (stem of 3, loop of 3–8), not a ViennaRNA free-energy fold. The strand in the chamber is a shorter browser anneal of the decomposed Hamiltonian below, starting from the greedy transcript — labelled as an illustration, and it is not that published energy: weighted for the browser, a long anneal here can settle a little below 1.2891, while “Run to published” replays the published endpoint exactly. The published run is the package's own. All runs are JAX simulations on ordinary computers; no special sampling hardware is required.

Note: simulated benchmark result, results may vary (not customer results).

Greedy CAI-only baselineE 9.1111
CAI · GC · Hairpins1.0000 · 66.7% · 4
Potts sampler annealE 1.2891
CAI · GC · Hairpins0.9326 · 57.8% · 0
Energy advantage vs greedy7.822
Synonymous transcripts searched84,934,656
Sampler ControlsFIG. 01
Temperature β β 0.90
0.30 · HOT — CODONS WANDER3.00 · COLD — STRAND SETTLES
Sampling
Energy H(s) · trailing sweepsDashed — published 1.2891
Live StateFIG. 02
Energy H(s)
—
Hairpins
—
CAI · h_sapiens
—
GC content
—
Sweeps
0
Δ vs published
—

A sweep proposes one synonymous swap per residue. Tap any codon in the transcript below to cycle it by hand — energy, CAI, GC and the hairpin count recompute on the spot, and the strand in the chamber follows.

The Transcript · HAEGTFTSDVSSYLE · 45 ntFIG. 03
In a hairpin stem Host-optimal codon Tap a codon to cycle its synonyms
// 02 · Host ProfilesFIG. 04

Six native host tables ship with the sampler — codon usage frequencies, tRNA adaptation and a GC baseline target for each. The published run is h_sapiens; switch hosts and the same transcript is re-scored against that host's table, live.

Preferred codons for this peptide · h_sapiens
// 03 · Potts Hamiltonian H(s)FIG. 05
H(s) = −wcai·CAI(s) + wdbl·Edoublet(s) + w5p·ΔG5p(s) + whp·Nhairpins(s) + wgc·(GC(s) − GCtarget)²
  • Host CAI — mean log-relative adaptiveness of synonymous codons against the host table.
  • Rare-codon doublets — penalizes sequential rare tRNAs that trigger translation stalling.
  • Turner 2004 5′ initiation structure — secondary-structure free energy over nt 1–54, kept open for ribosome pre-initiation loading.
  • Hairpins — inverted repeats (stem 3, loop 3–8) counted on the transcript and charged per occurrence.
  • GC homeostasis — 50-nt sliding-window GC held against the host target.
// 04 · Synthesis ExclusionsFIG. 06

Deterministic verification and penalty filters, evaluated on both strands across codon boundaries. Disabled by default for homology assembly — switch one on and the sampler is charged for every occurrence in the live transcript.

Homopolymer tracts ≥ 5 nt (poly-A, poly-T, poly-G, poly-C) are flagged to prevent DNA synthesis slippage and sequencing dropouts. The scan below always reports the current transcript; the penalty only applies while a filter is on.

// 05 · Air-Gapped CLIFIG. 07

100% local. Zero telemetry, zero external network calls. Validate historical expression libraries completely offline:

$ python scripts/agf_local_codon_benchmark.py correlate \
  --csv constructs.csv --host s_cerevisiae --enzymes none \
  --summary-out summary_correlations_only.json

The --summary-out flag exports strictly aggregated validation statistics — sample counts, Spearman ρ, Pearson r, p-values, classification ROC-AUC. Zero construct sequences, IDs, or proprietary metadata leave your perimeter.

// Open Source · Academic & Foundry AccessFIG. 08
  • MITthermo_physics.codon
    Open-source Python package — read it, fork it, run it air-gapped on proprietary construct libraries.
  • $0Free permanently
    For academic labs and university biofoundries — no licence clock, no per-seat anything.
  • TrialFree design-partner trial
    Bring a construct library; we run the retrospective correlation on your past constructs, on your hardware, and you keep the summary statistics.