Skip to main content

Patient-Specific Modeling in Python

Project description

Pasmopy – Patient-Specific Modeling in Python

overview

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

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 through classification based on 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 biochemical reactions (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 text into an executable model

    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.

Patient-specific simulations and model-based stratification

Using Pasmopy, we built a mechanistic model of ErbB receptor signaling network, trained in cultured cell lines, and performed in silico simulation of 377 breast cancer patients. All code for model construction, patient-specific simulations, and model-based stratification can be found here: https://github.com/pasmopy/breast_cancer.

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

Uploaded Source

Built Distribution

pasmopy-0.0.5-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pasmopy-0.0.5.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pasmopy-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9e28993a097c5a8048d7c3e96ce30a6b2529e7eb30b4a173a5ff011a250577e1
MD5 2a9c3394e226c8e74a27cb9ad3f4bd10
BLAKE2b-256 5c405fbf56b03e5943549815b8046bd1f9b9eee8779c4ddd9778bc2b0bf9cc0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pasmopy-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pasmopy-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd629fcaf187975e95874f09892bb47727e4d65380f78b140cc3ecc765dbbbc
MD5 b1b0621947c353ce352596c0c2938efb
BLAKE2b-256 2a706fa7ff433c0924fabd2fba8a91363da790f65754cb1c09ede423488b30c8

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