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
Documentation
Online documentation is available at https://pasmopy.readthedocs.io.
You can also build the documentation locally by running the following commands:
$ cd docs
$ make html
The site will live in _build/html/index.html.
Installation
The latest stable release (and required dependencies) can be installed from PyPI:
$ pip install pasmopy
Pasmopy requires Python 3.8+ 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.
import os
from pasmopy import Text2Model, create_model, run_simulation
# Prepare a text file describing the biochemical reactions (e.g., `michaelis_menten.txt`)
reactions = """\
E + S ⇄ ES | kf=0.003, kr=0.001 | E=100, S=50
ES → E + P | kf=0.002
"""
observables = """
@obs Substrate: u[S]
@obs E_free: u[E]
@obs E_total: u[E] + u[ES]
@obs Product: u[P]
@obs Complex: u[ES]
"""
simulation_condition = """
@sim tspan: [0, 100]
"""
with open("michaelis_menten.txt", mode="w") as f:
f.writelines(reactions)
f.writelines(observables)
f.writelines(simulation_condition)
# Convert the text into an executable model
description = Text2Model("michaelis_menten.txt")
description.convert()
assert os.path.isdir("michaelis_menten")
# Run simulation
model = create_model("michaelis_menten")
run_simulation(model)
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 breast cancer patients using The Cancer Genome Atlas (TCGA) transcriptome datasets. The temporal activation dynamics of Akt, extracellular signal-regulated kinase (ERK), and c-Myc in each patient were able to accurately predict the difference in prognosis and sensitivity to kinase inhibitors in triple-negative breast cancer (TNBC).
For further details, please see https://pasmopy.readthedocs.io/en/latest/personalized_model.html.
References
-
Imoto, H., Yamashiro, S. & Okada, M. A text-based computational framework for patient -specific modeling for classification of cancers. iScience 25, 103944 (2022). https://doi.org/10.1016/j.isci.2022.103944
-
Imoto, H., Yamashiro, S., Murakami, K. & Okada, M. Protocol for stratification of triple-negative breast cancer patients using in silico signaling dynamics. STAR Protocols 3, 101619 (2022). https://doi.org/10.1016/j.xpro.2022.101619
Author
License
Metadata
Release files for pasmopy 0.5.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 | Actions |
|---|---|---|---|---|
| pasmopy-0.5.0.tar.gz | 22.5 kB | Without provenance | Details for pasmopy-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pasmopy-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pasmopy-0.5.0-py3-none-any.whl |
Total release size: 41.8 kB
Release files / pasmopy-0.5.0.tar.gz
| Download URL | pasmopy-0.5.0.tar.gz |
|---|---|
| Size | 22.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9f8cf8bd03fa2f995e6232d347b3105e8ea6466c86d89f8e54db8edd5c0df18
|
|
BLAKE2b-256 checksum How to use checksums |
9aef6f11af2599505d465f9b47ca0166445ca0a8f00d93563f02ab6af16e5048
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / pasmopy-0.5.0-py3-none-any.whl
| Download URL | pasmopy-0.5.0-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57a4a4b38af13a1cb1700ab293140344746cc609a40008fa6a6874f85628b42d
|
|
BLAKE2b-256 checksum How to use checksums |
19a90d5a584980bbad35f9ba556a44a45c1dd87a468f40c88fd9016254f5c9b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for pasmopy 0.5.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.