CLI Reference
Every command, argument and option of the riana command line, generated from the CLI itself (riana <command> --help prints the same text). List options such as --iso take a single comma/space-separated value. The desktop app (riana gui) builds the same settings from its forms.
riana integrate
Integrate isotopomer abundance over retention time.
Extracts each identified peptide’s MS1 isotopomer envelope (m0, m1, …) from the mzML and integrates it around the chromatographic apex. With –sdrf, identifications come from a quantms mzTab (DDA) or DIA-NN report.parquet (DIA) and each run’s identity (condition, replicate, labeling time, enrichment) from the SDRF; writes one <run>_riana.txt per run and the riana_manifest.tsv that fit and rollup read.
riana integrate [OPTIONS] MZML_PATH ID_PATH
Arguments
| Argument | Value | Description |
|---|---|---|
MZML_PATH |
DIRECTORY |
Folder containing the mzML file(s). |
ID_PATH |
FILE |
The search-ID file: a Percolator target psms.txt (single-mzML path), or — with –sdrf — the quantms mzTab (DDA) / DIA-NN report.parquet (DIA) covering every run. |
Options
| Option | Value | Default | Description |
|---|---|---|---|
--sdrf |
FILE |
– | SDRF samplesheet (the primary path). Drives identity-keyed intake: id_path is read as an mzTab (DDA) or DIA-NN report.parquet (when the SDRF declares DIA), one <mzml_stem>_riana.txt is written per run with its full identity in the header, and a riana_manifest.tsv is written/updated. Without –sdrf, id_path is a Percolator file (the demoted single-mzML tier). |
--experiment-column |
COL |
– | [–sdrf path] SDRF column whose per-row value becomes each run’s experiment (e.g. ‘characteristics[organism part]’), stratifying a multi-factor sheet into separate experiments. Riana groups fits/rollups on (experiment, condition), so the linear-simple Δk then contrasts conditions WITHIN each experiment (e.g. control-vs-KO within each tissue). A matching ‘factor value[…]’ column (e.g. ‘factor value[organism part]’) is left out of the condition label, so labels such as ‘control’ are the same in every experiment. Default: the SDRF file stem on every run (one experiment). |
-s, --sample |
TEXT |
time0 |
Sample name for the Percolator (no-SDRF) path; must end with a number encoding the time point, e.g. time1. Ignored with –sdrf (identity comes from the SDRF). |
-i, --iso |
TEXT |
5 |
Isotopomers to integrate. Give a single index N for the m0..mN envelope (default ‘5’ = m0-m5, what the D2O fit consumes). An explicit comma/space list is still accepted for a non-contiguous set (e.g. the o18 ‘0 6’ pair). Pass ‘auto’ for adaptive N_ISO: per-peptide channels from the IsoSpec init+final envelope (≥1% abundance), extracted at averaged-isotopolog accurate mass, padded to the run-wide max width. |
--ria |
FRAC |
– | Precursor enrichment (RIA max), e.g. 0.06 for 6% v/v D2O. Shapes the final envelope under –iso auto. If omitted, taken from the SDRF characteristics[precursor enrichment], else the 0.06 default; given here, overrides the SDRF. |
-o, --out |
PATH |
. |
Output directory [default: .]. |
-q, --q_value |
FDR |
0.01 |
Integrate only PSMs with q-value below this [default: 1e-2]. |
--peak-rt |
TEXT |
apex |
Window anchor: ‘apex’ (default: the tallest peak near the identification), ‘ms2’ (0.9.0 parity), or ‘consensus’ (median apex over m0..m3; prefer at high D2O). |
--integration-half-width |
MIN|AUTO |
0.15 |
Integration half-width in RT min (default 0.15; dial to your chromatographic peak width), or ‘auto’ to detect boundaries. |
-m, --mass_tol |
PPM |
– | Mass tolerance half-width in ppm (±N ppm). If omitted, taken from the SDRF comment[precursor mass tolerance], else the 10 ppm default. Given here, overrides the SDRF. |
-W, --workers |
N |
1 |
Runs to integrate concurrently on the –sdrf path (one mzML in memory per worker; 2-4 suits a many-timepoint time series) [default: 1]. Extraction within a run is serial, so this is the way to use more cores. |
--resume |
flag | off | On the –sdrf path, skip runs already integrated in the output’s manifest at the current settings (each run’s <stem>_riana.txt is written as it finishes, so a crashed run resumes where it stopped). Assumes the same SDRF/mzTab inputs. |
Advanced integration (tuning dials)
| Option | Value | Default | Description |
|---|---|---|---|
-r, --extraction_half_width, --r_time |
FLOAT |
– | Extraction half-width (RT min, both directions): how much XIC to pull around the PSM. If omitted, derived from –integration-half-width / –peak-rt. (alias: –r_time) |
--baseline |
TEXT |
none |
In-window baseline subtraction: none (default), noise_floor, snip, asls. |
--apex-selection |
TEXT |
tallest |
Apex pick rule for apex/consensus: tallest (default) or nearest. |
--apex-search-half-width |
MIN |
0.25 |
Half-width (RT min) bounding the apex search around the PSM/MBR RT prior (default 0.25; 0 = whole extraction). Tighter keeps the apex on the confident RT anchor — relevant for cross-proportion / MBR stability. |
-w, --write_intensities |
flag | off | Also write the pre-integration intensity trace. |
-S, --smoothing |
INTEGER |
– | Savitzky-Golay smoothing window (odd int ≥ 3). |
--smoothing-polyorder |
ORDER |
2 |
Savitzky-Golay polynomial order; only used with –smoothing [default: 2]. |
-D, --mass_difference |
FLOAT |
1.003354835 |
Mass difference between isotopomers [default: 1.003354835]. |
--ppm-alert |
PPM |
20.0 |
Per-fraction drift-alert threshold: warn when the median ppm error exceeds this [default: 20]. |
--prominence-k |
K |
3.0 |
Apex-finder strictness — a candidate apex must clear K·1.4826·MAD(trace); higher is stricter. Used by –peak-rt apex/consensus and –integration-half-width auto [default: 3.0]. |
--width-rel-height |
FRAC |
0.05 |
Apex-height fraction at which –integration-half-width auto measures the peak width: 0.05 = 5% of apex (Skyline-classic), 0.5 = FWHM (more stable). Only used with –integration-half-width auto [default: 0.05]. |
--apex-n-consensus |
N |
4 |
Leading isotopomer channels (m0..m{N-1}) the consensus apex pools over. Only used with –peak-rt consensus [default: 4]. |
--no-id-check |
flag | off | Disable the intake scan↔︎precursor guard — the per-run check that the mzTab spectra_ref scans point at the matching precursor m/z in this mzML (catches a wrong mzML↔︎mzTab pairing / quantms filename-prefix scan-scramble; mass-based, so immune to OpenMS RT alignment). Only disable for a run you know is correctly paired. |
--precursor-tol-ppm |
PPM |
10.0 |
Per-scan precursor-m/z match tolerance (ppm) for the intake scan↔︎precursor guard [default: 10.0]. Lenient to precursor-refinement drift; a wrong file lands hundreds of ppm off. Ignored with –no-id-check. |
Match-between-runs (MBR)
| Option | Value | Default | Description |
|---|---|---|---|
--mbr |
flag | off | Match-between-runs (mzTab/DDA, –sdrf path): transfer a confidently identified precursor into the runs of its (experiment, condition) curve that missed it, recovering points lost to stochastic MS2 sampling. Transferred rows are flagged evidence=‘mbr’; one with no detectable apex is dropped. No-op on DIA (DIA-NN already propagates). |
--mbr-min-donor-runs |
N |
2 |
MBR donor gate: transfer a precursor only if it is confidently identified in at least N runs of the curve group [default: 2]. |
--mbr-donor-q |
Q |
0.01 |
MBR donor-confidence q-value threshold [default: 0.01]. |
--mbr-min-snr |
SNR |
4.0 |
Drop MBR transfers whose apex SNR (prominence/local-noise) is below this (inf SNR — a sparse MAD=0 trace — also fails). Default 4 (0 = ungated): in testing, ungated transfers hurt the fits, while SNR ≥ 4 improved them without degrading clean curves. |
--mbr-min-scans |
N |
3 |
Drop MBR transfers with fewer than N nonzero scans in the integration window (a sparse XIC can’t define a reliable peak). Default 3 (0 = off); keeps ~98% of real-quality peaks. The companion to –mbr-min-snr. |
riana fit
Fit kinetic models to a labeling time series (heavy water or ¹⁸O water).
Solves each peptidoform’s fraction of new protein (θ) at every timepoint from its isotopomer envelope, then fits a kinetic model for its turnover rate k. With –manifest, runs are grouped into curves by (experiment, condition). Writes riana_fit_peptides.txt and riana_fit_fractions.txt.
riana fit [OPTIONS] [RIANA_PATH ...]
Arguments
| Argument | Value | Description |
|---|---|---|
RIANA_PATH |
FILE … |
Integrate output _riana.txt files (legacy/single-curve path; the sample field encodes the time point, e.g. time0, time6). Omit when using –manifest. |
Options
| Option | Value | Default | Description |
|---|---|---|---|
--manifest |
FILE |
– | riana_manifest.tsv from integrate --sdrf (the primary path). Runs are grouped into kinetic curves by (experiment, condition) with the timepoint taken from the SDRF identity, not the filename. |
--coefficients |
TEXT |
– | Labeling-site coefficient table — REQUIRED; the format depends on –label. hw: a per-AA D2O table (preset deberneh_2025_rss [recommended] | ilchenko_2019 | commerford_1983 | alamillo_2025_{ac16,ipsc,cm}, or an (amino_acid, coefficient) CSV). o18: a length-model table (preset juber_2026_o18_ac16 [in-vitro] | rachdaoui_2009_o18 [in-vivo mouse], or a (feature, coefficient) CSV). |
-m, --model |
TEXT |
exponential |
‘exponential’ (default): the first-order turnover curve θ = 1 − e^(−kt) (with –kp, fitted to fraction new under a rising precursor). Or ‘calibration’: a through-origin FS-vs-mixing-proportion recovery line (R² = recovery quality), auto-selected on –manifest calibration runs. ‘simple’ was renamed ‘exponential’ in 1.2.0; guan and fornasiero were removed (use –kp). |
-l, --label |
TEXT |
hw |
Labeling chemistry: ‘hw’ (heavy water / D2O, default) or ‘o18’ (metabolic H2-18O; length-model Spep + 3-isotope-O envelope). Each needs its matching –coefficients table. (Amino-acid / SILAC fitting was dropped — integrate SILAC peaks, fit L/(H+L) downstream.) |
--kp |
K_P |
– | [Experimental] Precursor rate constant k_p (per labeling-time unit) for a precursor that rises as 1 − e^(−k_p·t) from the start of labeling (no priming dose). With the exponential model each timepoint’s envelope is then solved with the precursor built in: fs holds the fraction of protein made since labeling began, and the peptide curve, R² and k CI are fitted on label content. Default: per experiment from the manifest’s precursor_rate_constant (SDRF characteristics[precursor rate constant]); absent = precursor at plateau from t = 0 (θ, as before). ‘inf’ forces that. |
-q, --q_value |
FDR |
0.01 |
Fit only data points with q-value below this [default: 1e-2]. |
-d, --depth |
INTEGER |
3 |
Fit only peptidoforms seen at this many distinct labeling timepoints (per condition) [default: 3]. Counts distinct timepoints, not raw PSM rows — repeats at one timepoint don’t count toward depth. |
-r, --ria |
FLOAT |
– | Precursor enrichment (asymptotic labeled fraction, e.g. 0.06 for 6% v/v). Default: per-experiment from the manifest’s precursor_enrichment (the SDRF value); given here, it overrides that for every curve. The legacy non-manifest path falls back to 0.06. |
-o, --out |
PATH |
. |
Output directory [default: .]. |
-f, --fs |
N|AUTO |
– | Limited-isotopomer scoring: fit the FS on the leading channels iso0..isoN (give a single index N, e.g. ‘3’ = iso0-iso3) to dodge co-eluting contaminants in the higher channels — integrate wide, fit narrow. Or ‘auto’: per-peptide width keyed on the natural-abundance envelope (iso0-3 for typical peptides, wider for broad ones; RIA-invariant). Default: score the full envelope. |
-W, --workers |
N |
1 |
Worker processes for the per-peptide fit [default: 1]. The parallelism lever: dispatches over a process pool to sidestep the GIL (the per-peptide fit is GIL-bound). Results are identical regardless of N (per-peptide deterministic seed). |
--exclude-mbr |
flag | off | Drop match-between-runs data points (evidence=‘mbr’) before fitting. MBR points are used by default; use this to compare with and without MBR. The n_mbr / n_clean output columns report the split either way. |
--min-spep |
N |
– | Curation floor on a peptidoform’s labelling-site count (Spep): drop those below N before fitting, so under-powered curves (too few sites for the envelope to shift measurably) never reach the results or rollup. Default is label-aware (8 for hw/D2O, 6 for o18 — o18’s +2 Da/site shifts more per site); 0 disables. Tune up for short time series / slow turnover. |
--fraction-collapse |
SUM|ANCHOR |
sum |
How to combine LC fractions / technical replicates of one (peptidoform, charge, biorep, timepoint) before fitting (manifest path; SDRF comment[fraction identifier] defines the fractions). ‘sum’ (default): sum each isoN channel across fractions and intensity-weight the mass/QC columns. ‘anchor’: keep only the highest-total-intensity fraction (legacy parity). Intensities are always combined before a single FS is solved — fraction FS values are never averaged. |
--fs-rail-drop, --no-fs-rail-drop |
flag | on | Drop per-timepoint FS points beyond a 0.05 margin of the physical [0,1] range (over-labelled ≥1.05 or below-natural ≤−0.05) before counting fit points / depth — such a point is a failed solve, not a real measurement. On by default for all fits (margins chosen by benchmark); –no-fs-rail-drop reproduces the pre-1.2.0 numbers (rail-hits then fall to the R² gate). |
riana rollup
Roll per-peptide fits up to protein turnover.
Per (experiment, condition, protein): collapses the peptides’ θ within each biological replicate and timepoint (inverse-variance weighted) and refits k; the median of the peptides’ k is reported alongside. With –model “linear” it also tests the turnover difference between two conditions (Δk), and with –interaction whether that difference varies between experiments. Reads the riana fit outputs from FIT_DIR or via –manifest and writes riana_rollup_proteins.txt and riana_rollup_fractions.txt.
riana rollup [OPTIONS] [FIT_DIR]
Arguments
| Argument | Value | Description |
|---|---|---|
FIT_DIR |
DIRECTORY |
Directory holding riana_fit_peptides.txt + riana_fit_fractions.txt from riana fit. Omit when using –manifest. |
Options
| Option | Value | Default | Description |
|---|---|---|---|
--manifest |
FILE |
– | riana_manifest.tsv (the SDRF/project path). Finds the fit outputs from its stage=‘fit’ rows and writes the rollup next to the manifest, recording stage=‘rollup’ rows. With -o pointing elsewhere it forks a self-contained derived project there and leaves the input manifest untouched. |
-m, --model |
TEXT |
linear |
‘linear’ (default since 1.2.0): the linearized φ=log(1−θ) model — fits a protein’s conditions jointly for a per-condition k and, with two conditions, a Δk test (writes delta_k / delta_k_p / delta_k_p_adj); an experiment with more than two conditions needs the pair named (–reference-condition / –test-condition). ‘exponential’ (the default before 1.2.0): refit θ = 1 − e^(−kt) per (experiment, condition, protein), with no Δk. On a rising-precursor fit both apply to fraction new f unchanged. Renamed in 1.2.0: ‘simple’ → ‘exponential’, ‘linear simple’ → ‘linear’. |
--phi-limit |
PHI |
-4.0 |
[‘linear’ only] Plateau-truncation threshold in φ-space: points with φ=log(1−θ) at/below this are dropped per curve (saturated tail = measurement noise, not slope). −4 ≈ θ 0.98, −3 ≈ θ 0.95. |
--linear-weights |
SCHEME |
wls |
[‘linear’ only] Weighting of the φ-space fit: ‘wls’ (default) weights by the delta-method inverse variance (1−θ)², taken from the fitted value — φ=log(1−θ) makes FS-scale noise heteroscedastic, so an unweighted fit is anti-conservative (~28% false positives at α=0.05, and k biased ~14% low in the fast tail). ‘ols’ restores the old unweighted fit (audit only). –interaction always uses ‘wls’. On a rising-precursor fit (fs = fraction new f) ‘wls’ weights by (1−f̂)². |
--reference-condition |
COND |
– | [‘linear’ only] Baseline condition of the Δk contrast — delta_k = k(test) − k(reference). Default: alphabetically first. |
--test-condition |
COND |
– | [‘linear’ only] Comparison condition of the Δk contrast (requires –reference-condition). Naming a pair contrasts exactly those two even when >2 conditions are present — an interim for multi-group projects before full all-pairwise. NOTE: the joint fit still pools the residual variance over ALL conditions in the data, so scope the SDRF conditions to the ones you mean to compare. |
--level |
TEXT |
protein |
What the protein model is fitted to. ‘protein’ (default): the peptides’ θ collapsed per biological replicate and timepoint by inverse variance, then one fit (under ‘linear’, each peptide keeps one precision level across conditions). ‘peptide’ (–model linear only): a mixed model on the peptides’ own points — peptide slope offsets plus random slopes for labeling time and animal (paired automatically when the same characteristics[individual] carries both conditions); with –interaction, the matching joint model. Slower; adds delta_k_df, n_animals, paired, random_effects, sigma_time and sigma_animal. The median of peptide k is always carried as peptide_median_k. |
--parsimony |
TEXT |
unique |
Protein attribution at summarize time. ‘unique’ (default): only single-accession peptides contribute (a shared peptide’s envelope blends both proteins’ turnover, so it can’t be attributed). ‘isoform’: also fold isoform-only-shared peptides into the canonical entry, unless an isoform in the group carries its own unique peptide. |
--min-peptides |
INTEGER |
1 |
Min attributed peptides (passing the gates) for a protein to be reported in a condition [default: 1 — one good peptide; 2 was the default before 1.2.0]. |
--min-points |
INTEGER |
3 |
Min collapsed (t, theta) points for the refit [default: 3]. |
--min-fit-points |
N |
– | Peptide-level biological-replicate gate: keep only peptidoforms fit on >= N points. Default auto = 2 for a SINGLE-TIMEPOINT experiment (detected from one distinct labeling time — R² is degenerate there, so curation rides on this replicate floor + –k-cv, with R²/rescue bypassed), off otherwise. Set 3+ to require more replicates, or 1 to disable. |
--peptide-admission |
POLICY |
auto |
How a peptide’s per-condition curation result maps across conditions in a MULTI-condition rollup (single-condition is unaffected). ‘any’: passed in one condition ⇒ kept in all (anti-conservative). ‘own’: kept in each condition where it passes — the conditions can then rest on different peptides. ‘all’: kept only if it passes in EVERY condition it appears in (for –model linear, the reference and the test), so comparisons rest on the same peptides. ‘auto’ (default): ‘all’ for the protein-level linear Δk, ‘own’ for –level peptide (its Δk is within-peptide) and for the exponential / calibration models (no Δk). |
--min-spep |
N |
– | Optional Spep (labelling-site) admission gate before rollup — drop peptides below N. Off by default (the primary gate is at fit, so a manifest rollup already inherits it); set this for explicit-file inputs or belt-and-braces. |
--min-r2 |
R2 |
0.8 |
Peptide R² admission gate before rollup (default 0.8). Keep a peptide if R² ≥ this, OR (flat-curve rescue) R² ≥ –rescue-r2 and k_cv < –k-cv. The gate is needed for good within-protein geom-CV (the inverse-variance weighting alone under-curates). Pass 0 (or any value ≤ 0) to disable it entirely. |
--k-cv |
FLOAT |
0.2 |
Flat-curve rescue: max relative uncertainty of k̂ — k_cv = (ci_hi−ci_lo)/(2·|k|), a scale-free CV of the rate constant — for a low-R² peptide to still be admitted (only with –min-r2). Being scale-free it needs no retuning across time-series ranges or k units (/day vs /h), unlike an absolute SE. Set ≤ 0 to disable (R²-only gate). |
--rescue-r2 |
FLOAT |
0.6 |
Flat-curve rescue: min R² floor for the –k-cv rescue (only with –min-r2). Guards against degenerate k≈0 fits whose CI collapses to a spuriously tight k_cv; the exact value barely matters (any floor above the negative-R² band works), 0.6 is validated. |
-W, --workers |
N |
1 |
Worker processes for the per-protein refit [default: 1]. The parallelism lever for the GIL-bound rollup: dispatches proteins over a process pool. Results are identical regardless of N (per-protein deterministic seed). |
--exclude-mbr |
flag | off | Drop match-between-runs fraction points (evidence=‘mbr’) before the protein refit. MBR points are used by default; the n_mbr / n_clean output columns report the composition either way. |
--experiment |
EXP |
– | Restrict the rollup to a single experiment (e.g. one tissue when the manifest was stratified via integrate --experiment-column). Default: all experiments in one pass, each contributing per-experiment rows to the one output table (Δk is always within-experiment). |
--plot |
flag | off | [‘linear’ only] Also write per-protein φ-space Δk comparison curves to a PDF per experiment (riana_rollup_curves[_<exp>].pdf) — the batch analog of the GUI’s one-at-a-time view. One page per protein, sorted by delta_k_p_adj. |
--interaction |
flag | off | [‘linear’, 2+ experiments] Also test whether the condition effect differs between experiments that are strata of the SAME animals (e.g. tissues split with integrate --experiment-column). One joint fit per protein with a random slope per animal. The animal is the SDRF’s characteristics[individual] when present; otherwise condition × labeling time × biological replicate, so biological_replicate must then identify the same animal in every experiment. Writes riana_rollup_interaction.txt: per-experiment k and Δk from the joint fit, the interaction test on the ratio scale (k_test/k_reference; primary) and on the additive scale, and the mean Δk across experiments, each BH-adjusted across proteins. Compares –reference-condition with –test-condition (or the other condition when there are exactly two). With –level peptide the joint fit runs on the peptide points, with random slopes for labeling time, animal, animal × experiment and experiment × time. |
-o, --out |
PATH |
. |
Output directory [default: .]. |
riana gui
Launch the desktop app (needs the optional gui extra: pip install “riana[gui]”).
Integrate, Model (fit) and Protein (rollup) tabs over the same engine as the command line, with interactive chromatogram, curve and φ-space plots.
riana gui [OPTIONS]