Skip to main content

Bayesian statistical models of metabolic networks

Project description

GNU General Public License 3.0 Black Contributor Covenant Version 1.4 Documentation Status

Maud is a work-in-progress application that fits Bayesian statistical models of metabolic networks using Python and Stan.

Maud aims to take into account allosteric effects, ensure that the laws of thermodynamics are obeyed and to synthesise information from both steady state experiments and the existing literature.

Install

First create a fresh Python virtual environment and then activate it:

python -m venv .venv --prompt=maud
source .venv/bin/activate

To install Maud and its python dependencies to your new virtual environment, run this command:

pip install maud-metabolic-models

Cmdstanpy depends on cmdstan, which in turn requires a c++ toolchain. Fortunately, cmdstanpy comes with commands that can install these for you. On windows the necessary dependencies can be installed with the following powershell commands:

python -m cmdstanpy.install_cxx_toolchain
python -m cmdstanpy.install_cmdstan --compiler

On macos or Linux, you must install the c++ requirements manually (see [here](https://cmdstanpy.readthedocs.io/en/v0.9.67/installation.html#install-cmdstan)) for instuctions. Cmdstan can then be installed using this shell command:

install_cmdstan

Usage

To run the simple linear model, use the following command:

maud sample

This will compile the Stan program at src/maud/inference_model.stan, then run the resulting binary file using the data at src/maud/data/example_inputs/linear, storing the results in a folder whose name starts with model_output_linear.

The sample command can be configured in a few ways - to check out all the options try running

maud sample --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maud-metabolic-models-0.5.1.1.tar.gz (77.3 kB view hashes)

Uploaded Source

Built Distribution

maud_metabolic_models-0.5.1.1-py2.py3-none-any.whl (89.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page