Non-executable

Vivarium-chemotaxis

Eran Agmon + 1 other
v0.0.1MITOct 2026

Citation: A Multi-Scale Approach to Modeling E. coli Chemotaxis

The repository implements Vivarium processes and composites for Escherichia coli chemotaxis, including chemoreceptor activity, flagella activity, proton motive force, and integrated metabolism, transport, transcription, translation, complexation, degradation, and division processes.

How this model is classified mathematically and dynamically.

Determinism
Stochastic
Time dynamics
Discrete
Spatial
Compartmental
Multiscale
Yes

Organisms, entities and processes this model represents.

Infectious agents
Not recorded
Health conditions
Not recorded
Molecular entities
Not recorded
Proteins / genes
Not recorded

The data this model consumes and produces when executed.

Parameters

NameDefaultUnitMeaning
initial_ligand5millimolarInitial ligand concentration used to initialize the chemoreceptor cluster.
n_Tar6Not recordedNumber of Tar receptors in a chemoreceptor cluster.
n_Tsr12Not recordedNumber of Tsr receptors in a chemoreceptor cluster.
k_meth0.0625per secondCatalytic rate of receptor methylation.
k_demeth0.0714per secondCatalytic rate of receptor demethylation.
time_step0.01secondVivarium process integration timestep.
n_flagella4Not recordedExpected or initial number of flagella.
expected_pmf-140Not recordedExpected proton motive force used to scale motile thrust.

Initial conditions

NameValueUnit
chemoreceptor_internal_staten_methyl=2.0; chemoreceptor_activity=1/3; CheR=0.00016 mM; CheB=0.00028 mM; CheB_P=0.0Not recorded
flagella_motor_internal_stateCheY=2.59 uM; CheY_P=2.59 uM; CheZ=1.0 uM; CheA=1.0 uM; chemoreceptor_activity=1/3; motile_state=1Not recorded

Data inputs

NameFormatRequiredPurpose
flagella_expression_metabolism.csvCSVOptionalReference data used by the flagella expression/metabolism composite.
transport_metabolism.csvCSVOptionalReference data used by the transport/metabolism composite.

Outputs

NameQuantityUnitFormat
Vivarium timeseriesconcentrationNot recordedNot recorded
simulation plotsPNG or other plot files generated by process, composite, and experiment plotting functions.Not recordedNot recorded

Experiment protocol

Typical runs use Vivarium fixed-step simulation; the master composite uses a Brownian ligand timeline and emits a timeseries.

Timestep
0.01 second
Duration
500 second
Observables
chemoreceptor_activityn_methylCheY_Pmotile_statethrusttorque

Runtime environment, dependencies, and compute requirements.

Language
Python >=3.6,<3.9
Environment
pip

Vivarium legacy Generator composites use fixed-step simulation helpers. MongoDB is required for some larger experiments using database emitters.

Compute requirements

GPU
Not required
Parallelism
single

Dependencies

runtime
  • vivarium-cell ==0.0.23
  • vivarium-core ==0.0.34
  • pymunk ==5.6.0

Containers

  • docker · mismplatform/vivarium-chemotaxis:v0.0.2

Entry points

  • python chemotaxis/composites/chemotaxis_flagella.py

    Run the flagella chemotaxis composite in variable or expression mode.

    --variable
    Run variable flagella mode; mutually exclusive in intent with --expression.
    --expression
    Run expression mode; mutually exclusive in intent with --variable.
    --flagella
    Number of flagella.
  • python chemotaxis/composites/chemotaxis_master.py

    Run the complete chemotaxis master composite or save its topology.

    --topology
    Save the compartment topology instead of running the simulation.
  • python chemotaxis/composites/chemotaxis_minimal.py

    Run the minimal chemotaxis composite.

  • python chemotaxis/composites/flagella_expression.py

    Run flagella expression, with an optional metabolism mode.

    --metabolism
    Run expression metabolism mode.
    --expression
    Expression mode flag.
  • python chemotaxis/composites/transport_metabolism.py

    Run the transport and metabolism composite.

    --shift
    Run the shifted transport/metabolism condition.
  • python chemotaxis/experiments/paper_experiments.py <experiment_id>

    Run one of the paper experiments selected by figure identifier.

    experiment_id
    Experiment identifier corresponding to a paper figure.
  • python chemotaxis/processes/chemoreceptor_cluster.py

    Run the chemoreceptor cluster process pulse and exponential-random analyses.

  • python chemotaxis/processes/coarse_motor.py

    Run the coarse motor process analysis.

  • python chemotaxis/processes/flagella_motor.py

    Run the flagella motor process with variable flagella.

  • python chemotaxis/processes/membrane_potential.py

    Run the membrane potential process analysis.

Tests

pytestpytest

Artifacts stored with this model.

  • 1.1 KB
  • 170 B
  • 3.0 KB
  • 1.1 KB
  • 5 B
  • 855 B

Identifiers and integrity.

Metadata review
Approved · 1da614bf-946a-4400-a0be-4fd0f1d00f74 · Oct 2026
Contacts
External IDs
  • url:https://github.com/vivarium-collective/vivarium-chemotaxis
MISM — Multiscale Immune Systems Modeling

Multiscale Model Portal

Research reported on this website is supported by the National Institute of Allergy and Infectious Diseases (NIAID) of the National Institutes of Health under award number U54AI191253. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

© 2026 Multiscale Immune Systems Modeling. All rights reserved.

Privacy Policy