Skip to main content

Patient-Specific Modeling in Python

Project description

Pasmopy – Patient-Specific Modeling in Python

overview

PyPI version Actions Status Documentation Status License Downloads PyPI pyversions Language grade: Python pre-commit.ci status Code style: black Imports: isort iScience Paper

Pasmopy is a scalable toolkit to identify prognostic factors for cancers based on intracellular signaling dynamics generated from personalized kinetic models. It is compatible with biomass and offers the following features:

  • Construction of mechanistic models from text
  • Personalization of the model using transcriptome data
  • Prediction of patient outcome based on in silico signaling dynamics
  • Sensitivity analysis for prediction of potential drug targets

Installation

The latest stable release (and required dependencies) can be installed from PyPI:

$ pip install pasmopy

Pasmopy requires Python 3.7+ to run.

Example

Building mathematical models of biochemical systems from text

This example shows you how to build a simple Michaelis-Menten two-step enzyme catalysis model with Pasmopy.

E + S ⇄ ES → E + P

An enzyme, E, binding to a substrate, S, to form a complex, ES, which in turn releases a product, P, regenerating the original enzyme.

  1. Prepare a text file describing the biochemical reactions (e.g., michaelis_menten.txt)

    E binds S <--> ES | kf=0.003, kr=0.001 | E=100, S=50
    ES dissociates to E and P | kf=0.002, kr=0
    
    @obs Substrate: u[S]
    @obs E_free: u[E]
    @obs E_total: u[E] + u[ES]
    @obs Product: u[P]
    @obs Complex: u[ES]
    
    @sim tspan: [0, 100]
    
  2. Convert the text into an executable model

    $ python
    
    >>> from pasmopy import Text2Model
    >>> description = Text2Model("michaelis_menten.txt")
    >>> description.convert()
    
  3. Run simulation

    >>> from pasmopy import Model, run_simulation
    >>> import michaelis_menten
    >>> model = Model(michaelis_menten.__package__).create()
    >>> run_simulation(model)
    

    michaelis_menten

For more examples, please refer to the Documentation.

Personalized signaling models for cancer patient stratification

Using Pasmopy, we built a mechanistic model of ErbB receptor signaling network, trained with protein quantification data obtained from cultured cell lines, and performed in silico simulation of the pathway activities on 377 breast cancer patients using The Cancer Genome Atlas (TCGA) transcriptome datasets. All code for model construction, patient-specific simulations, and model-based stratification can be found here: https://github.com/pasmopy/breast_cancer.

Reference

Author

Hiroaki Imoto

License

Apache License 2.0

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

pasmopy-0.1.1.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

pasmopy-0.1.1-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file pasmopy-0.1.1.tar.gz.

File metadata

  • Download URL: pasmopy-0.1.1.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pasmopy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aac8908d930a8b7a47294872b08eee424d5fe60fcb15dd1725aa37d4de19543b
MD5 246b82cf32574d41fb295b7a54553e30
BLAKE2b-256 5acbff3817f8e1e48fbc2c36e66c0b08a8bd827675b79139c7c83dd2f8efdcad

See more details on using hashes here.

File details

Details for the file pasmopy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pasmopy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for pasmopy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0411f14768f784481af7530159bafe327b29e1b7f63bd94d4482c06e0dbac44
MD5 8190404b85e581afb34d31ef4ca520f5
BLAKE2b-256 17e1c6b818d961b177c8e0eb7e1f13a5717147982ff5bc52eec3cb39d04ce9c1

See more details on using hashes here.

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