Chapter 15. nca: running it
Chapter 14 explained what non-compartmental analysis calculates. This chapter shows how to make nlmx nca calculate it reproducibly from a real dataset, how to inspect every intermediate decision, and how to determine why an expected value or file is absent.
Figure 15.1. A defensible run starts with classified, unit-consistent records and ends with review of intermediate evidence—not merely a parameter CSV.
Novice promise
You do not need prior command-line or NCA software experience. Each page identifies the input, the exact control, the default, what the output means, and a common failure mode. Mathematical interpretation is linked back to Chapter 14 instead of repeated without operational context.
Scope and evidence
The interface and defaults were checked against nlmx 4.5.0, the annotated configuration template, installed help, and docs/NCA.md. The complete command catalogue includes options that nca actually consumes even when the shared help places them under another heading.
pytools/ch15_examples.py generates and runs six deterministic examples under documents/ch15: single-dose oral, steady-state oral, IV infusion, BLQ-heavy/sparse, mixed-route crossover bioavailability, and three-level dose proportionality. Each result directory contains the machine-readable tables, HTML report, text listing, plots, log, and checksum manifest produced by the executable; txtnlmx_version.txt freezes the 4.5.0 executable identity used for the evidence.
Thirty-six Markdown pages
This overview plus a complete option index and 34 numbered pages cover:
- dataset records, mappings, mutations, filters, routes, and profile construction;
- every
.ncasection and every command-line control consumed bynca; - summaries, comparisons, bioavailability, figures, and publication export;
- a column-level guide to parameters, flags, skips, and audit tables;
- six worked runs, troubleshooting, cross-software reproduction, limits, and validation.
Central rule
Keep the complete result directory. nca_parameters.csv answers what was calculated; nca_profiles.csv, nca_lambda_z.csv, the settings, log, and figures explain why. If only the final values survive, many route, BLQ, interval, and terminal-window errors become impossible to diagnose.
Start with the complete command and option index, then follow the first-run walkthrough.