Skip to main content

KinOpt: kinase effects on phosphorylation

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

KinOpt

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. Each release is archived on Zenodo with its own DOI.

License

Metadata

Release files for kinopt 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kinopt 0.10.0
File Size Uploaded Provenance Actions
kinopt-0.10.0.tar.gz 69.6 kB With provenance Details for kinopt-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kinopt 0.10.0
File Interpreter ABI Platform Actions
kinopt-0.10.0-py3-none-any.whl Python 3 none any Details for kinopt-0.10.0-py3-none-any.whl

Total release size: 132.1 kB

Release files / kinopt-0.10.0.tar.gz

Download URL kinopt-0.10.0.tar.gz
Size 69.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dee5cfafc82f1445a4d9e7a3943d0001cceca1bcd81609c07493c00de45be449
BLAKE2b-256 checksum
How to use checksums
8f56faa85f4447d2ede51b4e4774b60045ad8d125398b6641651a4bfc667867d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Release files / kinopt-0.10.0-py3-none-any.whl

Download URL kinopt-0.10.0-py3-none-any.whl
Size 62.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a7d54e7addade71e5505e43243ef43980e8dbce85f2215ff88144326497ac67
BLAKE2b-256 checksum
How to use checksums
0af98d75740f73841e048f66c1542c4ac50c6ee55287d3314c252d2ebc76dd6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for kinopt 0.10.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kinopt-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page