Command line
PhosKinTime is used in three ways: this command line, the guided app in the browser, and the
library (phoskintime.networkmodel.api). All three run the same code on the same files: a config.toml and a run
folder.
From a clone of the repository, with Pixi:
pixi install
pixi run phoskintime example my-project # a synthetic example project
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
pixi run phoskintime bundle inspect my-project/results/results.pkt.zip
pixi run phoskintime <command> runs python -m phoskintime.config.cli <command>; inside pixi shell call
python -m phoskintime.config.cli <command> directly. pixi run phoskintime --help lists the commands and
pixi run phoskintime <command> --help their options.
| command | what it does |
|---|---|
example <folder> |
Writes a synthetic example project: data/ (kinase and TF networks, MS and RNA series, KinOpt and TFOpt workbooks; invented curves, not data), config.toml, README.md. --n-starts, --cores. |
validate --conf <config.toml> |
Reads everything a run would read and builds the network, without fitting: input files, the KinOpt/TFOpt file contract, time columns against the time grids. Prints errors and warnings; --verbose also what was read, dropped or defaulted. Exit code 1 when a run could not start. |
run --conf <config.toml> [options] |
One network-model run (python -m phoskintime.networkmodel.runner); every runner option can follow (phoskintime run --help). The run folder is [networkmodel] output_dir or --output-dir. The run ends by writing its run bundle <run>/<run name>.pkt.zip (--no-bundle skips it). |
bundle create <run> [--zip] [--out PATH] |
Writes the run bundle of a finished run (the run folder is not changed). --synthetic-fixtures --out DIR writes test bundles from a synthetic run. |
bundle verify <bundle> |
Checks a bundle (folder or .pkt.zip) against the contract. |
bundle inspect <bundle> |
Summarises a bundle: producer, model, tables, arrays, missing artifacts. |
analyze <name> [options] |
Post-run analyses (below); analyze --list, analyze <name> --help. |
export sbml\|petab\|standards [options] |
The fitted model as SBML, a PEtab v1 problem for AMICI/pyPESTO (validation), or one COMBINE archive with the SBML model, its equations, SBGN maps, CellML, sbmlsim experiments, a global sensitivity and the PEtab v2 problem (Standards and tools). |
simulate run\|show\|web\|conformance |
In-silico experiments on a fitted model: interventions, bands, the experiment bundle, the browser engine and its conformance suite. |
app [--port 8765] [--no-browser] [--workspace DIR] |
The guided app in the browser (local only). |
prep |
Preprocessing of the raw inputs (phoskintime.processing.cleanup): writes input1.csv … input4.csv to data/ (Processing). |
clean |
Removes Python/Numba caches and build artifacts (never .pixi/ or .git/). |
Pixi shortcuts: pixi run run … (= phoskintime run), pixi run app, pixi run bundle …, pixi run prep. The
former name networkmodel (pixi run networkmodel, phoskintime networkmodel) still runs the model.
Analyses (phoskintime analyze)
Every analysis reads finished runs or the KinOpt/TFOpt workbooks and writes into the folder you give it.
| name | input | output |
|---|---|---|
summary |
--runs NAME=RUN … |
one row per run: objective, convergence, accepted starts, KKT, wall time, labels (--out STEM: .md and .csv) |
profiles |
--runs RUN … |
data-only profile likelihoods of every free parameter, labels, intervals and the fit-inside verdict (--out DIR; default <run>/analysis/profiles/; --cores, default all available cores but one; --walk restarts|legacy, --restarts) |
design |
--runs RUN … |
experiment-design report: local Fisher information, near-null directions, designs D1–D6 (--out DIR) |
insights |
--output-dir RUN [--out DIR] |
mechanistic discovery on the fitted run (default <run>/analysis/insights/) |
temporal |
--results-dir RUN [--samples 128] [--seed 0] |
Sobol indices of every protein over time, in sbmlsim (<run>/analysis/temporal/gsa_<protein>.csv and .html) |
kinopt-ensemble |
--conf, --kinopt, --kinopt-run-dir, --out |
one fit per accepted KinOpt start and the spread of parameters and labels |
counts |
--kinopt-xlsx, --tfopt-xlsx |
kinase and TF counts and weights from the workbooks |
similarity |
--kinopt-xlsx, --tfopt-xlsx |
Fréchet distance between the workbooks' Observed and Estimated curves |
kinopt-tables |
<kinopt_results.xlsx> [--outdir] |
per-site LaTeX/CSV α/β tables |
subnetworks |
--input2, --input4, --outdir |
per-node subnetworks in the input layouts |
accumulators |
--trajectories RUN/model_trajectories.csv |
proteins whose predicted level rises while their mRNA does not |
The time-resolved export of a finished run (every model quantity on a continuous grid, no refit) is
pixi run time-resolved --run-dir <run> [--t-end] [--export-fluxes] (written to <run>/analysis/time_resolved/), or
--export-time-resolved on the run (written to <run>/time_resolved/).
Exit codes
0 success; 1 a check failed (validate, bundle verify, an analysis); 2 a usage error (unknown name, existing
output, missing folder). A failed run returns the runner's exit code.