Skip to content
bibymathsPublic

About

Estimation of cumulative kinase effects on substrate phosphorylation.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

153 Commits

Folders and files

Repository files navigation

KinOpt: kinase effects on phosphorylation

PyPI Latest release Tests Release workflow Docs workflow Documentation Pixi Python 3.12 License: BSD-3-Clause DOI

KinOpt

KinOpt (kinase–substrate network optimisation for phosphoproteomics; not the chemical-kinetics package of the same name).

Documentation: https://bibymaths.github.io/KinOpt/ · Release notes · Changelog · Cite · Security · Terms of use

KinOpt estimates the cumulative effect of kinases on the phosphorylation of their substrate sites from phosphoproteomics time series, including the effect of a kinase's own phosphorylation on its activity. For every site it fits how much each of its kinases contributes (α), and for every kinase how its protein and site series combine into its activity (β):

$$\hat P_i(t) = \max\Big(0, \sum_k \alpha_{ik} \sum_j \beta_{kj} X_{kj}(t)\Big),\qquad \sum_k \alpha_{ik} = 1,\ \alpha_{ik} \in [0, 1],\qquad \sum_j \beta_{kj} = 1$$

The default solver is SciPy SLSQP with these constraints and the bounds as hard constraints, run from 64 seeded starts. KinOpt was split out of PhosKinTime, which uses its results.

Install and run

From PyPI:

pip install kinopt
kinopt-local                   # or: python -m kinopt.local

For exact reproduction of published results use pixi.lock; pip install gives compatible versions.

Run it from a project folder that contains a config.toml (copy the template from the repository); KinOpt also takes its input and output folders from there. From a clone of the repository, with Pixi:

pixi install
pixi run kinopt-local          # PYTHONPATH=. python -m kinopt.local

Put input1.csv (time series: GeneID, Psite, x1 … x14) and input2.csv (sites and their kinases: GeneID, Psite, Kinase) in data/, or set [paths] in config.toml. Results go to paths.results_dir: the workbook kinopt_results.xlsx (α, β, summary, observed, estimated and residual series), the multistart records, per-protein plots and report.html. Use a new results folder for each run.

Settings are in config.toml (see the configuration reference):

Setting Default
method scipy-slsqp (hard constraints). The JAXopt methods (projected-gradient, lbfgsb, …) are approximate options with penalty-enforced constraints
n_starts, jitter_scale 64, 0.10
start_seed 20260115
loss_type weighted
β bounds −4, 4

A default run takes about 20 minutes on a machine with enough cores (one start takes several minutes).

Development

pixi run -e dev test            # tests (synthetic inputs, no data needed)
pixi run -e dev check-import
pixi run -e docs docs-build     # documentation (Zensical)
pixi run check-release v0.10.0  # versions, changelog and release notes agree

Releases: see release-notes/README.md.

Citation

Cite KinOpt with the metadata in CITATION.cff: doi:10.5281/zenodo.24676890 (all versions; resolves to the latest). Each release is archived on Zenodo with its own DOI; 0.11.0 is doi:10.5281/zenodo.24686728.

License

About

Estimation of cumulative kinase effects on substrate phosphorylation.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages