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 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.10.0 is doi:10.5281/zenodo.24676891.

License

Metadata

Release files for kinopt 0.11.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.11.0
File Size Uploaded Provenance Actions
kinopt-0.11.0.tar.gz 162.1 kB With provenance Details for kinopt-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 305.6 kB

Release files / kinopt-0.11.0.tar.gz

Download URL kinopt-0.11.0.tar.gz
Size 162.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8f811bbe038ca182b6ff7fc1b11fb3f9c636249120923cb876b3b5f0755be56
BLAKE2b-256 checksum
How to use checksums
22dc236fffc7574709c5ce6e5470ccaa13758e3db241158fdba2530a53d898de
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.11.0-py3-none-any.whl

Download URL kinopt-0.11.0-py3-none-any.whl
Size 143.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2806b31c49780562f9637c1349365d649fdfef4b8339be377b5c32ce9a4db79
BLAKE2b-256 checksum
How to use checksums
8e0fd38323ac80ba4900dd6beadf2c2a038bbb71125193b220aca3b671011422
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.11.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.11.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.11.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