One mechanistic network model for phosphoproteomics, proteomics and transcriptomics time series. Kinases drive the phosphorylation of their substrate sites, transcription factors regulate the mRNA of their targets, and both layers are one coupled ODE system, written as SBML and fitted as a PEtab problem.
Documentation · Tutorials · API reference · Changelog · Known issues · Roadmap · Cite
Important
Under active development. PhosKinTime is being fixed, tested and validated. Interfaces, configuration defaults and results may change between releases, and results of earlier versions may not be reproducible with the current defaults. Open issues are in KNOWN_ISSUES.md.
Learn: from zero to your own model, a step-by-step path for students and researchers who have never built a dynamic model: what a model is, installation, your first fit, your own data, which results to believe and troubleshooting.
flowchart LR
D["Time series<br/>protein · phosphosite · mRNA"] --> M
W["Networks and weights<br/>kinase→site (KinOpt)<br/>TF→gene (TFOpt)"] --> M
F["Mechanism file<br/>models/*.toml"] --> M
M["SBML model<br/>of the network"] --> P["PEtab problem"]
P --> O["Fit<br/>sbmlsim, or AMICI + pyPESTO"]
O --> I["Profile likelihoods<br/>Laplace · MCMC"]
O --> R["Run folder and<br/>run bundle"]
R --> A["Analyses · in-silico experiments<br/>exports · PhosKinTime-Vis"]
| read more | ||
|---|---|---|
| Mechanisms as files | reactions and rate laws in plain TOML; ship your own, e.g. for another modification type | Mechanism files |
| A real SBML model | every simulation, fit, profile, posterior and export uses the run's SBML model (libRoadRunner, CVODE) | Architecture |
| Reproducible fitting | seeded multistart on a PEtab problem; sbmlsim by default, AMICI with pyPESTO as the second engine | Network model |
| Honest parameter values | data-only profile likelihoods label what the data bound, and what they do not | Network model options |
| Uncertainty | optional log fold-change likelihood with estimated noise; Laplace or MCMC (zeus) posterior | Network model options |
| In-silico experiments | kinase inhibition and knockout, knockdown, lost edges, washout, dose-response, with posterior bands | In-silico experiments |
| Standards | SBML, PEtab, SBGN, CellML and a COMBINE archive that reruns without PhosKinTime | Standards and tools |
| Traceable results | a versioned, checksummed run bundle with typed tables and provenance | Run bundle |
From a clone of the repository, with Pixi (Python 3.14; linux-64, osx-64 and osx-arm64 with macOS >= 15):
git clone https://github.com/bibymaths/phoskintime.git && cd phoskintime
pixi install
pixi run phoskintime example my-project # a synthetic example project (invented curves)
pixi run phoskintime validate --conf my-project/config.toml # what a run would read, checked without fitting
pixi run phoskintime run --conf my-project/config.toml # one network-model runThen follow the tutorials (00–12), which go through the model step by step on the same synthetic example.
All three run the same code on the same files: a config.toml and a run folder.
| way | start | reference |
|---|---|---|
| Command line | pixi run phoskintime --help: example, validate, run, bundle, analyze, simulate, export, app, prep, clean |
Command line |
| App | pixi run app: a guided page in your browser (local only) to set up, run, browse, analyse and experiment, with a video tutorial |
The PhosKinTime app |
| Library | from phoskintime.networkmodel import api: validate_inputs, run, read_results, make_bundle, check_bundle, simulate |
Library |
| mechanism | per protein | equations |
|---|---|---|
| distributive (default) | sites are modified independently | ODEs |
| sequential | sites are modified in residue order | ODEs |
| combinatorial | every subset of sites is a state | ODEs |
| saturation | saturating translation and modification | ODEs |
The equation pages are generated from the SBML models themselves. The network part is built from the inputs: kinase drives enter the sites through the kinase–site weights, and TF proteins regulate their targets' transcription through the TF–gene weights. A TF without a modelled regulator can follow its own measured data (decision report).
| you provide | a run writes |
|---|---|
| kinase–site network and TF–gene network | fitted parameters with identifiability labels |
| MS table (protein and phosphosite rows), RNA table (optional) | predictions, residuals and the fitted SBML model (model/model.xml) |
| KinOpt and TFOpt result workbooks (optional) | multistart and profile records |
config.toml (reference) |
metadata.json with the provenance of code and inputs |
the run bundle <run>/<run name>.pkt.zip (contract) |
Layout of a run folder: run folder layout. Preparing inputs: processing and network pruning.
pixi run phoskintime analyze --list # summaries, profiles, design, sensitivity, …
pixi run phoskintime simulate run --model <run> --preset knockout --target MAPK1 --out ko.pke.zip
pixi run phoskintime export standards --run <run> --out <folder> # one COMBINE archiveAnalyses write beside the run, under <run>/analysis/, and leave the fitted results unchanged. Archives, bundles and
PEtab exports contain the measurements: keep those of unpublished data local.
- A parameter value is an estimate only when its data-only profile likelihood is bounded on both sides
(
estimate (two-sided)). Every fitted value is listed inparameter_status.csvwith its label:upper limit only,lower limit only,not identifiable (flat),not assessed, at a bound set by the sampling design, or without data influence. Values with those labels are model settings that reproduce the fit, not measurements. - Under the default data term (a sum of modality MSEs) the profile threshold is approximate (KNOWN_ISSUES N6); with
observation_model = "log_fc_gaussian"it is the likelihood-ratio threshold (N30). - On the ABL2 subnetwork only 1 to 2 of 15 to 16 interior parameters per model were two-sided estimates (N27).
- Input weights (N38): KinOpt workbooks written before KinOpt 0.11.0 build each kinase's activity from another protein's series, so every α and β in them is suspect; use KinOpt 0.11.0 or later and TFOpt 0.2.0 or later.
- KinOpt and TFOpt solutions can sit on simplex vertices, which removes edges in effect (N32).
All known scientific and modelling issues: KNOWN_ISSUES.md.
PhosKinTime is meant to be agnostic to data, disease and condition. Its core is the models, the solver and the optimiser. Every study-specific fact (files, identifiers, time points, value kind, reference, conditions) is meant to enter through the inputs, never as a constant in the code (KNOWN_ISSUES N37; the input refactor on the roadmap).
Versions, licences and how to cite each tool: Standards and tools. Standards, methods and the full reference list: Cite.
| to | go to |
|---|---|
| start from zero | Learn: the beginner path |
| learn the model step by step | Tutorials |
| configure a run | Configuration reference · Network model options |
| understand the biology and the equations | Global network model · Model equations |
| write a mechanism | Mechanism files |
| analyse and compare runs | Sensitivity analysis · Metrics |
| exchange models and results | Standards and tools · Run bundle · External tools |
| call it from Python | Library · API reference |
| contribute | Contributing · Repository layout |
pixi run -e dev test # unit tests (synthetic inputs, no data needed)
pixi run check-import
pixi run -e dev test-notebooks # executes the tutorial notebooks (notebooks/NN_*.ipynb)
pixi run -e docs docs-build # documentation (Zensical, zensical.toml); executes the tutorials first
pixi run build-contract # publish the run-bundle contract and regenerate its docs table
pixi run build-brand # regenerate the logo and wordmarksContributing: CONTRIBUTING.md. AMICI/pyPESTO cross-validation of the exported PEtab problems has its own environment: validation/petab.
Cite PhosKinTime with the metadata in CITATION.cff: doi:10.5281/zenodo.15334702. Please also cite the tools your run used: how to cite PhosKinTime and the works it runs on.
Code: BSD-3-Clause, see LICENSE. Documentation: CC BY 4.0, see LICENSE-docs.md; third-party material: THIRD_PARTY.md. Research use and no warranty: TERMS_OF_USE.md. Reporting vulnerabilities: SECURITY.md.
AI use: code-by-intent (doi:10.5281/zenodo.24626373).
The SBML ecosystem (libSBML, libroadrunner, sbmlsim, PEtab, AMICI and pyPESTO), SciPy and experimental researchers inspired me to build an open-source framework to study post-translational modifications (PTMs) at the cellular level: models written as plain mechanism files, exchanged as standard SBML and PEtab, and fitted with tools the community already trusts.