Skip to content

About

Mechanistic, reproducible models of kinase- and transcription factor-driven multi-omics dynamics using interoperable systems biology standards.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,120 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PhosKinTime: signalling and gene-regulation network dynamics

Latest release Tests Documentation DOI License: BSD-3-Clause
Python 3.14 Pixi SBML Level 3 PEtab v1 and v2 COMBINE archive

PhosKinTime

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.

New to modelling? Start here

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.

From data to model

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"]
Loading

What you get

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

Quick start

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 run

Then follow the tutorials (00–12), which go through the model step by step on the same synthetic example.

Three ways to use it

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

The model

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).

Inputs and outputs

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.

After the fit

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 archive

Analyses 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.

Reading the results

  • 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 in parameter_status.csv with 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.

Design principle

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).

Ecosystem

project role
KinOpt (Mishra 2026) kinase–phosphosite weights (doi:10.5281/zenodo.24676890)
TFOpt (Normann and Mishra 2026) TF–target weights (doi:10.5281/zenodo.24690567); originally implemented by Julius Normann, modified and optimized by Abhinav Mishra
PhosKinTime-Vis plots and interactive views of a run, read from its bundle
sbmlsim (König 2026), sbmlsim-core (König 2026), sbmlutils (König 2026), pymetadata (König 2026), libsbgnpy (König 2026), sbmlode (König 2026), sbml2cellml (König 2026) model creation, annotation, fitting, profiles, experiments and exchange
libRoadRunner (Welsh et al. 2023), SUNDIALS CVODE (Hindmarsh et al. 2005), libSBML (Bornstein et al. 2008; Bergmann et al. 2026), libCellML (libCellML Contributors 2026), PEtab (Schmiester et al. 2021), AMICI (Fröhlich et al. 2021), pyPESTO (Schälte et al. 2023), fides (Fröhlich and Sorger 2022), zeus (Karamanis et al. 2021; Karamanis and Beutler 2021) simulation, standards, sensitivities and sampling
SciPy (Virtanen et al. 2020), NumPy (Harris et al. 2020), Numba (Lam et al. 2015), SALib (Herman and Usher 2017; Iwanaga et al. 2022), pandas (McKinney 2010), Matplotlib (Hunter 2007), seaborn (Waskom 2021), NetworkX (Hagberg et al. 2008), mpi4py (Dalcin and Fang 2021), MyGene.info (mygene) (Xin et al. 2016), CollecTRI (Müller-Dott et al. 2023) numerics, tables, figures, graphs and inputs

Versions, licences and how to cite each tool: Standards and tools. Standards, methods and the full reference list: Cite.

Documentation

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

Development

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 wordmarks

Contributing: CONTRIBUTING.md. AMICI/pyPESTO cross-validation of the exported PEtab problems has its own environment: validation/petab.

Citation

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.

License

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.

About

Mechanistic, reproducible models of kinase- and transcription factor-driven multi-omics dynamics using interoperable systems biology standards.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages