The KinOpt app
kinopt-app is a guided GUI in the browser: it takes you from two CSV files to the fitted α and β, their checks and
the run bundle, one step at a time. It calls the same library functions as the command line (kinopt.api), so a run
in the app gives the same results as kinopt run with the same settings.
Video tutorial
A complete run on the synthetic example (kinopt example), from the inputs to the bundle download (1 min 54 s, no
sound; the captions are part of the recording). The example's values are random numbers, so the fit itself means
nothing.
Start
kinopt-app --workdir ~/kinopt-app # in a clone: pixi run kinopt-app --workdir ~/kinopt-app
The command prints a link such as http://127.0.0.1:43517/?token=… and opens it in the browser. Stop the app with
Ctrl+C (a running fit is cancelled).
- Working folder (
--workdir, default./kinopt-app): uploads are stored ininputs/, every run inruns/<run id>/. The app reads and writes nothing outside this folder. - Local only. The app listens on 127.0.0.1 on a free port. The link carries a random token for this session; every request without it is refused, so other users of the same machine cannot use your app. Do not share the link.
- Uploads: only
.csv, at most 50 MB each (--max-upload-mb). - Settings start from a config.toml (
--config; by default the one found as forkinopt run). Without one, enter the time points of input1's columns under Advanced options: KinOpt has no default time grid.
1. Inputs
Choose input1 (time series: GeneID, Psite, x1 … x14) and input2 (interactions: GeneID, Psite, Kinase). The files
are copied to inputs/input1.csv and inputs/input2.csv in the working folder; files already there are offered
again when the app restarts.
2. Validation
The checks of kinopt validate: required columns, numeric values, duplicated rows and sites, sites of input2 without
an input1 row, sites without kinases, kinases without any input1 series, and the coverage of the network. An error
must be fixed in the files (upload them again) before the run can be configured.
3. Configuration
The settings start at their defaults (those of config.toml). The main ones are shown first: solver, number of starts,
prediction transform, loss and the bounds of β. The rest are under Advanced options: jitter and seeds of the
multistart, scaling, time points, parallel workers, and whether to draw plots, run the fit analysis and write the HTML
report. Paths cannot be set here: the run always writes to runs/<run id>/ in the working folder.
4. Run
The run starts in its own process. The page shows how many starts have finished, the best objective so far, the time
and the end of the run's log (the working folder appears as <workdir>). Cancel the run stops it and its worker
processes.
5. Results
The objective (as labelled in the workbook's Summary, e.g. "Objective (weighted)"), SSE and R², how many starts converged, and how many constraint checks and KKT conditions passed. The tables:
| Tab | Content | Bundle table |
|---|---|---|
| Objective and metrics | the workbook's Summary sheet | metrics |
| Convergence | per start: rank, objective, distance from the best, success, constraint violation, runtime | convergence |
| Starts | per start: seed, objective, residual, KKT stationarity and verdict, accepted, selected | multistart |
| Constraint checks | |Σα − 1| per site, |Σβ − 1| per kinase, bound violations | constraint_checks |
| α (kinase weights) | one row per kinase–site edge | edge_weights |
| β (component weights) | one row per kinase component | regulator_weights |
| KKT | stationarity, primal and dual feasibility, complementary slackness | kkt_conditions |
| KKT multipliers | equality and active-bound multipliers | kkt_multipliers |
| Negative predictions | per site: smallest prediction, time points below zero, flag | prediction_check |
Download saves the run bundle (<run id>.kinopt.zip): every table in Parquet, the workbook, the inputs, the
resolved configuration and the log; see Run bundle. The app draws no figures; kinopt-vis reads the
bundle.