Executable

viva-tumor-tcell

A multiscale agent-based tumor microenvironment model with tumor, T-cell, and dendritic-cell processes, diffusing IFNg and tumor-debris fields, cell-cell neighbor exchange, and phenotype conversion/exhaustion dynamics.

How this model is classified mathematically and dynamically.

Formalism
Determinism
Stochastic
Time dynamics
Discrete
Spatial
2D
Multiscale
Yes

Organisms, entities and processes this model represents.

Organisms
Not recorded
Infectious agents
Not recorded
Health conditions
Not recorded
Biological processes
Proteins / genes
Not recorded

The data this model consumes and produces when executed.

Parameters

NameDefaultUnitMeaning
n_tumors60dimensionlesstumor cell count
n_tcells6dimensionlessT-cell count
pd1_positive_frac0.25dimensionlessinitial fraction
tumor_pdl1n_frac0.9dimensionlessinitial fraction
seed1dimensionlessRandom-number-generator seed.

Initial conditions

NameValueUnit
IFNgzero 40 x 40 fieldnanogram per milliliter
initial_cell_population60 tumor cells and 6 T cells by defaultdimensionless

Outputs

NameQuantityUnitFormat
snapshot_time_seriescell and field statesecondJSON
study_figuresPlotNot recordedHTML
scale_efficacy_resultstime seriesNot recordedJSON

Experiment protocol

Vivarium/process-bigraph composites advance in fixed 60-second ticks; canonical headline runs use 300 steps and study-specific runs use replicate seeds.

Timestep
60 second
Duration
18000 second
Observables
tumor_countpdl1p_fractionpd1p_fractionifng_maxpopulation_countsdeathsdivisions

Runtime environment, dependencies, and compute requirements.

Language
Python >=3.11
Environment
pip

Vivarium/process-bigraph composites are exposed as Python APIs; the six self-launching modules above were enumerated structurally. The canonical composite API is documented in README.md:47-55.

Compute requirements

GPU
Not required
Parallelism
single

Dependencies

runtime
  • bigraph-schema >=0.0.60
  • process-bigraph >=1.8.5
  • viva-munk
  • numpy
  • scipy
  • plotly
optional
  • pytest
  • matplotlib

Containers

  • docker · docker.io/mismplatform/envbuild@sha256:5a02cc764b89a5692db49b85a8618b1d5e618fc12962d0ed195da17eb65d2e3c · docker.io

Image approved · envbuild-agent · Oct 2026

Entry points

  • python scripts/scale_efficacy.py

    Run the larger-scale efficacy probe and write scalar time series.

    n_tumors
    n_tcells
    steps
    bounds
    nbins
    nseeds
  • python scripts/regen_spatial_gifs.py

    Regenerate study spatial visualizations.

    which
  • python scripts/persist_study_runs.py

    Persist representative study runs into study databases.

  • python studies/tumor-microenvironment/sims/run.py

    Run the headline tumor microenvironment experiment and figure suite.

  • python studies/efficacy-at-scale/sims/run.py

    Run the efficacy-at-scale study.

  • python studies/killing-assay-cytotoxicity/sims/run.py

    Run the killing-assay cytotoxicity study.

  • python studies/phenotype-conversion/sims/run.py

    Run the IFNg-driven phenotype-conversion study.

  • python studies/tcell-exhaustion/sims/run.py

    Run the T-cell exhaustion study.

Tests

pytestpytest -q

Artifacts stored with this model.

  • 1.1 KB
  • 5.3 KB
  • 1.7 KB
  • 9.5 KB
  • 654 B

Identifiers and integrity.

Metadata review
Approved · 1da614bf-946a-4400-a0be-4fd0f1d00f74 · Oct 2026
Contacts
External IDs
  • url:https://github.com/vivarium-collective/viva-tumor-tcell
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