nosoi: a stochastic agent-based transmission chain simulation framework in R
Abstract
The transmission process of an infectious agent creates a connected chain of hosts linked by transmission events, known as a transmission chain. Reconstructing transmission chains remains a challenging endeavor, except in rare cases characterized by intense surveillance and epidemiological inquiry. Inference frameworks attempt to estimate or approximate these transmission chains but the accuracy and validity of such methods generally lack formal assessment on datasets for which the actual transmission chain was observed. We here introduce nosoi, an open-source R package that offers a complete, tunable, and expandable agent-based framework to simulate transmission chains under a wide range of epidemiological scenarios for single-host and dual-host epidemics. nosoi is accessible through GitHub and CRAN, and is accompanied by extensive documentation, providing help and practical examples to assist users in setting up their own simulations. Once infected, each host or agent can undergo a series of events during each time step, such as moving (between locations) or transmitting the infection, all of these being driven by user-specified rules or data, such as travel patterns between locations. nosoi is able to generate a multitude of epidemic scenarios, that can - for example - be used to validate a wide range of reconstruction methods, including epidemic modeling and phylodynamic analyses. nosoi also offers a comprehensive framework to leverage empirically acquired data, allowing the user to explore how variations in parameters can affect epidemic potential. Aside from research questions, nosoi can provide lecturers with a complete teaching tool to offer students a handson exploration of the dynamics of epidemiological processes and the factors that impact it. Because the package does not rely on mathematical formalism but uses a more intuitive algorithmic approach, even extensive changes of the entire model can be easily and quickly implemented.
02 /Specification & Classification
Click any tag to browse matching papers- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- FAVITES: simultaneous simulation of transmission networks, phylogenetic trees, and sequences
Niema Moshiri, Manon Ragonnet‐Cronin, … Siavash Mirarab·BioinformaticsPeer-reviewed·Nov 1, 2018
- A Bayesian inference method to estimate transmission trees with multiple introductions; applied to SARS-CoV-2 in Dutch mink farms.
B. R. Van der Roest, M. Bootsma, … M. Kretzschmar·bioRxiv·Feb 7, 2023
- Genomic infectious disease epidemiology in partially sampled and ongoing outbreaks
Xavier Didelot, Christophe Fraser, … Caroline Colijn·bioRxiv·Jul 22, 2016
- STbayes: An R package for creating, fitting and understanding Bayesian models of social transmission
Michael Chimento, William Hoppitt·Methods in Ecology and EvolutionPeer-reviewed·Dec 18, 2025
- From Movement to Spread: Generating Livestock Contact Networks that Preserve Infection Dynamics
Tianjian Qin, Büşra Atamer Balkan, … Quirine A. ten Bosch·bioRxiv·Sep 18, 2026
- SOPHIE: viral outbreak investigation and transmission history reconstruction in a joint phylogenetic and network theory framework
Pavel Skums, Fatemeh Mohebbi, … Yury E Khudyakov·Cell SystemsPeer-reviewed·Oct 1, 2022