HomeMolecular BiologyToggle Switch: Phase-Plane Molecule-Count Model

Toggle Switch: Phase-Plane Molecule-Count Model (2D)

Interactive 2D genetic toggle-switch simulator: a Gillespie/tau-leaping birth-death model of two mutually-repressing genes tracks real integer molecule counts on the (A,B) phase plane, with nullclines, fixed points and a Kramers-style escape-rate prediction derived directly from the discrete chemistry — not a flattened double-well landscape.

Molecular Biology2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-synthetic-gene-circuit-toggle-switch ↗ Open standalone

The 3D version of this simulator reduces the genetic toggle switch to a single order parameter rolling on a double-well landscape. This 2D counterpart instead simulates the real underlying chemistry directly: two mutually-repressing genes with true integer protein molecule counts, evolved cell-by-cell with a tau-leaping approximation of the Gillespie stochastic simulation algorithm on the actual birth-death chemical master equation. The phase plane shows every cell's live (A,B) molecule counts against the circuit's real nullclines and fixed points, and a Kramers/WKB escape-time estimate — re-derived for this discrete, shot-noise-driven model rather than reused from the continuous Langevin picture — is tracked live against the observed switching statistics as you tune molecule copy number, promoter strength and population size.

⚙ Under the hood

Interactive 2D genetic toggle-switch simulator: a Gillespie/tau-leaping birth-death model of two mutually-repressing genes tracks real integer molecule counts on the (A,B) phase plane, with nullclines, fixed points and a Kramers-style escape-rate prediction derived directly from the discrete chemistry — not a flattened double-well landscape.

synthetic biologygene circuitbistabilityGillespie algorithmstochastic chemistrysystems biology

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)