# ============================================================================= # nlmx screen — settings file (plain text in TOML syntax, .screen extension) # ============================================================================= # # Structural-model screen: fits 1-, 2- and 3-compartment models (and, for # nonlinear exposure, TMDD models) to a dataset and recommends the base model. # # nlmx screen -c nlmx.screen # dataset given below in [data] # nlmx screen data/pk.csv -c nlmx.screen # or on the command line # # Rules # * Every key is optional. The values shown are the defaults; lines starting # with # are comments (remove the # to use a commented key). # * Command-line options override this file (the option is named after # each key, e.g. --compartments, --tmdd, --criterion). # * Relative paths are resolved against the folder of this file. # * Text values are in double quotes; lists in [ ]; R expressions that # contain double quotes go in single quotes: filter = 'C != "XYZ"'. # * Unknown keys are refused, so a typo cannot be silently ignored. # ----------------------------------------------------------------------------- [data] # The dataset: a delimited text file (comma, tab or whitespace) with a # header row. Rows starting with # or @ are skipped (as NONMEM IGNORE=#/@). # file = "data/pk.csv" # --data or the positional argument # Column names (matched in any case). Only ID, TIME, DV and AMT are needed. id = "ID" # --id-col time = "TIME" # --time-col dv = "DV" # --dv-col concentrations amt = "AMT" # --amt-col dose amount (> 0 on dose rows) evid = "EVID" # --evid-col optional: else AMT > 0 = dose mdv = "MDV" # --mdv-col optional: else inferred from EVID cmt = "CMT" # --cmt-col optional: tells IV from oral doses rate = "RATE" # --rate-col optional: RATE > 0 = infusion addl = "ADDL" # --addl-col optional: additional doses ii = "II" # --ii-col optional: dosing interval ss = "SS" # --ss-col optional: steady-state doses # Administration route --route # auto : RATE > 0 = infusion; with CMT, a dose into the observed # compartment = IV bolus, any other = oral; without CMT the # shape of the pooled concentration-time profiles decides # (rising after the dose = oral, highest first = IV), per group # oral : extravascular, first-order absorption (SC, IM, PO …) # iv : IV bolus, or infusion where RATE > 0 # bolus : IV bolus (RATE ignored) # infusion : IV infusion (every dose needs RATE > 0) # mixed : oral and IV doses, told apart by CMT (needs a CMT column) # The route found and the evidence are printed and logged. It decides the # candidates: absorption models for oral data, none for IV, absorption with # F1 for mixed data (see [models] absorption). route = "auto" # Row filter (R syntax), applied to every row like NONMEM IGNORE/ACCEPT: # rows that fail it are left out (doses and observations); a subject with no # rows left disappears. Text values in quotes compare as text; an empty cell # is "" (kept by != "XYZ"). Operators: == != < <= > >= & | ! %in% c(…) ( ). # filter = 'C != "XYZ"' # --filter e.g. 'STUDY != 3 & WT > 40' # # or 'SITE %in% c("A", "B")' # Observation filter: only observation rows are tested; doses are always kept. # obs_filter = "BLQ == 0" # --obs-filter e.g. 'DVID == 1' # Grouping columns: subjects that share a dosing regimen, study, formulation # or route. All subjects are fitted together (each with its own doses); the # groups are used to detect the route per group and to summarise the # regimens in the listing and report. groups = [] # --group e.g. ["REGIMEN"] or ["STUDY", "FORM"] # lloq = 0.05 # --lloq values below are left out (M1) # blq = "BLQFL" # --blq-flag column flagging BLQ observations (non-zero) dv_log = false # --dv-log DV is ln(concentration) # ----------------------------------------------------------------------------- [models] # The candidate structural models (names such as 2cmt_abs_lag, 1cmt_noabs_tmdd). compartments = [1, 2, 3] # --compartments 1,2,3 numbers of compartments absorption = "auto" # --absorption # auto : from the route (first-order for oral and mixed, none for IV) # both : models with and without first-order absorption # first-order : only models with a depot (KA) # none : only models without absorption # transit : the first-order models plus transit-compartment absorption # (Savic et al. 2007: MTT, NN; $DES) for each number of # compartments, e.g. 1cmt_abs_transit; single or widely spaced # doses (the input follows the most recent dose) lag = "no" # --lag no | yes | both (absorption models with # and without an absorption lag, ALAG1) eta = ["CL", "V", "KA"] # --eta CL,V,KA parameters with between-subject # variability (generic names): CL, V (central), # KA, Q, VP, Q2, VP2, ALAG, KINT, KSS, RTOT, VMAX, # KM; an ETA on a parameter a model lacks is # ignored; [] (or --eta none) for no random effects error = "combined" # --error combined | proportional | additive # (with dv_log: exponential, additive on log scale) prune_eta = true # --keep-eta turns it off: refit without an ETA # whose variance collapses (omega² < 0.001) or # cannot be estimated (RSE > 100 %) tmdd = "auto" # --tmdd target-mediated drug disposition # auto : add TMDD models when the exposure rises more than dose- # proportionally (ln(AUC/dose) vs ln(dose), slope > 0.1, p < 0.01) # no : never # qss : quasi-steady-state, constant total target (KINT, KSS, RTOT) # mm : Michaelis-Menten elimination (VMAX, KM) # both : QSS and Michaelis-Menten (recommended: QSS starts from MM) # TMDD models have 1 and 2 compartments and are fitted as ODEs ($DES). # only = ["1cmt_abs", "2cmt_abs"] # --models fit just these candidates # ----------------------------------------------------------------------------- [estimation] approximation = "foce_i" # --approximation foce_i | foce | fo | laplace | # saem (SAEM with an importance-sampling OFV) max_iterations = 300 # --max-iterations per model covariance = true # --no-cov-step / --cov-step covariance step # (needed for RSE and the condition number) # gradient_tolerance = 1e-3 # --gradient-tolerance convergence tolerance parallel_models = true # --serial-models turns it off: fit independent # candidates at the same time (same results) # ----------------------------------------------------------------------------- [initial] # Starting values. By default they come from autoinit (NCA, least squares # and machine learning on the dataset); larger models start from the final # estimates of their parent model. All values used are printed and logged. source = "autoinit" # autoinit | fixed (only the values below; then # theta needs at least CL and V) # Overrides (generic names, as in [models] eta; F1 too): # theta = { CL = 3.5, V = 40, KA = 1.2, Q = 4, VP = 60 } # --init CL=3.5,V=40 # omega = { CL = 0.1, V = 0.1, KA = 0.3 } # --init-omega CL=0.1 # sigma_prop = 0.2 # --sigma-prop proportional error (CV) # sigma_add = 0.05 # --sigma-add additive error (SD, DV units) # ----------------------------------------------------------------------------- [autoinit] # Settings of the initial-estimate step (see nlmx autoinit). method = "auto" # --init-method auto | nca | nls | ml ml_samples = 2000 # --ml-samples simulations per subject (ML) min_r2 = 0.8 # --min-r2 NCA terminal phase, adj. R² max_extrap = 30 # --max-extrap NCA: largest extrapolated AUC % omega = "robust" # --omega-method robust (MAD) | variance seed = 20240611 # --seed ML and SAEM random seed # ----------------------------------------------------------------------------- [selection] criterion = "bic" # --criterion # bic : lowest BIC among the models that pass the checks (default) # aic : lowest AIC # lrt : stepwise likelihood-ratio tests of nested models within each # absorption family, then BIC between the families lrt_alpha = 0.01 # --lrt-alpha significance level of the LRT bic_penalty = "bicc" # --bic-penalty the sample size in the BIC penalty # bicc : ln(subjects) for the OMEGAs and the THETAs that carry an ETA, # ln(observations) for the other parameters (Delattre et al. 2014; # default) # obs : ln(observations) for every parameter (NONMEM/PsN convention; # the only choice before 2.26.0) # subjects : ln(subjects) for every parameter (Monolix's BIC) require_covariance = false # --require-cov recommend only models whose # covariance step succeeded max_rse = 50 # --max-rse a structural THETA with a larger # RSE (%) makes a model "imprecise" max_condition = 1000 # --max-condition condition number of the # structural THETAs; disqualifies only together # with imprecise estimates # max_shrinkage = 40 # --max-shrinkage ETA shrinkage (%) limit # Not checked: OMEGA precision (a warning only) and the residual-error THETAs. # Flagged models are recommended only when no other model passes. # ----------------------------------------------------------------------------- [output] # directory = "pk_screen" # --output default: /_screen html = true # report.html fit_reports = true # keep each fit's own report.html in models// # ----------------------------------------------------------------------------- [plots] # Publication plot of the screen (plots/delta_bic.png or delta_aic.png), in # the style of ggplot2's theme_classic(). Any --plot-* option turns it on. enabled = false # --plots width = 7 # --plot-width in `units` height = 5 # --plot-height units = "in" # --plot-units in | cm | mm | px dpi = 300 # --plot-dpi PNG resolution base_size = 11 # --plot-base-size base font size (points) format = "png" # --plot-format png | svg | both title = true # --plot-no-title turns it off legend = true # --plot-no-legend turns it off [plots.colors] # --plot-colors any #RRGGBB, #RGB or colour name # outer = "#2A78D6" # the bars of the Δ chart (the other vpc colour # keys are accepted and unused here)