Documentation

15.6 Settings-file sections, precedence, and paths

Generate a version-matched template instead of copying a partial example:

nlmx nca --print-config analysis.nca

The file uses TOML syntax and contains every accepted setting with comments. Existing files are refused unless --overwrite is supplied, protecting an established analysis from accidental replacement.

Settings precedence

The sections

Section Purpose
[data] File, column mappings, route, mutation, filters, groups, BLQ definition.
[analysis] Interval/steady-state selection, tau, sample minimum, maximum time, duplicates.
[blq] BLQ replacement rule.
[auc] Trapezoid method, C0, zero-at-dose, partial areas.
[lambda_z] Terminal method, candidate controls, quality rules, extrapolation.
[[lambda_z.overrides]] Profile-specific terminal decisions.
[units] Labels and dose factor.
[summary] Strata, statistics, parameters.
[dose_proportionality] Power-model endpoints, interval, limits.
[comparison] Reference, endpoints, interval, limits, bioavailability.
[figures] NCA figure families and individual-panel layout.
[plots], [plots.colors] Publication export and palette.
[output] Directory and optional report/audit file switches.

Unknown keys are rejected because the raw configuration uses strict deserialization. A misspelling does not silently revert to a default. Invalid file settings produce configuration exit code 4; an equivalent invalid command-line value is usage exit code 2.

Precedence and paths

The built-in default is used only when neither file nor CLI provides a value. Command-line values override the file. This permits controlled sensitivity runs but creates a review risk if the .nca file is retained without its command.

Relative paths inside the file—including [data] file and [output] directory—resolve from the settings file's folder, not necessarily the shell's current folder. This makes a portable analysis folder possible.

Configuration discipline

Retain the generated template version, remove or explain irrelevant sections, and avoid maintaining multiple nearly identical files without a comparison record. For release, print the executable version and preserve the exact command in nca_summary.txt.

Common mistakes

  • Assuming commented template values are active overrides.
  • Resolving a data path from the working directory instead of file location.
  • Forgetting a one-off CLI override during rerun.
  • Editing generated outputs instead of changing settings and rerunning.

Checklist

  • Generate the template with the target executable.
  • Review every active nondefault key.
  • Test relative paths from another working directory.
  • Retain the command beside the file.
  • Treat unknown-key errors as useful protection.

Further reading

Use the complete option index, output provenance, and reference reproduction workflow.