Save and share
| you want to | give them | made by |
|---|---|---|
| keep everything | the run folder, plus the input files | every run |
| hand over results, checked | the run bundle results.pkt.zip |
every run |
| let others use the model in other software | the standards archive .omex |
export standards |
| only the model | an SBML file | export sbml |
| refit with other tools | a PEtab problem | export petab |
These files contain data
Bundles copy input files up to 50 MB. PEtab problems and the standards archive contain the measurements. Do not
share them when the data are unpublished (for the archive, --no-petab leaves the problem out).
The run folder
Copy the whole folder. It records the code version, settings and input checksums. Keep the input files unchanged next to it: tools that rebuild the run (profiles, exports) check them.
The run bundle
One self-contained zip with typed tables, settings and checksums.
pixi run phoskintime bundle verify my-project/results/results.pkt.zip
pixi run phoskintime bundle inspect my-project/results/results.pkt.zip
ok
pkt-094c08abe0900901 schema 1.0 created 2026-12-03T02:04:16Z
producer: phoskintime 0.7.0a1 @ daa24ff...; model distributive (networkmodel)
table parameters 185 rows
table trajectories 194 rows
...
missing profile_likelihood no profile likelihoods in this run
Make a new one from a finished run:
pixi run phoskintime bundle create my-project/results --zip --out mybundle.pkt.zip
Details: Run bundle.
The standards archive (COMBINE)
pixi run phoskintime export standards --run my-project/results --out export
It writes export/phoskintime_model.omex and a report of checks. For the example all passed:
"checks": { "sbml": true, "annotations": true, "sbgn": true, "cellml": true,
"omex": true, "experiments_from_archive": true, "petab_from_archive": true }
An .omex file is a zip. Inside: model.xml (SBML), equations.md, SBGN diagrams, a CellML version,
experiments/ (sbmlsim simulations), sensitivity/, petab/ and a README.md.
See Standards and tools.
Gene names in annotations
The export annotates protein names as HGNC gene symbols. Invented names such as A or SUB are annotated the
same way. Use real symbols, or do not rely on those annotations.
Your model in other software
libRoadRunner, without PhosKinTime's code
Save as roadrunner_demo.py:
import roadrunner
rr = roadrunner.RoadRunner("my-project/results/model/model.xml")
print("species:", rr.model.getFloatingSpeciesIds()[:7], "...")
print("ck_K2 =", round(rr["ck_K2"], 3), "1/min")
rr.timeCourseSelections = ["time", "X_A_S_2", "X_B_Y_4", "X_K1_T_3"]
times = [0, 5, 15, 30, 60, 120, 240]
fitted = rr.simulate(times=times)
print(fitted)
rr.resetAll()
rr["ck_K2"] = 0.0 # knock kinase K2 out
knockout = rr.simulate(times=times)
print(knockout)
pixi run python roadrunner_demo.py
species: ['R_A', 'P_A', 'X_A_S_1', 'X_A_S_2', 'R_B', 'P_B', 'X_B_Y_4'] ...
ck_K2 = 3.58 1/min
time, X_A_S_2, X_B_Y_4, X_K1_T_3
[[ 0, 0.15, 0.3, 0.3],
[ 5, 0.213147, 0.480735, 0.56825],
[ 15, 0.221233, 0.410542, 0.369746],
...
time, X_A_S_2, X_B_Y_4, X_K1_T_3
[[ 0, 0.15, 0.3, 0.3],
[ 5, 0.213147, 0.274385, -1.02689e-15],
[ 15, 0.221233, 0.263202, -5.69113e-27],
...
Without K2, site T_3 of K1 (only K2 acts on it) falls to zero; values like -1e-15 are zero within the solver's
precision. X_A_S_2 does not change, because its weight on K2 is 0.
These are raw model states. Divide by the value at time 0 to get fold changes.
sbmlsim, from the archive
Unzip the archive, then run this inside the unzipped folder:
python3 -m zipfile -e export/phoskintime_model.omex omex
cd omex
Save there as run_experiment.py:
import json
import pandas as pd
from sbmlsim.simulation import Simulation
from sbmlsim.simulator import Simulator
simulation = Simulation.from_dict(json.load(open("experiments/timecourse.json")))
result = Simulator().simulate("model.xml", simulation)
table = pd.DataFrame(result.values, columns=result.columns)
print(table.shape)
print(table[["time", "X_A_S_1", "X_B_Y_4"]].head())
pixi run python run_experiment.py
cd ..
Other SBML tools
The model is SBML Level 3, so tools such as COPASI (graphical) or Tellurium (Python) are made to read it. We did not test them for this page. The kinase drive is written as long piecewise formulas.
PEtab
PEtab describes a fitting problem (model, data, parameters) in tables.
pixi run phoskintime export petab --run my-project/results --out petab_export
Save as petab_lint.py:
import sys
import petab.v1 as petab
problem = petab.Problem.from_yaml(sys.argv[1])
print("errors found:", petab.lint_problem(problem))
print(len(problem.measurement_df), "measurements,", len(problem.parameter_df), "parameters")
pixi run python petab_lint.py petab_export/problem.yaml
errors found: False
128 measurements, 37 parameters
SBML file alone:
pixi run phoskintime export sbml --run my-project/results --out sbml_export
Cite
Cite PhosKinTime and the tools your run used: How to cite. The metadata of PhosKinTime is
in CITATION.cff, and every run records its
version in metadata.json.
Next: App, command line or Python.