Station 11 is in the MIT-licensed thermo-physics suite. The file experiments/exp11_rna_folding.py builds a quadratic energy over candidate base pairs and samples those binary contacts with Gibbs sampling in JAX. The suite's sampler is block Gibbs on Extropic thrml. This experiment draws the contact ensemble with a JAX scan.
Candidate contacts are Watson-Crick pairs and G-U wobble pairs. The energy has a term for each pair, a stacking bonus when neighboring pairs continue a stem, a steric penalty when one nucleotide would pair twice, and a crossing penalty for pseudoknots.
When the contact graph is small enough, the script enumerates every contact state and records the exact minimum free energy. It also records contact occupancies, the Shannon entropy of the conformations it visits, the Sokal integrated autocorrelation time, and the effective sample size. A classical simulated-annealing run uses the same step budget as a baseline.
The file describes the energy as a coarse model. It is not the full Turner nearest-neighbor parameter set, and it is not a replacement for ViennaRNA.
thermo-physics on GitHub ↗ (opens in a new tab)