Run bundle (schema 1.1)
Schema 1.1 (PhosKinTime 0.7.0) adds the identifiability columns of the parameters and profile_likelihood tables,
the walk's record (provenance/profiles/profile_walk.json) and the fitted model (provenance/model/model.xml).
bundle verify still checks 1.0 bundles; the published 1.0 contract is unchanged.
A run bundle is the external, versioned form of a network-model run: one self-contained folder or zip with the
results as typed tables, the run's configuration and provenance, and (when small enough) its inputs. It is the input
of phoskintime-vis and follows the bundle conventions shared with
KinOpt and TFOpt. This page is the reference for developers of readers.
- Written by every run:
phoskintime run ends by writing <run>/<run folder name>.pkt.zip
(--no-bundle skips it). A failure to write the bundle is logged as a warning and never fails the run.
- From any finished run folder:
pixi run phoskintime bundle create <run> [--zip] [--out PATH]
[--max-input-mb 50] (library: phoskintime.common.bundle.make_bundle). The run folder is read, never changed; an existing
output is refused.
- Checked with
pixi run phoskintime bundle verify <bundle folder or .pkt.zip> (library:
phoskintime.common.bundle.check_bundle): the manifest against the schema, every file's sha256 and size, unlisted or missing
files, every table's columns, dtypes and nullability against tables.json, every contract table present or
declared missing, the parameter and state order hashes, and the copied inputs. Plain Python.
- Summarised with
pixi run phoskintime bundle inspect <bundle>.
- Test fixtures:
pixi run phoskintime bundle create --synthetic-fixtures --out <dir> writes network.pkt and
network.pkt.zip from a small synthetic run (invented numbers; warning synthetic). phoskintime-vis's upstream
contract check runs this command.
- The contract is published as
contracts/phoskintime/1.1/manifest.schema.json
(JSON Schema 2020-12) and
contracts/phoskintime/1.1/tables.json;
the schema is also at phoskintime/common/bundle/schema/manifest-1.1.schema.json, where phoskintime-vis's
npm run sync-contracts reads it. The packaged copy (phoskintime/common/bundle/contract/1.1/) is the source;
pixi run build-contract writes the published copies and the table section of this page.
Inputs travel with the bundle
Inputs up to 50 MB are copied into provenance/inputs/; larger ones are recorded by sha256 only
(--max-input-mb). Do not share a bundle made from data that must stay private.
Layout
<run>.pkt/ (or <run>.pkt.zip: the same folder, zipped, entries under <run>.pkt/)
├── manifest.json what is in the bundle, with sha256 and size of every file
├── provenance/
│ ├── metadata.json the run's metadata (code commit, inputs, effective settings, labels)
│ ├── config_resolved.yaml the configuration the run used (config_sha256 is its sha256)
│ ├── command.txt, console.log how the run was started; its console output
│ ├── priors_resolved.csv, parameter_status.csv, mode_metadata.json, fitted_params_picked.json
│ ├── profiles/profile_reference.json, posterior/posterior_diagnostics.json (when present)
│ └── inputs/NN_<file> copies of the inputs (≤ --max-input-mb, sha256 checked against the run)
├── tables/<table>.parquet typed by tables.json (below)
└── arrays/<name>.npy little-endian float64 (matrix_*, posterior_draws)
manifest.json
| field |
meaning |
bundle_schema |
"1.1" |
bundle_id |
pkt- + the first 16 hex digits of the sha256 over the files' sha256s |
created_utc / run_created_utc |
when the bundle was written (YYYY-MM-DDTHH:MM:SSZ) / the run's timestamp |
producer |
phoskintime_version, git_commit (the commit of the code that produced the run, from metadata.json; required), git_dirty, code_fingerprint, repository, doi, bundle_writer_version |
workflows |
["networkmodel"] |
model |
model_id (e.g. distributive), variant (model_code N), description |
config_sha256 |
sha256 of provenance/config_resolved.yaml |
parameter_order_sha256 |
sha256 of the parameters names with sample_id = "best", joined with newlines, in table order (also the parameter axis of posterior_draws) |
state_order_sha256 |
sha256 of state_index.state, joined with newlines, in index order |
layers |
rna, protein, phospho: label, unit fold change, fold_change_baseline (time and method from the run's settings) |
parameters, parameter_groups |
every best-fit parameter with its group; label and unit are null (no display labels or units are defined yet) |
inputs |
name, sha256, bytes, source_path, copied, path of the copy |
files |
every file except manifest.json: path, sha256, bytes, kind (provenance, table, array); tables with rows and columns (name, dtype, unit, nullable), arrays with dtype, shape, axes |
missing, skipped |
{artifact, reason, workflow} for every contract table or array not in the bundle |
warnings |
{code, message}, e.g. input_not_copied, posterior_fixed_parameters, synthetic |
known_issues_open, known_issues_source |
the open entries of KNOWN_ISSUES.md at bundling time, and that file's commit and sha256 |
Rules and versioning
- Tables are Parquet files under
tables/<table>.parquet; null means missing, never 0 or NaN-as-0.
- Every file except
manifest.json is listed in manifest.files with its sha256 and size; unlisted files are errors.
- Every table of the contract is present or listed in
manifest.missing (or skipped) with artifact = the table
name and a reason.
- Unknown extra columns and manifest fields are allowed within a minor version; readers ignore what they do not know.
A new major version (2.0) may change or remove fields; readers refuse majors they do not know.
Run files → bundle tables
| table / array |
from the run folder |
notes |
trajectories |
model_trajectories.csv |
scenario = "fit", sample_id = "best"; state names the observable (<protein>_R, <protein>_P, <protein>_<psite>), not an internal ODE state (those depend on the model family) |
state_index |
the observables of trajectories, in order |
|
parameters |
parameter_status.csv (best fit) and optimization/multistart_parameters.csv (scenario = "multistart", sample_id = "start<N>") |
extra columns identifiability_label, status, value_data_only, profile_lower, profile_upper |
metrics |
computed from trajectories (rmse, mae, n_obs overall, per layer and per protein); scalar_objective.csv; profiles/profile_reference.json |
|
multistart |
optimization/multistart_summary.csv |
converged = convergence status "converged"; extra columns convergence_status, accepted, kkt_residual, … |
profile_likelihood |
profiles/profile_likelihood_summary.csv |
delta = objective − f_ref for converged and near-converged refits, null otherwise; space = "physical"; statistic = delta_data_objective or delta_neg_log_likelihood (observation_model) |
kinase_activity |
diagnostics/dense_kinase_drive.csv |
c_k·K(t), the PCHIP drive the RHS integrates (representation = "rhs_pchip") |
matrix_W_site_kinase, matrix_tf_target_tf + matrix_labels |
network_W_global.csv, network_tf_mat.csv |
an absent edge has weight 0 in the model |
posterior_draws |
posterior/posterior_samples.csv |
chain × draw × parameter; parameters that were not sampled are NaN (warning) |
sensitivity |
sensitivity_indices.csv (Morris, [networkmodel] sensitivity = true) |
output = the run's sensitivity_metric; protein null (global indices) |
steady_state |
steady_state_summary/steady_state_protein_summary.csv |
per protein the states R, P_unphos, P_phos, P_total at the end of the long steady-state simulation (time, min); values are model levels, not fold changes; dydt_abs null |
Declared missing in every network-model bundle: embeddings (protwise only, removed in v0.7.0), convergence (no
per-iteration history is recorded), pareto (the fit keeps one vector with one scalar objective; no front exists), knockouts, perturbations,
parameter_profiles, perturbation_samples (not produced); sensitivity when the sensitivity analysis was not run;
steady_state for runs before v0.7.0 (no time column); posterior_draws when no posterior was sampled.
Tables
trajectories (core)
Observed and predicted values per state over time. value_obs and value_pred are null where there is no observation or prediction; nulls are gaps, never zeros.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
scenario |
string |
no |
|
sample_id |
string |
no |
|
layer |
string |
no |
|
protein |
string |
no |
|
psite |
string |
yes |
|
state |
string |
no |
|
time |
float64 |
no |
from manifest |
value_obs |
float64 |
yes |
|
value_pred |
float64 |
yes |
|
parameters (core)
Fitted parameter values. name is the key; label/group/unit are copied from the manifest parameter metadata and may be null. identifiability_label is the label of the data-only profile (estimate (two-sided), upper limit only, ..., not assessed); value_data_only, profile_lower and profile_upper are the data-only optimum and its interval; null without profiles and for multistart rows.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
scenario |
string |
no |
|
sample_id |
string |
no |
|
name |
string |
no |
|
group |
string |
yes |
|
label |
string |
yes |
|
protein |
string |
yes |
|
psite |
string |
yes |
|
kinase |
string |
yes |
|
value |
float64 |
no |
|
lower |
float64 |
yes |
|
upper |
float64 |
yes |
|
unit |
string |
yes |
|
identifiability_label |
string |
yes |
|
status |
string |
yes |
|
value_data_only |
float64 |
yes |
|
profile_lower |
float64 |
yes |
|
profile_upper |
float64 |
yes |
|
state_index (core)
State order of the ODE system; state_order_sha256 is computed over the state column in index order.
| column |
dtype |
nullable |
unit |
index |
int64 |
no |
|
state |
string |
no |
|
layer |
string |
no |
|
protein |
string |
no |
|
psite |
string |
yes |
|
metrics (core)
Scalar metrics in long form. protein and layer are null for overall metrics.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
scenario |
string |
no |
|
layer |
string |
yes |
|
protein |
string |
yes |
|
metric |
string |
no |
|
value |
float64 |
yes |
|
sensitivity (core)
Morris elementary-effects summary.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
yes |
|
output |
string |
no |
|
parameter |
string |
no |
|
mu |
float64 |
yes |
|
mu_star |
float64 |
no |
|
sigma |
float64 |
no |
|
mu_star_conf |
float64 |
yes |
|
embeddings (core)
Low-dimensional embeddings (PCA, t-SNE).
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
yes |
|
method |
string |
no |
|
point_id |
string |
no |
|
label |
string |
yes |
|
time |
float64 |
yes |
|
x |
float64 |
no |
|
y |
float64 |
no |
|
explained_variance_x |
float64 |
yes |
|
explained_variance_y |
float64 |
yes |
|
convergence (core)
Optimizer objective per iteration and start.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
run |
string |
no |
|
iteration |
int64 |
no |
|
objective |
float64 |
yes |
|
component |
string |
yes |
|
multistart
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
start |
int64 |
no |
|
objective |
float64 |
yes |
|
converged |
bool |
no |
|
selected |
bool |
no |
|
pareto
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
solution |
int64 |
no |
|
objective |
string |
no |
|
value |
float64 |
no |
|
selected |
bool |
no |
|
profile_likelihood
Data-only profiles; side is below, above or reference; delta is null for a point whose refit did not converge; threshold is on delta.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
name |
string |
no |
|
grid_value |
float64 |
no |
|
delta |
float64 |
yes |
|
space |
string |
no |
|
statistic |
string |
no |
|
side |
string |
yes |
|
convergence_status |
string |
yes |
|
threshold |
float64 |
yes |
|
kinase_activity
Kinase activity. representation says how it is defined between knots: 'rhs_pchip' = the monotone PCHIP drive the network model's RHS integrates (KNOWN_ISSUES N17 fixed; dense samples); 'rhs_step' = piecewise-constant as an RHS uses it; 'export_linear' = linear interpolation as exported (N17, before the fix).
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
kinase |
string |
no |
|
time |
float64 |
no |
|
value |
float64 |
yes |
|
representation |
string |
no |
|
knockouts
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
no |
|
knockout |
string |
no |
|
state |
string |
no |
|
layer |
string |
no |
|
time |
float64 |
no |
|
value |
float64 |
yes |
|
perturbations
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
no |
|
perturbation |
string |
no |
|
state |
string |
no |
|
time |
float64 |
no |
|
value |
float64 |
yes |
|
steady_state
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
no |
|
state |
string |
no |
|
time |
float64 |
no |
|
value |
float64 |
yes |
|
dydt_abs |
float64 |
yes |
|
parameter_profiles
Model output of one state as one parameter is varied.
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
no |
|
parameter |
string |
no |
|
parameter_value |
float64 |
no |
|
state |
string |
no |
|
time |
float64 |
no |
|
value |
float64 |
yes |
|
matrix_labels
Row/column labels for arrays/*.npy matrices.
| column |
dtype |
nullable |
unit |
matrix |
string |
no |
|
axis |
int64 |
no |
|
position |
int64 |
no |
|
label |
string |
no |
|
perturbation_samples
Parameter values of each sensitivity/perturbation sample and its RMSE (protwise *_perturbations sheets carry the same information).
| column |
dtype |
nullable |
unit |
workflow |
string |
no |
|
protein |
string |
no |
|
perturbation |
string |
no |
|
parameter |
string |
no |
|
value |
float64 |
no |
|
rmse |
float64 |
yes |
|
Arrays
posterior_draws (axes chain, draw, parameter): Posterior draws; parameter axis follows the parameters table order for sample_id='best' (parameter_order_sha256).
matrix_* (axes row, col): Network matrices; labels in matrix_labels.