Original paperSourceNo author review
Make your paper interactiveCreate

Text from the interactive explanation

CardamomOT: A mechanistic optimal transport-based framework for gene regulatory network inference, trajectory reconstruction and generative modeling

Yann Maugé, Elias Ventre

To read which genes are active in a single cell, sequencing has to break the cell open. So an experiment that follows stem cells for four days returns a stack of snapshots — and every snapshot holds different cells.

From photographs like these, could we still recover the hidden wiring that steers cells, and build a model that can, in the authors’ words, “simulate realistic single-cell datasets, predict the effects of unseen genetic perturbations, and generate mechanistically interpretable hypotheses about cell fate control”? That is the ambition behind CardamomOT .

Start with the real data: nine snapshots of mouse embryonic stem cells taken 0 to 96 hours after retinoic acid nudged them to differentiate. Press a time on the slider, or pick a cell and try to follow it.

Each dot is one real cell, measured once. Its position is a two-dimensional summary (principal components) of 41 genes. Measured counts: Semrau et al. 2017, Nature Communications 8:1096 (GEO GSE79578), 41-gene table distributed with the CardamomOT code.

What a stack of snapshots can — and cannot — tell you

Look across the slides and the population clearly moves. Cells start in a tight cluster of pluripotent cells (able to become many cell types) and spread into new identities — neuroectoderm (the start of the nervous system), extraembryonic endoderm and others.

But try the “follow a cell” button above. The data cannot say which 24-hour cell became which 36-hour cell, or which gene pushed which. Averages tell you that things change, not who became whom or what caused what.

Two missing pieces

Sequencing destroys each cell, so time courses are treated as independent samples of one shared process. The standard workaround is optimal transport (OT): pair up cells between neighbouring snapshots so that the total “cost” of moving is as small as possible. Most OT tools measure cost as straight-line distance between mRNA profiles — which amounts to assuming cells wander randomly (Brownian motion). That says nothing about how genes control one another.

Genes regulate each other mostly through proteins such as transcription factors, which these experiments do not measure. What gets counted is mRNA, the short-lived working copy of a gene. mRNA is made in noisy bursts, and its relationship to protein levels is loose, so mRNA changes are hard to read as cause and effect.

CardamomOT attacks both gaps at once by putting a physical model of gene expression at the centre of the transport problem. To see why that helps, zoom into a single cell.

Inside one cell: a gene that fires in bursts

The model behind CardamomOT gives every gene a promoter — a switch in front of the gene — that flips at random between OFF and ON. While ON, the gene pumps out mRNA; mRNA is translated into protein; both decay. In most genes the ON spells are brief and rare, so mRNA arrives in bursts (“transcriptional bursting”), while protein, which lasts much longer, smooths the bursts into a slowly drifting level.

Rates: mRNA half-life 9 h and protein half-life 46 h are the default priors the paper uses; protein half-lives in mammalian cells typically range 40–100 h (roughly 10–200 h in extreme cases). An ON spell lasts about 15 minutes here and makes about 10 mRNA molecules on average — illustrative values.

This is the crux. Sequencing reads the spiky line. Regulation runs on the smooth line — and the smooth line carries memory: a protein level today reflects bursts from many hours ago.

Many cells, one instant

Across many cells, mRNA counts follow a known shape, the Negative Binomial distribution: its average is burst frequency × burst size, and its spread (Fano factor 1 + burst size) is set by burst size. When some cells’ promoters fire often and others rarely, a snapshot splits into two humps.

CardamomOT’s first step fits such a two-part mixture for every gene and timepoint and gives each cell a provisional label per gene — low or high promoter activity — which the paper calls a basin . On simulated data with known answers, these labels were correct for 85–93% of cells on average.

One wire: retinoic acid → Dnmt3a ⊣ Zfp42

In a gene network, a regulator’s protein changes how often its target’s promoter fires. CardamomOT writes this as an S-shaped switch (a sigmoid):

Each weight θ is one wire: positive activates, negative represses, zero means no link. Pj is the regulator’s protein level and βi the gene’s own baseline.

In the network CardamomOT inferred from the stem-cell snapshots above, retinoic acid switches on Dnmt3a — an enzyme that adds methyl marks to DNA, generally associated with silencing genes — and Dnmt3a’s predicted targets are mostly repressed, including the pluripotency gene Zfp42 . Here is that chain as a three-node miniature. Change its one wire and see what snapshots would look like.

Perturbations follow the paper’s recipe: knockout fixes the protein at 0 and the baseline β at −1000; overexpression fixes it at 1 and β at +1000.

Compare shapes, not numbers. The miniature has three nodes and hand-set rates; the paper’s model has 41 genes plus the stimulus and was fitted to the data. A matching trend is consistent with the inferred link but does not prove it: in the inferred network retinoic acid also represses other pluripotency genes directly (for example Esrrb, Klf2 and Klf4), and Zfp42 has other inputs. The link was inferred from this dataset and this panel of genes — it is not a universal interaction. In the measured cells Dnmt3a peaks near 36 h and then falls; the miniature’s Dnmt3a only rises.

Hide a wire — can snapshots reveal it?

Now swap roles. The page hides a Dnmt3a → Zfp42 wire you cannot see, simulates the cells, and destroys them as it takes nine snapshots — the same situation as a real experiment. A miniature version of CardamomOT’s loop then tries to recover the wire from the snapshots alone.

Rebuild hidden proteins and link the snapshots. For each cell in one snapshot and each candidate in the next, compute the protein path that would join them if each gene switched at most once in between. The cost of a pairing is how badly the current wiring would predict the candidate’s promoter activity at the end of that path. Optimal transport spreads probability over the cheapest pairings, and a likely descendant is drawn for each cell.

Re-estimate the wiring. With protein paths in hand, fit the weights θ so that predicted burst frequencies match each cell’s label — a regression with a penalty that favours few links.

Relabel and repeat. The full method also refines each cell’s basin labels with the new wiring, and repeats until nothing changes (typically 20–40 rounds).

What do you think the hidden wire is?

Reading the threads. Each cyan thread strings together different cells, one per snapshot, drawn from the transport plan. It is a plausible history, not a recording of one cell. The cyan curves above are the protein levels the loop reconstructs along those threads; after the reveal, thin white curves show the simulation’s true hidden proteins for comparison.

Two genes plus a stimulus, instead of dozens of genes (41 in the stem-cell analysis).

Each gene is assumed to switch exactly halfway between snapshots; the paper searches for the switching time of every gene and cell.

Basin labels are a simple count threshold and are never refined (the paper’s Step 3 is skipped).

The rates are known exactly, and there is no final recalibration of protein degradation rates with a differentiable ODE solver.

In this miniature the sign of the wire is recovered reliably; its strength is underestimated.

What the paper found

The authors tested CardamomOT where the truth is known — simulated cells generated with the same kind of mechanistic model (the HARISSA simulator) — and then on three real experiments, where it can only be checked indirectly.

1 · Recovering networks when the answer is known

Five benchmark network shapes: a 4-gene and an 8-gene feed-forward network (FN4, FN8), an 8-gene branching network (BN8), a 5-gene cascade (CN5) and tree networks of 5 to 100 genes, each simulated 10 times. Accuracy is scored by AUPR , a 0-to-1 score of how well a method ranks true links above false ones; it stays honest when most gene pairs are unconnected.

On every benchmark network CardamomOT scored higher AUPR than all competing methods — its predecessor CARDAMOM, Reference Fitting, GENIE3 and SINCERITIES (and PIDC and plain correlation for links without direction). The gap was largest for the harder networks (FN8, BN8 and trees above 10 genes). It also recovers the sign and the direction of each link.

Stopping after the first round lowered accuracy — substantially for the branching BN8 network. The loss settled within 20–25 rounds, and the method reached similar networks whether it started from an OT-based or a random pairing.

Burst size was recovered as 0.017–0.019 against a true 0.02 (in the paper’s inverse-burst-size units); cells were placed in the right basin 85–93% of the time; the maximal burst frequency was underestimated by about 20–30%, a consequence of how it is estimated.

< 1 min for 100 genes and 1,000 cells (faster than GENIE3); about an hour for ~100 genes and tens of thousands of cells.

2 · Flow arrows: why proteins beat mRNA

From the inferred model one can draw “velocity” arrows — where each cell is heading. On simulated data the authors compared these arrows with the true ones using cosine similarity (1 = pointing the same way, 0 = unrelated).

Reference Fitting, which assumes linear dynamics in mRNA space, produced mRNA arrows with similarity close to zero — essentially a uniform drift, because bursting swamps the signal. CardamomOT exceeded 0.8. In protein space, Reference Fitting improved to about 0.25–0.4, and CardamomOT exceeded 0.75. Proteins change slowly and smoothly, which makes them the better place to follow cells.

Bars show the ranges as stated in the text (four benchmark networks), not exact values.

3 · Stress tests

4 · Three real experiments

Mouse embryonic stem cells with retinoic acid (Semrau et al.): 9 timepoints, ∼1,300 cells. Top regulators included Hoxb2, Dnmt3a, Lamb1 and Col4a2, in line with the original study.

Human cells ordered by pseudotime (Kameneva et al.): 6 pseudo-timepoints, ∼1,800 cells. CHGA ranked among the dominant regulators, consistent with earlier analysis.

Mouse embryonic fibroblasts (connective-tissue cells) reprogrammed into induced pluripotent stem cells (iPSCs; Schiebinger et al.): 35 timepoints, ∼250,000 cells.

With no true network to compare against, the authors asked whether the calibrated model could regenerate the data. Simulated cells overlapped the real ones in low-dimensional maps, reproduced cell-type proportions over time and the dynamics of key regulators, and preserved the gene–gene correlation pattern captured by the fitted statistical model (correlation of gene-pair correlations above 0.95). Rare or intermediate cell types — such as “Intermediate” cells in the sympathoadrenal data and trophoblasts in reprogramming — were captured less well. Networks from five independent runs were similar but not identical (mean cosine similarity 0.777, 0.859 and 0.798 for the three datasets).

5 · The payoff: an in-silico perturbation lab

Because the calibrated model is generative, one can knock a gene out or overexpress it — exactly as in Chapter 3 — and re-simulate the whole time course. Choose a perturbation the paper ran:

Where it stops

With n genes a fully connected network has n² possible wires, and there are 2n conceivable combinations of low/high basins — though real cells occupy only a small fraction of them.

Too many possible wires. Computing time is not the bottleneck; information is. The number of weights grows with the square of the number of genes, and beyond a certain network size snapshots no longer hold enough information to pin them all down. Without prior knowledge, the authors recommend staying around 100 genes or fewer; curated interaction databases (such as OmniPath) can shrink the search.

The gene list is itself a prior. Only included genes can be regulators, so the influence of a missing regulator gets redistributed among the genes that are there. In the sympathoadrenal data, housekeeping genes (RPL30, ATP5F1E) ranked among the top “regulators” — most likely because they are expressed coherently everywhere, not because they regulate.

Two modes per gene. Each gene is either low or high; subtle intermediate states and rare cell types are harder to represent, and the very strongest gene–gene correlations are slightly underestimated.

No births, no deaths, one switch at a time. The current version assumes cells neither divide nor die between snapshots, and that each gene switches at most once between consecutive timepoints — so snapshots need to be close enough together.

No guarantee of the best answer. The optimisation can settle on a good-but-not-best solution, and real-data networks vary from run to run; the authors suggest 3–5 random seeds for networks above 20 genes.

Best-case benchmarks. The simulated tests used the same kind of model the method assumes, and real-world validation so far rests on a small number of cases.

A taste for self-activation. A gene that toggles between two levels is most simply explained by switching itself on; the model often infers such loops. They may be real biology — users can also forbid them.

Back to the stack of strangers

The slides at the top of this page will never contain a single tracked cell. What CardamomOT shows is that, with a physical model of bursting genes and slow proteins, those strangers can still be strung into plausible histories — and that the wiring which makes those histories consistent can be recovered well on simulated data and turned into a model you can run forward, perturb and question.

That model already reproduced the real time courses it learned from, and from reprogramming snapshots alone it predicted that more Obox6 or Zfp42 would yield more stem-cell-like cells, as earlier experiments had found. Other predictions — such as the combined CHGA/STMN2 effect — are hypotheses waiting for a lab.

The authors expect the approach to be most powerful where prior knowledge is available — measured protein lifetimes, known regulatory modules, curated networks — and point to next steps: accounting for cells that divide or die, and adding other single-cell layers such as chromatin accessibility and DNA methylation.

The equations, briefly

mRNA Mi jumps by an exponentially distributed burst (mean s0,i/koff,i) at rate kon,i(P) and otherwise decays; protein follows it smoothly:

This is a piecewise-deterministic Markov process. Given proteins, mRNA counts are approximately Negative Binomial with shape kon/d0 and rate koff/s0, so the mean is burst frequency × burst size and the Fano factor is 1 + s0/koff.

For cells c at time tj and candidates c′ at tj+1, the cost is the cross-entropy between the burst frequencies the current network predicts at the end of the interpolated protein path and the candidate’s basin mode:

and the coupling minimises Σ C π + ε · KL(π ‖ product of the two snapshots), subject to both snapshots’ cell distributions — an entropically regularised OT problem solved with Sinkhorn iterations.

With normalised basin modes mc and mc′, a switching fraction α of the interval Δt, and protein decay rate d1:

In the paper, observed mRNA counts serve as cell-specific proxies for the modes, and α is re-estimated for every cell and gene at each round.

θ0 is an optional prior network; the ℓ1 penalty favours sparse networks. Afterwards, protein degradation rates are recalibrated by fitting the protein ODE to the reconstructed trajectories, and mRNA degradation rates by matching the observed noise.

Read the paper

Maugé Y, Ventre E (2026). CardamomOT: A mechanistic optimal transport-based framework for gene regulatory network inference, trajectory reconstruction and generative modeling. PLOS Computational Biology 22(10): e1014838. https://doi.org/10.1371/journal.pcbi.1014838 — open access under the Creative Commons Attribution (CC BY 4.0) license.

Measured cells (hero, Chapters 1 and 3): Semrau S, Goldmann JE, Soumillon M, Mikkelsen TS, Jaenisch R, van Oudenaarden A (2017). Dynamics of lineage commitment revealed by single-cell transcriptomics of differentiating embryonic stem cells. Nature Communications 8:1096, doi:10.1038/s41467-017-01076-4; data GEO GSE79578. We used the 41-gene count table (2,449 cells, 9 timepoints, with its cell-type labels) distributed in the CardamomOT code repository, github.com/eliasventre/CardamomOT (MIT license per its package metadata). The two-dimensional layout was computed for this page.

Reprogramming experiments referred to: Schiebinger G et al. (2019). Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell 176:928–943, doi:10.1016/j.cell.2019.01.006. Sympathoadrenal data: Kameneva P et al. (2021), Nature Genetics 53:694–706.

Simulations on this page (Chapters 2–4) are illustrative: they use the paper’s model equations and default half-life priors (mRNA 9 h, protein 46 h) with hand-set rates, and are computed live in your browser. They are not the paper’s fitted models.

All diagrams, charts and animations are original drawings for this page; no figures from the paper were reproduced. Numbers in Chapter 5 are those stated in the paper’s text.

Topics in this iPaper

Biology
inferring gene regulatory networks (GRNs) governing cellular processes such as differentiation and reprogramming

Abstract, page 1

Computer science
Iterative inference of GRN and protein trajectories

Section 2.2.2 and Algorithm 1, pages 8-9

Mathematics
This model belongs to the general class of Piecewise Deterministic Markov Processes (PDMP).

Section 2.1, page 6

gene regulatory network inference
automated inference of GRNs from high-throughput data has become a central task in systems biology

Section 1 Introduction, page 3

optimal transport
within a mechanistic optimal transport framework

Abstract, page 1

single cell rna sequencing
leverage temporal single-cell RNA sequencing data to jointly infer gene regulatory networks (GRNs) and cellular trajectories

Author summary, page 2

transcriptional bursting
incorporating key processes such as transcriptional bursting, protein translation, and degradation

Author summary, page 2

trajectory inference
CardamomOT accurately reconstructs hidden protein vectors, cellular trajectories and velocity fields of simulated data

Section 3.4, page 18

cell reprogramming
OV of Obox6 and Zfp42, two TFs not typically included in standard reprogramming cocktails, enhances the efficiency of MEF-to-iPSC conversion

Section 3.6, page 23