viva-mgen
🔬 Explore the interactive read-only dashboard →
Every composite, study, and result — browsable in your browser, no install required. Published from
mainby thepublish-dashboardworkflow (allow a few minutes after the first push).
A viva-native (process-bigraph) clean-room reproduction of the Karr et al.
2012 Cell whole-cell model of Mycoplasma genitalium
(A Whole-Cell Computational Model Predicts Phenotype from Genotype).
Each cellular submodel is re-expressed as a native process-bigraph Process,
composed through shared cell-variable stores, and exercised by a showcase
investigation with one study per figure of the paper.
This is a reproduction, not the original. Every process class is named
*ReproductionProcessand is a from-scratch Python reimplementation of the corresponding Karr 2012 submodel — it is not the original MATLAB code and does not bridge to it. Fidelity is honest and per-study (see below): some figures are reproduced at full fidelity, others at reduced/representative fidelity, and each study says which.
What it reproduces
The original whole-cell model integrates 28 submodels over 16 cell variables,
requires a MySQL knowledge base, and runs ~8–10 h per cell on a cluster. This reproduction now implements all ~28 submodels as reduced-but-genuine
process-bigraph Processes (29 *ReproductionProcess classes across
viva_mgen/processes/: metabolism, mass/growth, transcription, translation,
RNA/protein decay, replication, replication-initiation, DNA supercoiling/
condensation/segregation/damage/repair, transcriptional regulation, RNA
processing/modification, tRNA aminoacylation, protein processing I/II,
translocation, folding, modification, activation, complexation, ribosome &
terminal-organelle assembly, FtsZ polymerization, cytokinesis, host
interaction). The headline studies exercise this core:
| Submodel (reproduction) | Reproduces | Fidelity |
|---|---|---|
MetabolismFbaReproductionProcess |
FBA metabolism over the published Suthers 2009 iPS189 network | full (the real reconstruction the WCM used) |
MassGrowthReproductionProcess |
mass accumulation, dry-mass composition, ~9 h doubling | full (fitted constants) |
TranscriptionReproductionProcess |
stochastic mRNA synthesis | reduced (representative gene panel) |
TranslationReproductionProcess |
stochastic protein synthesis | reduced |
RnaDecayReproductionProcess / ProteinDecayReproductionProcess |
Poisson decay | reduced |
ReplicationReproductionProcess |
dNTP-buffered three-phase cell cycle | reduced mechanism (genuine dynamics) |
Data provenance
- Metabolic network — Suthers et al. 2009 M. genitalium reconstruction
iPS189 (BioModels
MODEL1507180052,datasets/ips189.sbml.xml; 351 reactions, 126 genes), the model the WCM's metabolism submodel was built on. - Gene list + reference essentiality — extracted from the Karr 2012 repo
(
datasets/genes.csv, 525 genes). - Fitted constants — mass fractions, cell-cycle length (32400 s ≈ 9 h),
maintenance and exchange bounds, taken verbatim from the repo's
parameters.json(viva_mgen/constants.py).
The original knowledge base's per-species / kinetic tables are locked inside undecodable MATLAB MCOS objects; the iPS189 network and the paper stand in for those.
The investigation: one study per figure
workspace/investigations/mgen/ binds seven studies, one per figure:
| Study | Figure | What it shows |
|---|---|---|
fig1-architecture |
Fig 1 | the integrated cell as composed pbg processes over shared stores |
fig2-growth |
Fig 2 | ~9 h doubling, dry-mass composition, growth curve |
fig3-expression |
Fig 3 | bursty low-copy mRNA, accumulating protein |
fig4-cell-cycle |
Fig 4 | emergent inverse initiation↔replication duration control |
fig5-energy |
Fig 5 | ATP/GTP production and expression energy budget |
fig6-gene-essentiality |
Fig 6 | in-silico single-gene KO vs reference essentiality |
fig7-kinetic-parameters |
Fig 7 | growth vs kinetic-parameter (kcat proxy) sweeps |
The workspace's investigations:
| Investigation | Research question |
|---|---|
| viva-Mgen: reproducing the Karr 2012 M. genitalium whole-cell model, one study per figure (running) | Can the core cellular processes of the Karr et al. 2012 Mycoplasma genitalium whole-cell model be re-expressed as native process-bigraph Processes — composed through shared cell-variable stores — and… |
| Structural model of M. genitalium — reproducing Maritan 2022 with viva-parsimony (running) | Can the Maritan et al. 2022 3D whole-cell structural model of Mycoplasma genitalium be reproduced with viva-parsimony (the parsimony cellPACK-style engine) in place of CellPACK — packing the same mol… |
Installation
# development (editable)
uv venv .venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest
Once installed, processes register via viva_mgen.core.build_core().
Quick start
from process_bigraph import Composite, gather_emitter_results
from viva_mgen.core import build_core
from viva_mgen.composites import fig2_growth
core = build_core()
sim = Composite({"state": fig2_growth(core)}, core=core)
sim.run(600.0)
print(gather_emitter_results(sim)[("emitter",)][-1])
Run a study locally:
python workspace/studies/fig2-growth/sims/run.py
API reference
| Class | Ports (in → out) |
|---|---|
MetabolismFbaReproductionProcess |
nutrient_scale → growth_rate, growth_fraction, atp_production, gtp_production, feasible |
MassGrowthReproductionProcess |
growth_fraction, mass → mass, mass_fractions, volume, division |
TranscriptionReproductionProcess |
ntp, rna_pol → rna_counts, ntp |
TranslationReproductionProcess |
rna_counts, gtp → protein_counts, gtp |
RnaDecayReproductionProcess |
rna_counts → rna_counts |
ProteinDecayReproductionProcess |
protein_counts → protein_counts |
ReplicationReproductionProcess |
dntp_synthesis_scale → replication phase/fraction/dNTP/durations |
Limitations
- Reduced core, not the full 28-submodel model: chromosome occupancy (Fig 3 original), 128-cell populations (Fig 3/4/5 distributions), and the full 3,011-strain deletion scan (Fig 6/7) are represented at reduced fidelity — each study states its scope.
- Expression uses a representative gene panel, not all ~480 genes.
- Essentiality (Fig 6) is computed for the ~125 metabolic genes iPS189 covers (the paper notes metabolic genes are the most debilitating).
License
MIT. The original whole-cell model and iPS189 are likewise MIT / CC-licensed; see their upstreams.
Metadata
Release files for viva-mgen 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viva_mgen-0.1.0.tar.gz | 25.7 MB | With provenance | Details for viva_mgen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viva_mgen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for viva_mgen-0.1.0-py3-none-any.whl |
Total release size: 26.0 MB
Release files / viva_mgen-0.1.0.tar.gz
| Download URL | viva_mgen-0.1.0.tar.gz |
|---|---|
| Size | 25.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fcfc5b844901c5a981d2a901b5a4f31d8def1433be9f186e722a93701a4cff3
|
|
BLAKE2b-256 checksum How to use checksums |
0de778f4e115b0b2513a0de7051ce488ee611ec5bf0d63193688fd4f6b698985
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / viva_mgen-0.1.0-py3-none-any.whl
| Download URL | viva_mgen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 306.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b75fb39882b568ef909c14e078602dd933314663f38964a9c81a399536a3b11
|
|
BLAKE2b-256 checksum How to use checksums |
acb3bf03c97582887f8ed9a4aa5b47bfcfa22e38dc2401577e1257d758a3c78e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for viva-mgen 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for viva_mgen-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.