A Python Framework for Modeling and Analysis of Signaling Systems
Project description
BioMASS
Modeling and Analysis of Signaling Systems
Mathematical modeling is a powerful method for the analysis of complex biological systems. Although there are many researches devoted on producing models to describe dynamical cellular signaling systems, most of these models are limited and do not cover multiple pathways. Therefore, there is a challenge to combine these models to enable understanding at a larger scale. Nevertheless, larger network means that it gets more difficult to estimate parameters to reproduce dynamic experimental data needed for deeper understanding of a system.
To overcome this problem, we developed BioMASS, a modeling platform tailored to optimizing mathematical models of biological processes. By using BioMASS, users can efficiently optimize kinetic parameters to fit user-defined models to experimental data, while performing analysis on reaction networks to predict critical components affecting cellular output.
Features
BioMASS supports:
- parameter estimation of ODE models
- sensitivity analysis
- effective visualization of simulation results
currently implimented for modeling immediate-early gene response (Nakakuki et al., Cell, 2010).
Installation
The BioMASS library is available on PyPI.
$ pip3 install biomass
BioMASS supports Python 3.7 or newer.
Model Construction
from biomass.models import Nakakuki_Cell_2010
Nakakuki_Cell_2010.show_info()
Nakakuki_Cell_2010 information
------------------------------
36 species
115 parameters, of which 75 to be estimated
model = Nakakuki_Cell_2010.create()
Parameter Estimation of ODE Models (n = 1, 2, 3, · · ·)
Parameters are adjusted to minimize the distance between model simulation and experimental data.
from biomass import optimize
optimize(
model=model, start=1, options={
"popsize": 3,
"max_generation": 1000,
"allowable_error": 0.5,
"local_search_method": "DE",
}
)
The temporary result will be saved in out/n/
after each iteration.
Progress list: out/n/optimization.log
Generation1: Best Fitness = 1.726069e+00
Generation2: Best Fitness = 1.726069e+00
Generation3: Best Fitness = 1.726069e+00
Generation4: Best Fitness = 1.645414e+00
Generation5: Best Fitness = 1.645414e+00
Generation6: Best Fitness = 1.645414e+00
Generation7: Best Fitness = 1.645414e+00
Generation8: Best Fitness = 1.645414e+00
Generation9: Best Fitness = 1.645414e+00
Generation10: Best Fitness = 1.645414e+00
Generation11: Best Fitness = 1.645414e+00
Generation12: Best Fitness = 1.645414e+00
Generation13: Best Fitness = 1.645414e+00
Generation14: Best Fitness = 1.645414e+00
Generation15: Best Fitness = 1.645414e+00
Generation16: Best Fitness = 1.249036e+00
Generation17: Best Fitness = 1.171606e+00
Generation18: Best Fitness = 1.171606e+00
Generation19: Best Fitness = 1.171606e+00
Generation20: Best Fitness = 1.171606e+00
- If you want to continue from where you stopped in the last parameter search,
from biomass import optimize_continue
optimize_continue(
model=model, start=1, options={
"popsize": 3,
"max_generation": 1000,
"allowable_error": 0.5,
"local_search_method": "DE",
}
)
- If you want to search multiple parameter sets (e.g., from 1 to 10) simultaneously,
from biomass import optimize
optimize(
model=model, start=1, end=10, options={
"popsize": 5,
"max_generation": 2000,
"allowable_error": 0.5,
"local_search_method": "mutation",
"n_children": 50
}
)
- Exporting optimized parameters in CSV format
from biomass.result import OptimizationResults
res = OptimizationResults(model)
res.to_csv()
Visualization of Simulation Results
from biomass import run_simulation
run_simulation(model, viz_type='average', show_all=False, stdev=True)
Points (blue diamonds, EGF; red squares, HRG) denote experimental data, solid lines denote simulations
Sensitivity Analysis
The single parameter sensitivity of each reaction is defined by
si(q(v),vi) = ∂ ln(q(v)) / ∂ ln(vi) = ∂ q(v) / ∂ vi · vi / q(v)
where vi is the ith reaction rate, v is reaction vector v = (v1, v2, ...) and q(v) is a target function, e.g., time-integrated response, duration. Sensitivity coefficients were calculated using finite difference approximations with 1% changes in the reaction rates.
from biomass import run_analysis
run_analysis(model, target='reaction', metric='integral', style='barplot')
Control coefficients for integrated pc-Fos are shown by bars (blue, EGF; red, HRG). Numbers above bars indicate the reaction indices, and error bars correspond to simulation standard deviation.
Citation
When using BioMASS, please cite:
- Imoto, H., Zhang, S. & Okada, M. A Computational Framework for Prediction and Analysis of Cancer Signaling Dynamics from RNA Sequencing Data—Application to the ErbB Receptor Signaling Pathway. Cancers. 12, 2878 (2020). https://doi.org/10.3390/cancers12102878
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file biomass-0.3.2.tar.gz
.
File metadata
- Download URL: biomass-0.3.2.tar.gz
- Upload date:
- Size: 76.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 575b5093c9742c771f73ae5404e24c9fc0d73ea547d003f8b314e240da93ed64 |
|
MD5 | 4dc105c7894ac0955dab686ac30a44bf |
|
BLAKE2b-256 | 4d93419fe70abb17cdd0f071cd8cc315234ab32356c481715566daf669b5ead8 |
File details
Details for the file biomass-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: biomass-0.3.2-py3-none-any.whl
- Upload date:
- Size: 99.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206db04578cacc971f27501b5ffcd1bc73a776f2f2ca7124c15ab4e039f6862e |
|
MD5 | 50e22e3f3fd702ffb01791d32ac598c9 |
|
BLAKE2b-256 | 27b9320f09d95ca3e49e3744d10266d261da34e33c7ff5ec09c51e9d2cbacd7b |