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.4.0.1.tar.gz (74.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maud_metabolic_models-0.4.0.1-py2.py3-none-any.whl (85.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file maud-metabolic-models-0.4.0.1.tar.gz.

File metadata

  • Download URL: maud-metabolic-models-0.4.0.1.tar.gz
  • Upload date:
  • Size: 74.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for maud-metabolic-models-0.4.0.1.tar.gz
Algorithm Hash digest
SHA256 8a83866c2b56ffd270f4a7b98856e39dba078e0d815b886c55c1ccd543864e3a
MD5 07607350150b385d45ddef7da157fb50
BLAKE2b-256 25fe796059bbd0083d0770d84e96db0875f8b2068d53fa782b033d159f8a00b3

See more details on using hashes here.

File details

Details for the file maud_metabolic_models-0.4.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for maud_metabolic_models-0.4.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70b1b25f6c055df86e8836f20988f3715e3c3920cd9c606505d92334fdf1c9d5
MD5 6f35057f92804bde1a6cfbd8739518bd
BLAKE2b-256 7f946688681561083863429aec77175b5bae38a48c8c336fd0fe546dab798c8a

See more details on using hashes here.

Supported by

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