Tutorials

This section contains step-by-step tutorials and examples for using TBsim. These tutorials range from basic introductions to advanced modeling scenarios.

Getting Started

Core Modeling

Advanced Topics

Tutorial Descriptions

basic_tbrun.rst

Basic introduction to TBsim concepts and workflow

tuberculosis_sim.ipynb

Comprehensive TB simulation tutorial with step-by-step explanations

tb_interventions_tutorial.ipynb

Detailed guide to implementing and analyzing TB interventions

run_tbhiv_scens.ipynb

TB-HIV co-infection modeling scenarios and analysis

tbhiv_comorbidity.ipynb

Advanced comorbidity modeling between TB and HIV

comprehensive_analyzer_plots_example.ipynb

Using TBsim’s built-in analyzers and plotting tools

Running Tutorials

All tutorials can be run:

  1. Online: Using the Binder environment (recommended for beginners)

  2. Locally: After installing TBsim and its dependencies

  3. In Jupyter: Open the .ipynb files in Jupyter Notebook or JupyterLab

For the best experience, we recommend starting with the basic tutorials and progressing to more advanced topics as you become familiar with the framework.