Executable

viva-tumor-Vivarium-2

A process-bigraph port of the multiscale agent-based tumor microenvironment model, including tumor, T-cell, and dendritic-cell biology, 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
Biological processes
Molecular entities
Not recorded
Proteins / genes
Not recorded

The data this model consumes and produces when executed.

Parameters

NameDefaultUnitMeaning
n_tumors60molecule countNumber of tumor cells
n_tcells6molecule countNumber of T cells
pd1_positive_frac0.25Not recordedStarting fraction of PD1-positive T cells
tumor_pdl1n_frac0.9Not recordedStarting fraction of PDL1n tumor cells
bounds[400,400]micrometerTwo-dimensional chamber bounds
n_bins[40,40]Not recordedNumber of bins in each field dimension
depth15micrometerField depth
interval60secondSimulation tick interval
IFNg_threshold15000molecule countInternalized IFNg threshold for PDL1n to PDL1p conversion
activation_time21600secondTCR activation time
PD1n_IFNg_production4.5nanogram per milliliterIFNg production rate for active T cells

Initial conditions

NameValueUnit
cellstumor, T-cell, and optional dendritic-cell agentsNot recorded
fields.IFNgzero 2D arraynanogram per milliliter

Outputs

NameQuantityUnitFormat
population_timeseriespopulation countNot recordedJSON
IFNg_fieldconcentrationnanogram per milliliterNot recorded
cell_trajectoriesspatial specificationmicrometerHTML
study_resultsStudy verdicts, summaries, and persisted run metadataNot recordedJSON

Experiment protocol

Vivarium/process-bigraph simulations advance a two-dimensional agent-based composite in 60-second ticks; studies compare no-T, 25% PD1+, and 75% PD1+ conditions and replicate seeds.

Timestep
60 {'value': 'second', 'iri': 'http://purl.obolibrary.org/obo/UO_0000010', 'ontology_label': 'second', 'ontology': 'uo', 'mapping_confidence': 'high'}
Duration
600 {'value': 'second', 'iri': 'http://purl.obolibrary.org/obo/UO_0000010', 'ontology_label': 'second', 'ontology': 'uo', 'mapping_confidence': 'high'}
Observables
tumor populationT-cell populationPDL1p fractionPD1p fractionIFNg maximumdeathsdivisions

Runtime environment, dependencies, and compute requirements.

Language
Python >=3.11
Environment
native

Install the sibling viva-munk checkout before editable installation; studies write JSON, HTML, and visualization artifacts.

Compute requirements

GPU
Not required
Parallelism
single

Dependencies

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

Containers

  • docker · docker.io/mismplatform/envbuild@sha256:6d25d1034d04791169f3b5e4a2b4ff4304cb8968d20969548cb43ddc5020c09f · docker.io

Image approved · envbuild-agent · Oct 2026

Entry points

  • python scripts/persist_study_runs.py

    Persist one representative run per study

  • python scripts/scale_efficacy.py <N_TUMORS> <N_TCELLS> <STEPS> <BOUNDS> <NBINS> <NSEEDS>

    Run a larger-scale efficacy probe and write scalar observables

    N_TUMORS
    N_TCELLS
    STEPS
    BOUNDS
    NBINS
    NSEEDS
  • python scripts/regen_spatial_gifs.py <which>

    Regenerate spatial GIF/HTML figures

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

    Run the tumor microenvironment headline experiment

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

    Run the efficacy-at-scale study

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

    Run the phenotype-conversion study

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

    Run the T-cell exhaustion study

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

    Run the killing-assay cytotoxicity 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