Code for the manuscript:
Yarden Katz and Michael Springer, "Probabilistic adaptation in changing microbial environments", PeerJ (2016).
This code depends on the following external libraries:
- ParticleFever library
- libRoadRunner (with Python wrapper). This library can be simply installed by downloading pylibroadrunner for your platform and installing it like an ordinary Python package.
Once these libraries are installed, the code for the paper can be installed as a regular Python package using pip install .
in the repository directory (or python setup.py install
). Unit tests can be run using:
cd ./paper_metachange
python testing.py
The directories are organized as follows:
paper_metachange
: Python module containing code used in paperdata
: growth rate datasbml_models
: biochemical model from paper in SBML (.xml) formatsimulations_params
: parameters used for simulationsnonpython_figures
: figures generated outside of Python
Figures are generated using a ruffus pipeline by running:
cd paper_metachange
python make_paper.py
Particle filtering inference for Bayesian models is done using the ParticleFever library.