MBAM
Code for the Manifold Boundary Approximation Method
Install
Using pip
pip install mbam
From source
git clone https://github.com/mktranstrum/MBAM.git
pip install ./MBAM
Example
See examples.
-
Start by looking at
exp_example.py. This script defines a simple model which is the sum of two exponentials sampled at 3 points. It defines a function to evaluate the model as well as its first and second derivatives with respect to the parameters. It then imports functions for solving the geodesic equation. It solves the geodesic equation and then plots the parameter values along the geodesic. The output of this script should be similar toexp_example.png -
Next, consider the
MMR.pywhich defines a model (a Michaelis-Menten reaction) by solving a nonlinear ordinary differential equation. This script defines a model by sampling by evaluating this model at three time points. It also defines functions for calculating first and second derivatives. Note that evaluating these derivatives involves solving the so-called sensitivity equations. Alternatively, they can be estimated using finite differences.
The scriptMMR_Plots.pysolves the geodesic equation for the MMR model and creates several plots to visualize the parameter space, parameter values along the geodesic, and the model manifold.
Attribution
Please cite Transtrum, Machta, and Sethna (2011) and Transtrum and Qiu (2014) if you find this code useful in your research.
License
mbam is free software distributed under the MIT License; see the LICENSE file for details.
Metadata
Release files for mbam 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mbam-0.1.0.tar.gz | 42.7 kB | Without provenance | Details |
Release files / mbam-0.1.0.tar.gz
| Download URL | mbam-0.1.0.tar.gz |
|---|---|
| Size | 42.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4608002e2ea41eea6827dca1c6380881247ff5cf6c87a55c9946e52380e9cc4c
|
|
BLAKE2b-256 checksum How to use checksums |
097fcc3ec75c4e8954749ca87aedda212f30d7f7110a16c484b7dcc937c8c311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.47.0 importlib-metadata/4.11.3 keyring/17.0.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.4
|
Security for mbam 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.