Tutorials

These tutorials will guide you through the main features of Typhoidsim. Each tutorial is interactive and includes executable code examples.

T1 - Getting started

A quick introduction to the Typhoidsim framework.

T2 - Building your model

How to assemble the main ingredients of a simulation.

T3 - Environment

Modeling the environmental reservoir and pathogen concentration.

T4 - Networks

Direct contact transmission between agents.

T5 - Multi-route transmission

Combining environmental and contact transmission routes.

T7 - Seasonality

Adding seasonal modulation to environmental transmission.

Interventions: vaccination

Implementing vaccination campaigns to reduce burden.

Interventions: chronic carriers

Detecting and treating chronic typhoid carriers.

T8 - Calibration

Calibrating a Typhoidsim model to data.

Note

You can download these tutorials as Jupyter notebooks to run them locally. Look for the download button at the top of each tutorial.

TipRunning tutorials locally

To run these tutorials locally:

  1. Clone the Typhoidsim repository
  2. Install Typhoidsim and its dependencies (pip install -e .)
  3. Navigate to the docs/tutorials directory
  4. Convert to Jupyter: ./convert_notebooks (or just open them directly if jupytext is installed)
  5. Launch Jupyter: jupyter lab