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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for maud-metabolic-models-0.5.1.1.tar.gz
Algorithm Hash digest
SHA256 57a2555aa9967ea3be2c1049f66e0661774a0b95dc391d890d58c8ce53ca7ec9
MD5 e368f021b80edcc6f7622b710585200e
BLAKE2b-256 773feff91810c13398714da8bc0a4c21b293cfa206973eddf42716472d874293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for maud_metabolic_models-0.5.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2655112bb1d4eee0998abac6db83910bc8c929324129ff2b6ec8670710fd152c
MD5 773831c6e303200e21d81d178259ab20
BLAKE2b-256 8be144e4cd6a8c370053879d3c88441f6c6e17964d6618c218919b6ede10910e

See more details on using hashes here.

Supported by

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