Command line
KinOpt installs three commands. kinopt has subcommands for every task; kinopt-local is the fit with the
options of earlier versions; kinopt-app starts the guided GUI. In a clone without installing, use
pixi run kinopt …, pixi run kinopt-local … and pixi run kinopt-app …, or python -m kinopt ….
Every subcommand calls the library functions of kinopt.api and the other kinopt modules: the
command line, the library and the GUI give identical results.
| Command | What it does | Library |
|---|---|---|
kinopt example FOLDER [--n-starts N] |
Writes the synthetic example project: config.toml, data/input1.csv, data/input2.csv (generated from a fixed seed) |
kinopt.examples.write_example |
kinopt validate [--config PATH] [--input1 F --input2 F] |
Checks the inputs (columns, values, duplicates, sites without input1 rows, kinases without series, coverage); exit status 1 on an error | kinopt.api.validate_inputs |
kinopt run [--config PATH] [overrides] |
Fits the model and writes the results folder and its run bundle | kinopt.api.load_config, kinopt.api.run |
kinopt bundle RESULTS_DIR [--out DIR] [--zip] [--max-input-mb MB] |
Writes a run bundle from a results folder | kinopt.bundle.make_bundle |
kinopt bundle --check BUNDLE |
Validates a bundle (folder or zip) against the contract and its hashes; exit status 1 if invalid | kinopt.bundle.check_bundle |
kinopt readout RESULTS_DIR [--out DIR] [--input1 F] |
Writes every network readout table (kinase activity, contributions, knockouts, dominance, load, ...) as CSV | kinopt.analysis.network_readout |
kinopt similarity RESULTS_DIR [--out CSV] |
Writes the Fréchet distance between observed and estimated series per site | kinopt.analysis.curve_similarity |
kinopt app [options] |
Starts the GUI (as kinopt-app) |
kinopt.app |
kinopt --version |
Prints the version | kinopt.__version__ |
kinopt run
Reads config.toml (the file given with --config; else the one above the working directory, or in a clone the
repository's) and applies the options given on the command line:
| Option | Overrides | Values |
|---|---|---|
--input1, --input2 |
the input files | paths |
--results-dir |
the results folder | path |
--method |
method |
scipy-slsqp (default) or an approximate JAXopt method; see Configuration |
--n-starts |
n_starts |
integer |
--jitter-scale |
jitter_scale |
fraction of each bound's span |
--start-seed |
start_seed |
integer |
--loss-type |
loss_type |
base, weighted, softl1, cauchy, arctan |
--lower-bound, --upper-bound |
bounds of β | numbers |
--prediction-transform |
prediction_transform |
none (default), clip, softplus |
--n-jobs |
parallel workers | integer (-1: all cores) |
--no-plots, --no-fit-analysis, --no-report, --no-bundle |
skip the plots, the fit analysis, the HTML report and folders, the run bundle |
The results folder holds the workbook (kinopt_results.xlsx: Alpha Values, Beta Values, Summary, Observed,
Estimated, Residuals, KKT, KKT Multipliers), run_config.json (the resolved configuration, seeds, versions and
input sha256s), the multistart summary and parameters, the logs, and <results folder name>.kinopt.zip (the
run bundle).
kinopt-local
The fit with the options of earlier versions (underscores): --lower_bound, --upper_bound, --loss_type,
--estimate_missing_kinases yes|no, --scaling_method, --split_point, --segment_points, --method,
--prediction_transform, --copy_to_ode_data_dir, and, new in 0.11.0, --config PATH. The option defaults come
from that config.toml. It runs kinopt.api.run like kinopt run; see the
Configuration Reference.
kinopt-app
| Option | Default | Meaning |
|---|---|---|
--workdir DIR |
./kinopt-app |
Working folder: uploads go to inputs/, runs to runs/<run id>/; nothing is written elsewhere |
--port N |
a free port | Port on 127.0.0.1 |
--max-upload-mb MB |
50 | Largest accepted upload |
--config PATH |
the config.toml found as for kinopt run |
Settings that pre-fill the configuration step (not its paths); without a config.toml, enter the time points |
--no-browser |
Only print the URL |
See The KinOpt app.