Documentation

16.20 Settings-file sections, precedence, and paths

Generate the version-matched template:

nlmx autoinit --print-config analysis.init

The .init file has five relevant tables:

Section Purpose
[data] File, mappings, route, filters, groups, LLOQ/BLQ, DV scale.
[autoinit] Method, ML samples, NCA gates, OMEGA method, seed.
[units] Explicit scale or dose/concentration units.
[output] Directory and HTML switch.
[plots], [plots.colors] Optional publication-plot export.

Every key is optional. Unknown keys are rejected, protecting against silent misspellings. [data] mutate is specifically refused for autoinit even though the shared raw-data structure can represent it for other commands.

Precedence

Command-line values override settings; settings override built-in defaults. Dataset precedence is positional, --data, then [data] file. Do not specify contradictory routes merely because one has known priority.

Relative paths inside the file resolve from the file's folder. This allows a portable analysis directory containing configuration, input, and output. CLI paths are interpreted from the shell context.

Defaults worth freezing

The important scientific defaults are method auto, 2000 ML simulations, NCA adjusted R² 0.8, maximum extrapolation 30%, robust OMEGA, seed 20240611, route auto, and scale V. Write them explicitly in release configuration when changes across versions would matter.

The template's [plots] section is shared with other commands. Plot enablement is false for publication files unless enabled=true or --plots is supplied.

For an auditable run, keep the printed template in version control and remove or comment on assumptions explicitly rather than relying on memory. After a version upgrade, print a second template and compare keys, accepted values, and defaults. A configuration that still parses can nevertheless change scientific behavior when an intentionally inherited default changes.

Common mistakes

  • Copying an .nca or .screen file and changing the extension.
  • Assuming relative data paths start at the shell directory.
  • Forgetting one-run CLI overrides.
  • Adding unsupported mutation or unrelated settings.

Checklist

  • Generate the template with the target executable.
  • Review every active nondefault.
  • Verify path resolution from another directory.
  • Retain command and configuration together.
  • Revalidate after version upgrades.

Further reading

Use the option index, first run, reproducibility, and Chapter 7 configuration principles.