Executable

viva-tumor-tcell

A multiscale agent-based model of the tumor microenvironment with tumor cells, T cells, dendritic cells, diffusing IFNg and tumor-debris fields, and cell-cell neighbor exchange.

How this model is classified mathematically and dynamically.

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
Molecular entities
Not recorded
Proteins / genes
Not recorded

The data this model consumes and produces when executed.

Parameters

NameDefaultUnitMeaning
n_tumors60dimensionlesscell count
n_tcells6dimensionlesscell count
pd1_positive_frac0.25dimensionlessFraction of T cells starting PD1+; headline conditions use 0.25 and 0.75
tumor_pdl1n_frac0.9dimensionlessFraction of tumors starting PDL1n
bounds[400,400]micrometerTwo-dimensional chamber bounds
n_bins[40,40]dimensionlessNumber of bins in the 2D field grid
depth15micrometerField depth
seed1dimensionlessRandom-number-generator seed
timestep60secondComposite tick interval
IFNg_threshold15000dimensionlessconcentration

Initial conditions

NameValueUnit
cellsinitialized tumor, T-cell, and optional dendritic-cell agentsNot recorded
fields.IFNgzero-valued 2D gridnanogram per milliliter

Outputs

NameQuantityUnitFormat
population_timeseriescell countdimensionlessJSON
spatial_field_and_cell_snapshotsspatial specificationmicrometerHTML
scale_efficacy_resultscell countdimensionlessJSON

Experiment protocol

Canonical study runs fixed 60-second ticks for 600 ticks (approximately 10 hours); the larger-scale study uses 1500 ticks and 3 seeds according to its committed configuration.

Timestep
60 {'value': 'second', 'iri': 'http://purl.obolibrary.org/obo/UO_0000010', 'ontology_label': 'second', 'ontology': 'uo', 'mapping_confidence': 'high'}
Duration
10 {'value': 'hour', 'iri': None, 'ontology': 'uo', 'mapping_confidence': 'none'}
Observables
tumor population by stateT-cell population by statedeaths by typedivisionspeak IFNgspatial snapshots

Runtime environment, dependencies, and compute requirements.

Language
Python >=3.11
Environment
native

Vivarium-style process-bigraph composite with fixed 60-second ticks; the repository also exposes Python APIs through viva_tumor_tcell.run and composite generators.

Compute requirements

GPU
Not required
Parallelism
single
Typical runtime
30 minutes

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:e9f84fa002b916ec0f7d7306d79739315dbe586ff22351a2c79349c86a7c0664 · docker.io

Image approved · envbuild-agent · Oct 2026

Entry points

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

    Run the canonical headline tumor-microenvironment experiment and render its figure suite

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

    Render the larger-scale efficacy analysis from committed data

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

    Run the T-cell killing-assay cytotoxicity study

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

    Run the IFNg-driven tumor phenotype-conversion study

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

    Run the T-cell exhaustion study

  • python scripts/persist_study_runs.py

    Persist representative study runs

  • python scripts/regen_spatial_gifs.py <which>

    Regenerate spatial GIF visualizations

    which
    Study selector
  • python scripts/scale_efficacy.py

    Run the heavy larger-scale efficacy simulation and write committed results

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