Documentation

37.8 Control-stream-QC settings: complete generated key catalogue

Chapter 37.8 visual
Settings reference workflow

This is the exhaustive generated-template catalogue for nlmx.qcn in nlmx 4.16.2. It contains 151 unique dotted key paths. “Active” means the generated example assigns the key; “commented example” means the template exposes it without assigning it. The value column is a template value or example—not automatically the program default. Defaults and constraints are reported only when the nearby template annotation states them.

How to use the table

Search by the full table and key context. Preserve TOML type: do not quote numbers or Booleans, and do not replace an array with a comma-separated string unless the template explicitly uses a string grammar. When two settings interact, use the orientation page and command chapter to review the combination rather than interpreting rows independently.

input

Key Type Template state Generated value/example Template annotation and constraints
control_stream string commented example "models/run1.ctl" the control stream (or give it on the command line)
data string commented example "data/pk.csv" --data: read this dataset instead of the file named in $DATA
check_data Boolean active true --no-data-check: false = do not open the dataset
delimiter string active "auto" auto | comma | tab | space | semicolon (the dataset)
max_rows integer active 1000000 dataset lines read at most

nonmem

Key Type Template state Generated value/example Template annotation and constraints
version string active "7.5" --nm-version: 7.2 … 7.6 (METHOD=NUTS needs 7.4 or later)
max_line_length integer active 160 characters per line; older NM-TRAN versions stop at 160,
max_label_length integer active 20 recent ones accept longer lines, so this is a portability limit characters of $INPUT labels and variable names
max_conditions integer active 100 IGNORE/ACCEPT conditions in $DATA
extra_records array active [] record names to accept in addition to NONMEM's (site extensions)

code

Key Type Template state Generated value/example Template annotation and constraints
undefined Boolean active true COD06: report variables used before or without a definition
unused Boolean active true COD03-05: report THETA/ETA/EPS that the code never uses
protection Boolean active true COD08: report unprotected LOG, SQRT and divisions
protected_functions array active ["LOG", "LOG10", "SQRT"] No default or constraint is stated on this template line; consult the command page and resolved run.
zero_risk array active ["W", "IPRED", "F", "SD"] functions whose argument must be positive
known_variables array active [] denominators that can be zero (W = 0 when the error is 0, …) names defined elsewhere (verbatim code, $INFN), not reported as undefined
mu_reference Boolean active true COD11: suggest MU referencing for EM and Bayesian methods

parameters

Key Type Template state Generated value/example Template annotation and constraints
bound_margin number active 0.01 a THETA within this fraction of its range from a bound is "at the bound"
min_cv number active 1.0 OMEGA values with a CV (%) below this …
max_cv number active 300.0 … or above this are reported (PAR08)
zero_theta Boolean active true PAR04: report estimated THETAs that start at 0
labels Boolean active true DOC02: report unlabelled THETA/OMEGA/SIGMA values

estimation

Key Type Template state Generated value/example Template annotation and constraints
interaction Boolean active true EST03: report METHOD=1 without INTERACTION when the error depends on F
maxeval integer active 9999 the MAXEVAL the maxeval correction writes
tol integer active 9 the TOL the tol correction writes
require_covariance Boolean active false EST07: true = a missing $COVARIANCE is a warning (else a comment)
covariance_text string active "$COVARIANCE PRINT=E UNCONDITIONAL" No default or constraint is stated on this template line; consult the command page and resolved run.

tables

Key Type Template state Generated value/example Template annotation and constraints
require Boolean active true TAB04: report a missing diagnostics table
options array active ["ONEHEADER", "NOPRINT"] No default or constraint is stated on this template line; consult the command page and resolved run.
diagnostics array active ["ID", "TIME", "DV", "PRED", "IPRED", "CWRES"] options every $TABLE should have (TAB03; the table_options correction adds them)
extra_items array active [] items some $TABLE should list (TAB04) more names accepted as $TABLE items

fix

Key Type Template state Generated value/example Template annotation and constraints
enabled Boolean active true --no-fix: false = report only, no corrected copy
output string commented example "run1_qc.ctl" --fix-output: file name of the corrected copy (default _qc)
header_comment Boolean active true write a ;; comment at the top of the copy listing the corrections
problem_text string commented example "my model" the description of an inserted $PROBLEM (default: the file name)
skip array active [] --skip-fixes: corrections to leave out, e.g. ["bounds", "tol"]
ascii Boolean active true Each correction on (true) or off (false); the defaults are shown. remove a byte-order mark; replace typographic quotes, dashes, µ, × and non-breaking spaces by ASCII
line_endings Boolean active true use the line ending of the majority of the lines throughout
tabs Boolean active true replace tab characters by spaces
trailing_space Boolean active true remove white space at the ends of the lines
wrap_lists Boolean active true split long $INPUT and $TABLE lines into several lines
problem Boolean active true insert a $PROBLEM record when the file has none
sizes_first Boolean active true move $SIZES before $PROBLEM
record_names Boolean active false write abbreviated record names in full ($EST -> $ESTIMATION)
input_from_header Boolean active false rewrite $INPUT from the dataset header (text columns as =DROP)
drop_text Boolean active true add =DROP to $INPUT labels of text columns that the code does not use
ignore Boolean active true add IGNORE=@ to $DATA (or replace IGNORE=#) when the header would be read as data
tol Boolean active true add TOL to $SUBROUTINES for the general ADVANs
bounds Boolean active true order THETA bounds and move initial values inside them and away from zero
zero_fix Boolean active true FIX zero diagonal OMEGA/SIGMA values; make negative variances positive
block_pd Boolean active true shrink the covariances of a block that is not positive definite
interaction Boolean active true add INTERACTION to METHOD=1 when the residual error depends on the prediction
maxeval Boolean active true add MAXEVAL to the classical methods that lack it
posthoc Boolean active true add POSTHOC to METHOD=0 when individual estimates are needed
covariance Boolean active false add $COVARIANCE after the last $ESTIMATION
table_files Boolean active true give duplicated $TABLE file names a numbered suffix
table_options Boolean active true add ONEHEADER and NOPRINT to $TABLE records
table_items Boolean active false remove repeated and undefined $TABLE items
ignore_numeric Boolean active true write .EQ./.NE. as .EQN./.NEN. in IGNORE/ACCEPT when a numeric value would be missed as text
table_unused Boolean active false add variables that are defined but never used to the first $TABLE

checks

Key Type Template state Generated value/example Template annotation and constraints
skip array active [] check IDs or categories not run, e.g. ["DOC", "EST09"]
only array active [] run only these (IDs or categories); [] = all

severity

Key Type Template state Generated value/example Template annotation and constraints
FIL01 string commented example "error" The severity of a check: "error" (FAIL), "warning" (WARN), "comment" (COMMENT) or "off". The defaults are shown; remove the # to change one. file — File and format Is the control …
FIL02 string commented example "warning" Is the file free of a byte-order mark and of non-ASCII characters?
FIL03 string commented example "comment" Are the line endings consistent (all CRLF or all LF)?
FIL04 string commented example "warning" Are the lines within the line-length limit?
FIL05 string commented example "comment" Is the file free of tab characters?
FIL06 string commented example "comment" Is the file free of trailing white space?
FIL07 string commented example "comment" How many problems ($PROBLEM records) does the file hold?
REC01 string commented example "error" records — Records Does the control stream start with $PROBLEM (after $SIZES and comments)?
REC02 string commented example "error" Is every record name one that NM-TRAN knows?
REC03 string commented example "comment" Are the record names written in full (not abbreviated)?
REC04 string commented example "error" Is each single-use record given at most once per problem?
REC05 string commented example "error" Are the records the model needs present ($INPUT, $DATA, a model, $THETA)?
REC06 string commented example "error" Is the model either \(PRED or PREDPP (\)SUBROUTINES with $PK and $ERROR), not both?
REC07 string commented example "warning" Are the records in a usual order ($INPUT and $DATA before the code, parameters before $ESTIMATION, $ESTIMATION before $COVARIANCE and $TABLE)?
REC08 string commented example "error" Does every record that needs content have it?
REC09 string commented example "error" Is $SIZES (when present) before $PROBLEM?
REC10 string commented example "warning" Do the files named by $INCLUDE, $MSFI and \(ETAS/\)PHIS FILE= exist?
INP01 string commented example "error" input — $INPUT Are the $INPUT labels valid names (a letter first, letters, digits and _, within the length limit)?
INP02 string commented example "error" Are the $INPUT labels unique?
INP03 string commented example "error" Are the data items NONMEM needs in $INPUT (ID and DV; TIME and AMT for PREDPP)?
INP04 string commented example "error" Are reserved names kept out of the $INPUT labels (THETA, ETA, EPS, PRED, RES, WRES …)?
INP05 string commented example "error" Are DROPped data items left out of the code (they stay usable in IGNORE/ACCEPT)?
INP06 string commented example "comment" Are EVID and MDV given, or can NONMEM infer them?
INP07 string commented example "comment" Do the $INPUT labels match the dataset header (number and names)?
INP08 string commented example "error" Are the dataset columns that hold text DROPped in $INPUT?
DAT01 string commented example "error" data — $DATA and the dataset Does $DATA name a dataset that exists (relative to the control stream)?
DAT02 string commented example "error" Will the IGNORE option skip the header line of the dataset?
DAT03 string commented example "error" Do the IGNORE/ACCEPT conditions use $INPUT labels and valid operators, without mixing IGNORE=(list) and ACCEPT?
DAT04 string commented example "warning" Is the number of IGNORE/ACCEPT conditions within NONMEM's limit?
DAT05 string commented example "error" Do the dataset's CMT values exist in the model?
DAT06 string commented example "error" Does the dataset have at least as many columns as $INPUT has labels?
DAT07 string commented example "comment" How many records and individuals will NONMEM read after IGNORE/ACCEPT?
DAT08 string commented example "error" Are the dataset lines that are not data (comments, notes, a second header) skipped by the IGNORE option?
DAT09 string commented example "warning" Do .EQ./.NE. conditions on numbers match the dataset as intended (they compare text: 0 is not 0.0)?
DAT10 string commented example "warning" Does every IGNORE/ACCEPT condition select some records, and do observations remain?
SUB01 string commented example "error" subroutines — $SUBROUTINES, $MODEL and PK parameters Is the ADVAN known and the TRANS valid for it?
SUB02 string commented example "error" Is TOL given for the general ADVANs (6, 8, 9, 13, 14, 15)?
SUB03 string commented example "error" Does a general ADVAN have $MODEL, and an ODE ADVAN $DES?
SUB04 string commented example "error" Are the basic PK parameters required by ADVAN/TRANS assigned in $PK?
SUB05 string commented example "warning" Is the scale S of the observation compartment set in $PK?
SUB06 string commented example "error" Do the compartment numbers of Fn, ALAGn, Rn, Dn, Sn and A(n) exist in the model?
SUB07 string commented example "error" Does $DES define DADT(n) for every compartment, and for no other?
COD01 string commented example "error" code — Abbreviated code Does the abbreviated code parse (syntax)?
COD02 string commented example "error" Are IF/THEN/ELSE/ENDIF and DO WHILE/ENDDO balanced?
COD03 string commented example "error" Are the THETA(n) indices within $THETA, and is every THETA used?
COD04 string commented example "error" Are the ETA(n) indices within $OMEGA, and is every ETA used?
COD05 string commented example "error" Are the EPS(n)/ERR(n) indices within $SIGMA, and is every EPS used?
COD06 string commented example "warning" Is every variable defined before it is used (or a data item or NONMEM name)?
COD07 string commented example "error" Is Y defined in $ERROR (PREDPP) or $PRED?
COD08 string commented example "warning" Are LOG, SQRT and divisions protected against zero or negative values?
COD09 string commented example "error" Are the variable names valid (within the length limit, not reserved words)?
COD10 string commented example "error" Does each block use only what NONMEM allows there (no EPS in $PK, DADT only in $DES, A(n) not in $PK)?
COD11 string commented example "comment" Are MU-referencing statements present for the EM and Bayesian methods?
COD12 string commented example "warning" Is every variable defined in $PK, $ERROR, $PRED or $DES used later or written to a $TABLE?
PAR01 string commented example "error" parameters — $THETA, $OMEGA and $SIGMA Do $THETA, $OMEGA and $SIGMA parse?
PAR02 string commented example "error" Are the THETA bounds ordered, with the initial value inside them?
PAR03 string commented example "warning" Are the THETA initial values away from their bounds?
PAR04 string commented example "warning" Are the estimated THETAs started away from zero?
PAR05 string commented example "error" Are the diagonal OMEGA/SIGMA values positive, and zeros FIXed?
PAR06 string commented example "error" Are the OMEGA/SIGMA blocks positive definite?
PAR07 string commented example "error" Does each BLOCK(n) have n(n+1)/2 values, and does SAME follow a block of the same size?
PAR08 string commented example "comment" Are the OMEGA initial values plausible (CV between 1 % and 300 %)?
PAR09 string commented example "comment" Are FIXed THETAs written without bounds that would be ignored?
EST01 string commented example "warning" estimation — $ESTIMATION and $COVARIANCE Is there an $ESTIMATION (or $SIMULATION) record?
EST02 string commented example "error" Are the methods and options of $ESTIMATION valid together?
EST03 string commented example "warning" Is INTERACTION set when the residual error depends on the prediction?
EST04 string commented example "comment" Is MAXEVAL given for the classical methods?
EST05 string commented example "warning" Do likelihood models (F_FLAG, LIKELIHOOD, -2LL, M3) use LAPLACIAN?
EST06 string commented example "comment" Is the sequence of methods sensible (an EM method followed by IMP or an evaluation)?
EST07 string commented example "comment" Is a $COVARIANCE step requested?
EST08 string commented example "warning" Does FO (METHOD=0) have POSTHOC when tables or code need individual estimates?
EST09 string commented example "comment" Are the $ESTIMATION and $COVARIANCE options known?
TAB01 string commented example "error" tables — $TABLE Are the $TABLE file names unique?
TAB02 string commented example "error" Is every $TABLE item a data item, a variable of the code or a NONMEM output?
TAB03 string commented example "comment" Do the $TABLE records use ONEHEADER and NOPRINT?
TAB04 string commented example "comment" Is there at least one $TABLE with the diagnostics (ID, TIME, DV, PRED, IPRED, CWRES)?
TAB05 string commented example "comment" Is each item listed only once per $TABLE?
TAB06 string commented example "warning" Does every $TABLE with NOPRINT have FILE= (otherwise the table is written nowhere useful)?
DOC01 string commented example "comment" documentation — Documentation Does $PROBLEM carry a description?
DOC02 string commented example "comment" Are the THETA, OMEGA and SIGMA values labelled with comments?
DOC03 string commented example "comment" Does the file have a header comment (description, author, date)?

output

Key Type Template state Generated value/example Template annotation and constraints
directory string commented example "run1_qc_nm" default: /_qc_nm
html Boolean active true report.html: verdict, checklist before/after the corrections, findings, changes
json Boolean active true qc_nm_summary.json
diff Boolean active true qc_nm_changes.diff: unified diff of the original and the corrected copy
tables Boolean active true qc_nm_parameters.csv and qc_nm_variables.csv
max_findings integer active 1000 findings kept per check
examples integer active 5 findings quoted in the checklist comment
fail_on string active "never" never | error | warning: exit status 6 when the (corrected) control

Catalogue review checklist

  • The key appears under the intended table and uses the exact spelling.
  • Its TOML type matches the generated example.
  • Any stated enumeration, range or unit is satisfied.
  • Required companion keys and mutually exclusive choices are reconciled.
  • Relative paths resolve from the documented base.
  • CLI overrides are recorded with the run.
  • The effective value and its scientific consequence are reviewed in output evidence.

Source snapshot: nlmx.qcn.

See the previous page, next page, and complete settings reference.