Code to replicate experiments from Compositional Lotka-Volterra describes microbial dynamics in the simplex.
All experiments were performed using Python 3.5.2. Packages, along with version numbers, can be found in requirements.txt. Most (if not all) of the code should run on any version of Python 3, and most versions of the packages in requirements.txt.
The following scripts generate the panels for the main results of the paper.
plot_concentrations.py
bucci_cdiff_lokta_volterra_comparison.py
bucci_diet_lokta_volterra_comparison.py
stein_lokta_volterra_comparison.py
plot_prediction_results.py
stein_plot_parameters.py
plot_prediction_trajectories.py
Each experiment is organized by the dataset on which it was performed. Datasets are labeled by FIRST_AUTHOR (e.g. Bucci, Stein).
The following scripts run the model comparison experiments:
bucci_cdiff_prediction_experiments.py
bucci_diet_prediction_experiments.py
stein_prediction_experiments.py
The script simulation_bucci_clv.py
is responsible for generating simulated data and performing the comparison between elastic net and ridge regression. It uses a command line interface to set simulation parameters, an example of which can be found in simulation_bucci_clv.sh
. The script plot_simulation_bucci_clv.py
plots the simulation results saved in tmp_sim
.
Data and preprocessing steps can be found under data/FIRST_AUTHOR.