The Community Simulator: A Python package for microbial ecology
Abstract
Natural microbial communities contain hundreds to thousands of interacting species. For this reason, computational simulations are playing an increasingly important role in microbial ecology. In this manuscript, we present a new open-source, freely available Python package called Community Simulator for simulating microbial population dynamics in a reproducible, transparent and scalable way. The Community Simulator includes five major elements: tools for preparing the initial states and environmental conditions for a set of samples, automatic generation of dynamical equations based on a dictionary of modeling assumptions, random parameter sampling with tunable levels of metabolic and taxonomic structure, parallel integration of the dynamical equations, and support for metacommunity dynamics with migration between samples. To significantly speed up simulations using Community Simulator, our Python package implements a new Expectation-Maximization (EM) algorithm for finding equilibrium states of community dynamics that exploits a recently discovered duality between ecological dynamics and convex optimization. We present data showing that this EM algorithm improves performance by between one and two orders compared to direct numerical integration of the corresponding ordinary differential equations. We conclude by listing several recent applications of the Community Simulator to problems in microbial ecology, and discussing possible extensions of the package for directly analyzing microbiome compositional data.
02 /Specification & Classification
Click any tag to browse matching papers- Assay
- 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
- {micro}bialSim: constraint-based dynamic simulation of complex microbiomes
Denny Popp, Florian Centler·Frontiers in Bioengineering and BiotechnologyPeer-reviewed·Jun 10, 2020
- A Statistical Model for Describing and Simulating Microbial Community Profiles
Siyuan Ma, Boyu Ren, … Curtis Huttenhower·PLoS Computational BiologyPeer-reviewed·Sep 13, 2021
- NUFEB: A Massively Parallel Simulator for Individual-based Modelling of Microbial Communities
B. Li, D. Taniguchi, … P. Zuliani·PLOS Computational BiologyPeer-reviewed·Dec 12, 2019
- MIDASim: a fast and simple simulator for realistic microbiome data
Mengyu He, Ni Zhao, Glen A. Satten·MicrobiomePeer-reviewed·Jul 22, 2024
- M&Ms: A software for building realistic Microbial Mock communities
Natalia García-García, Javier Tamames, Fernando Puente‐Sánchez·BioinformaticsPeer-reviewed·Jan 10, 2022
- Equation-Based Integration of Flux Balance Analysis with Diffusion for Spatio-Temporal Simulation of Microbial Communities
Frederick Senya, Ryan Siegel, … David B. Bernstein·bioRxiv·Apr 14, 2026