Documentation

36.15 custom command reference

custom command reference

This chapter is a lookup reference for nlmx 4.16.1. Option tables are generated from the installed release executable. Read an option in the context of the command page: nlmx uses a global parser, but an accepted option can be irrelevant to a command unless its help text names that command or the command's method chapter defines the behavior.

The safe sequence is: identify the installed version, open that command's help, freeze input/settings/output paths, run into a new or empty output directory, inspect both the process status and the command-native verdict, and retain the log/resolved settings/checksums. A command line is reproducible only when its referenced files and software version are also frozen.

Synopsis

nlmx custom [OPTIONS] [DATASET]

Required context. Any supported delimited table plus a plot or table specification on the command line or in .custom settings.

What it does. Applies filters, subsets, and mutations, then creates ggplot2-style layers/facets/scales or listing, summary, baseline, frequency, pivot, and correlation tables.

Principal outputs. PNG/SVG graphics and CSV/Markdown/HTML tables with resolved settings, transformed-data context, log, and checksums.

Positional arguments shown by installed help

[DATASET]
          Dataset (.csv, a NONMEM table or other delimited text with a header); same as --data

Practical invocations

  1. nlmx custom data/analysis.csv --geom point,smooth --x TIME --y DV --color DOSE
  2. nlmx custom -c exposure.custom

Start with installed help and, when available, generate the complete settings template before entering study choices. Run into a new or empty output folder. After completion, review the command's native summary/verdict, warnings, logs, resolved settings, and checksum manifest—not only the console's final line.

Complete installed option reference

The following 151 options are parsed directly from nlmx 4.16.1 custom --help. The unmodified txthelp snapshot and its SHA-256 are preserved in the jsonhelp inventory. Shared descriptions sometimes mention several commands; apply only the clause naming custom unless its method chapter specifies otherwise.

Options

Option Installed description
-h, --help Print help

Method

Option Installed description
--threads <THREADS> Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value

Core

Option Installed description
-c, --config <FILE> Settings file of the command (TOML syntax), with the command's extension: .covar (cov, posterior, inspect, validate, fit), .qcd, .qcn, .eda, .nca, .init, .screen, .vpc, .forest, .sims, .er, .power, .gen, .ask
-o, --output <OUTPUT> Output directory
--run-dir <RUN_DIR> Existing run directory, for resume
--overwrite Allow writing into a non-empty output directory
--dry-run Run the validation pipeline instead of the full analysis
--no-checkpoint Do not write replicate checkpoints (posterior engine)

Shared numerics

Option Installed description
--seed <SEED> Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML)

Logging and output

Option Installed description
--suppress-console <0|1> 0 (default) prints progress to the terminal; 1 silences it (the log is still written)
--log-file <LOG_FILE> Write the transcript here instead of log_<id>.txt
--no-color Disable ANSI colour
--license Print the license (CC BY-ND 4.0), the third-party components, how long this version may be used and how to contact the author, and stop
-v, --verbose... Increase verbosity (repeatable: info -> debug -> trace)
-q, --quiet Errors only on the terminal (the log file is unaffected)
--keep-subject-ids Do not hash subject identifiers in outputs
--format <FORMAT> Output format for schema: txt | toml | json | json-schema [default: txt]

VPC

Option Installed description
--filter <EXPR> R-style condition on data columns. vpc: keep the subjects matching it (at each subject's first record), e.g. "STU > 3001" or "GROUP == 1 & WT < 70 | HT > 154". autoinit, screen: keep the rows matching it (as NONMEM IGNORE/ACCEPT, doses and observations), with text values in quotes, e.g. 'C != "XYZ"' or 'SITE %in% c("A","B")'; an empty cell is "" er: keep the rows matching it
--legend-position <POS> vpc, fit, autoinit, screen: legend position on the charts: bottom (default) | top
--x-title <TEXT> vpc: x-axis title (default: the --idv name)
--y-title <TEXT> vpc: y-axis title of the VPC (default: DV, or prediction-corrected DV)
--no-plots vpc: tables only; no HTML report or report SVG files
--no-svg vpc, fit, autoinit, screen: write no SVG files at all (neither svg/ nor plots/svg/); PNG plots and the HTML report are unaffected
--print-config <FILE> write the command's annotated settings template to FILE (with the command's extension, e.g. nlmx.eda, nlmx.vpc) and exit

Dataset (autoinit, screen)

Option Installed description
--mutate <ASSIGNMENTS> eda, er, nca: change or create dataset columns before the analysis, R-syntax assignments separated by ;, e.g. "DV = DV * 4; LNDV = log(DV); HIGH = DOSE == 100" (true is 1, false 0); runs before the filters ([data] mutate)
--group <COLUMNS> autoinit, screen: grouping columns, comma separated, for subjects sharing a dosing regimen (or study, formulation, route), e.g. REGIMEN or STUDY,FORM. One set of estimates is made from all subjects, each with its own doses; the groups give the route per group, a regimen summary and a check that their clearances agree er: dose-group (arm) column, used with
--placebo

Plots (vpc, fit, autoinit, screen, nca)

Option Installed description
--x-scale <SCALE> vpc, fit, autoinit: x axis of the plots: linear (default) | log (semi-log; values ≤ 0 are not drawn)
--y-scale <SCALE> vpc, fit, autoinit: y axis of the plots: linear (default) | log (semi-log; fit: the DV plots only)
--plot-width <W> plots: figure width in --plot-units (default 7 in)
--plot-height <H> plots: figure height in --plot-units (default 5 in)
--plot-units <UNITS> plots: units of width and height: in (default) | cm | mm | px
--plot-dpi <DPI> plots: resolution in dots per inch (default 300)
--plot-base-size <PT> plots: base font size in points (default 11, as ggplot2)
--plot-format <FORMAT> plots: png (default) | svg | both
--plot-no-title plots: no chart title (for a figure caption)
--plot-no-legend plots: no legend

Custom

Option Installed description
--skip <N> custom: ignore the first N lines of the dataset before reading it (a title or run line above the column names, as in some NONMEM tables); 0 by default
--header <BOOL> custom: true (the default) takes the first line left (after --skip) as the column names; false reads every line as data and names the columns A, B, C, ... Z, AA, AB, ... [possible values: true, false]
--no-header custom: same as --header false: the dataset has no column names, so the columns are A, B, C, ...
--geom <GEOMS> custom: the layers of the plot, comma separated: point, jitter, line, path, step, smooth, boxplot, violin, bar, col, histogram, density, area, ecdf, qq, errorbar, pointrange, tile, text (--list-plots describes them), e.g. point,smooth
--x <COLUMN> custom: x aesthetic: a column, or an R expression such as log(CONC); factor(COL) makes it discrete
--y <COLUMN> custom: y aesthetic: a column or an R expression
--color <COLUMN|COLOUR> custom: colour by a column (discrete or gradient), or a fixed colour (name or #RRGGBB)
--fill <COLUMN|COLOUR> custom: fill by a column or a fixed colour
--shape <COLUMN|SHAPE> custom: point shape by a column, or a fixed shape (circle, square, triangle, diamond, plus, cross)
--size <COLUMN|NUMBER> custom: point size or line width by a column, or a fixed number
--linetype <COLUMN|TYPE> custom: line type by a column, or a fixed one (solid, dashed, dotted, dotdash, longdash)
--label <COLUMN> custom: text of the text geom
--plot-name <NAME> custom: file name of the plot (default plot)
--title <TEXT> custom: plot title; report: title of the document
--subtitle <TEXT> custom: plot subtitle; report: subtitle of the document
--caption <TEXT> custom: plot caption (bottom right)
--plot-alpha <0-1> custom: opacity of points, areas and bands (default depends on the geom)
--line-width <NUMBER> custom: line width (default 1)
--facet-rows <COLUMNS> custom: facet_grid rows: one or more columns, comma separated
--facet-cols <COLUMNS> custom: facet_grid columns
--facet <COLUMNS> custom: facet_wrap by one or more columns
--facet-ncol <N> custom: number of panel columns of facet_wrap
--facet-nrow <N> custom: number of panel rows of facet_wrap
--facet-scales <SCALES> custom: fixed (default) | free | free_x | free_y
--facet-labels <LABELS> custom: strip text: value (default) | both (COLUMN: value)
--legend-title <TEXT> custom: legend title
--xlim <LO,HI> custom: x axis limits, e.g. 0,100 (an empty end is open: ,100)
--ylim <LO,HI> custom: y axis limits
--x-angle <DEGREES> custom: angle of the x axis labels (default: 45 when category labels would overlap)
--hline <VALUES> custom: horizontal reference lines at these y values
--vline <VALUES> custom: vertical reference lines at these x values
--abline <A,B> custom: reference line y = A + B*x
--smooth-method <METHOD> custom: smooth geom: loess (default) | lm
--span <0-1> custom: loess span (default 0.75)
--smooth-level <0-1> custom: confidence level of the smooth band (default 0.95)
--nbins <N> custom: number of histogram bins (default 30)
--binwidth <NUMBER> custom: histogram bin width (overrides --nbins)
--y-stat <STAT> custom: what a histogram / bar / density shows: count (default) | density | percent
--position <POSITION> custom: bars and histograms of groups: stack (default) | dodge | fill | identity
--summary-fun <FUN> custom: bar / errorbar / pointrange summary of y: mean (default), median, sum, min, max, n, sd, geomean, q1, q3
--summary-error <ERROR> custom: error bars: sd | se | ci95 | iqr | range | none
--jitter <WIDTH> custom: width of the jitter geom as a fraction of the spacing (default 0.4)
--theme <THEME> custom: classic (default) | bw | minimal | gray
--palette <PALETTE|COLOURS> custom: colour palette name (okabe-ito, tableau, viridis, ...), a colour list, or LEVEL=COLOUR pairs
--select <COLUMNS> custom: keep these columns, in this order (after the other data steps)
--sort <COLUMNS> custom: sort the rows by these columns (prefix - for descending)
--distinct <COLUMNS> custom: keep the first row of every combination of these columns
--head <N> custom: keep the first N rows
--table-kind <KIND> custom: make a table: listing | summary | demographics (table1) | frequency | pivot | correlation (--list-plots describes them)
--table-name <NAME> custom: file name of the table (default table)
--table-title <TEXT> custom: table title
--table-footnote <TEXT> custom: table footnote
--table-by <COLUMNS> custom: group the table by these columns (summary, demographics)
--table-stats <STATS> custom: statistics, comma separated: n, nmiss, mean, sd, se, cv, geomean, geocv, median, min, max, sum, q1, q3, iqr, lcl95, ucl95, pNN, mean_sd, mean_se, mean_ci, median_range, median_iqr, geomean_cv, range
--table-rows <COLUMNS> custom: rows of a frequency / pivot table
--table-columns <COLUMNS> custom: columns of a frequency / pivot table
--table-value <COLUMN> custom: the column a pivot table summarises
--table-fun <STAT> custom: the statistic of a pivot table (default mean)
--table-percent <BASE> custom: percentages of a frequency table: none (default) | row | column | total
--table-digits <N> custom: significant digits of this table (default --digits, else 3)
--table-categorical <COLUMNS> custom: categorical variables of a demographics table
--table-continuous <COLUMNS> custom: continuous variables of a demographics table
--table-max-levels <N> custom: a numeric variable with at most N different values is categorical in a demographics table (default 5)
--table-method <METHOD> custom: correlation method: pearson (default) | spearman
--flip custom: swap the axes (coord_flip)
--equal-axes custom: the same range on both axes (coord_equal-like), e.g. for observed against predicted
--identity custom: draw the line of identity y = x
--no-smooth-se custom: no confidence band around the smooth
--svg custom: also write the plots as SVG (plots/svg/)
--no-csv custom: do not write the tables as CSV
--no-markdown custom: do not write the tables as Markdown
--no-html custom: do not write the tables as HTML; report: no HTML document (the default)
--border-color <COLOUR> custom: outline colour of bars, boxes, violins, histograms, areas and tiles (a name or #RRGGBB; none = no outline); default: the colour aesthetic, else dark grey
--border-width <NUMBER> custom: outline width of bars, boxes, violins, histograms, areas and tiles, relative to the default (1); 0 = no outline
--stroke-color <COLOUR> custom: outline colour of the points (a ring around a filled marker); default none
--stroke-width <NUMBER> custom: outline width of the points (default 0.6 when --stroke-color is given)
--color-title <TEXT> custom: title of the legend of the colour aesthetic (--legend-title sets all legends)
--fill-title <TEXT> custom: title of the legend of the fill aesthetic
--shape-title <TEXT> custom: title of the legend of the shape aesthetic
--size-title <TEXT> custom: title of the legend of the size aesthetic
--linetype-title <TEXT> custom: title of the legend of the line type aesthetic
--ref-color <COLOUR> custom: colour of the reference lines (--hline, --vline, --abline, --identity); default dark grey
--ref-linetype <TYPE> custom: line type of the reference lines: solid, dashed (default), dotted, dotdash, longdash
--ref-width <NUMBER> custom: width of the reference lines relative to the default (1)
--title-size <PT> custom: font size of the plot title in points (default 1.2 x the base size)
--axis-title-size <PT> custom: font size of the axis titles in points (default the base size)
--axis-text-size <PT> custom: font size of the tick labels in points (default 0.85 x the base size)
--legend-text-size <PT> custom: font size of the legend labels in points (default 0.85 x the base size)
--strip-text-size <PT> custom: font size of the facet labels in points (default 0.85 x the base size)
--title-align <ALIGN> custom: left (default) | center | right: where the title and subtitle sit
--plot-background <COLOUR> custom: colour of the figure background (default white)
--panel-background <COLOUR> custom: colour of the panels (default depends on --theme)
--grid-color <COLOUR> custom: colour of the grid lines (none removes them; default depends on --theme)
--x-breaks <NUMBERS> custom: tick positions of a numeric x axis, e.g. 0,12,24,48 (default: chosen from the data)
--y-breaks <NUMBERS> custom: tick positions of a numeric y axis
--bar-width <0-1> custom: width of bars, boxes, violins and tiles as a fraction of the space of a category (default 0.8 for bars, 0.75 for boxes, 0.9 for violins)
--band-alpha <0-1> custom: opacity of the confidence band of the smooth (default 0.2)
--text-size <PT> custom: font size of the labels of the text geom in points (default the base size)
--na-color <COLOUR> custom: colour of the rows whose colour or fill value is missing (default grey)
--table-rename <OLD=NEW,...> custom: rename column headings and cell texts of the table: OLD=NEW pairs, comma separated (use the settings file for texts with commas), e.g. WT=Weight (kg),M=Male
--table-hide <COLUMNS> custom: leave these columns out of the table (by their heading, after --table-rename)
--table-na-text <TEXT> custom: text for a missing value in the table (default NA)
--table-decimals <N> custom: show the numbers of the table with N decimals instead of --table-digits significant digits
--table-percent-digits <N> custom: decimals of the percentages in frequency and demographics tables (default 1)
--no-outliers custom: boxplots without the points beyond the whiskers
--table-transpose custom: swap the rows and columns of the table
--no-settings-file custom: do not write custom_settings.custom (the settings file that reproduces this run)
--no-tables custom: plots only, write no tables
--table-total custom: add the total / overall row and column
--no-table-total custom: leave out the total / overall row and column

QC

Option Installed description
--delimiter <DELIM> qc-data: field delimiter of the dataset: auto (default) | comma | tab | space | semicolon

EDA

Option Installed description
--list-plots eda: print every standard plot and table (ID, name, category) and exit

Sims: simulation

Option Installed description
--table-vars <LIST> sims: model variables written next to the simulated values, e.g. CL,V,KA (default: the items of $TABLE). custom: the columns a summary / demographics / correlation table describes

Sims: metrics and summary

Option Installed description
--digits <N> sims: significant digits of the summary tables (default 4)

Interpretation and common failure

Expressions and aesthetic mappings can silently change populations or units if not reviewed. Preserve the .custom file and verify grouping, denominators, factor ordering, scale transformations, and legend mappings.

The detailed method and examples are in the relevant book chapter. Common nonzero process classes are documented on 36.35. A process exit of zero still requires command-native scientific and numerical review.

Minimal handoff record

Record the version, exact command and working directory, input/settings hashes, selected options and defaults, output path, process exit, native verdict or convergence state, warnings/exclusions, principal results with uncertainty, checksum verification, and reviewer disposition.

See the previous page, next page, and complete command index.