CBMOS: a GPU-enabled Python framework for the numerical study of center-based models
Open Access
- 31 January 2022
- journal article
- research article
- Published by Springer Nature in BMC Bioinformatics
- Vol. 23 (1) , 1-24
Abstract
Background: Cell-based models are becoming increasingly popular for applications in developmental biology. However, the impact of numerical choices on the accuracy and efficiency of the simulation of these models is rarely meticulously tested. Without concrete studies to differentiate between solid model conclusions and numerical artifacts, modelers are at risk of being misled by their experiments’ results. Most cell-based modeling frameworks offer a feature-rich environment, providing a wide range of biological components, but are less suitable for numerical studies. There is thus a need for software specifically targeted at this use case. Results: We present CBMOS, a Python framework for the simulation of the center-based or cell-centered model. Contrary to other implementations, CBMOS’ focus is on facilitating numerical study of center-based models by providing access to multiple ordinary differential equation solvers and force functions through a flexible, user-friendly interface and by enabling rapid testing through graphics processing unit (GPU) acceleration. We show-case its potential by illustrating two common workflows: (1) comparison of the numerical properties of two solvers within a Jupyter notebook and (2) measuring average wall times of both solvers on a high performance computing cluster. More specifically, we confirm that although for moderate accuracy levels the backward Euler method allows for larger time step sizes than the commonly used forward Euler method, its additional computational cost due to being an implicit method prohibits its use for practical test cases. Conclusions: CBMOS is a flexible, easy-to-use Python implementation of the center-based model, exposing both basic model assumptions and numerical components to the user. It is available on GitHub and PyPI under an MIT license. CBMOS allows for fast prototyping on a central processing unit for small systems through the use of NumPy. Using CuPy on a GPU, cell populations of up to 10,000 cells can be simulated within a few seconds. As such, it will substantially lower the time investment for any modeler to check the crucial assumption that model conclusions are independent of numerical issues.Keywords
All Related Versions
Funding Information
- Vetenskapsrådet (2015-03964)
- National Institutes of Health (NIH/2R01EB014877-04A1)
This publication has 41 references indexed in Scilit:
- Bridging the scales: semantic integration of quantitative SBML in graphical multi-cellular models and simulations with EPISIM and COPASIBioinformatics, 2012
- A cell-based simulation software for multi-cellular systemsBioinformatics, 2010
- Hybrid models of tumor growthWIREs Mechanisms of Disease, 2010
- A computational study of discrete mechanical tissue modelsPhysical Biology, 2009
- An immersed boundary framework for modelling the growth of individual cells: An application to the early tumour developmentJournal of Theoretical Biology, 2007
- Modeling Multicellular Structures Using the Subcellular Element Model2007
- Multicellular tumor spheroid in an off-lattice Voronoi-Delaunay cell modelPhysical Review E, 2005
- Multicellular simulation predicts microvascular patterning and in silico tissue assemblyThe FASEB Journal, 2004
- Individual-based models to growth and folding in one-layered tissues: intestinal crypts and early developmentNonlinear Analysis, 2001
- Simulation of biological cell sorting using a two-dimensional extended Potts modelPhysical Review Letters, 1992