# nlmx nca configuration (plain text, TOML syntax, .nca extension) # # Non-compartmental analysis of a concentration-time dataset, as WinNonlin and # Monolix do it: Cmax, Tmax, Tlag, Clast, the terminal slope (lambda_z) and # half-life, AUClast, AUCinf (observed and predicted), AUMC, MRT, clearance and # volumes, partial areas, multiple-dose and steady-state measures, summary # statistics, dose proportionality and group comparison, tables and plots. # # Every key is optional; the values shown are the defaults. Command-line # options override the file. Relative paths resolve against this file's # folder. Use it with: nlmx nca -c nlmx.nca # Every parameter and rule is described in docs/NCA.md. [data] # file = "data/pk.csv" # the dataset (or give it on the command line) id = "ID" # column names (any case) time = "TIME" dv = "DV" # concentration amt = "AMT" # dose amount evid = "EVID" # optional: inferred from AMT when absent mdv = "MDV" # optional: inferred when absent cmt = "CMT" # optional: tells intravenous from oral doses rate = "RATE" # optional: RATE > 0 is an intravenous infusion addl = "ADDL" # additional doses (expanded into dosing intervals) ii = "II" # interval of the additional doses ss = "SS" # steady-state flag (with II: the interval is steady state) route = "auto" # auto | oral | iv | bolus | infusion | mixed # A route given here always wins (RATE and CMT are then ignored). # auto: RATE > 0 = infusion; with a positive CMT a dose into a # compartment that holds observations is IV, into another is # extravascular; doses without a usable CMT are judged from the # shape of the profiles. Oral, subcutaneous, intramuscular and # other extravascular doses are all "oral" here. # Row filter (R syntax), as NONMEM IGNORE/ACCEPT: rows that fail it are left # out, doses and observations alike. Quoted text compares as text. # filter = 'C != "XYZ"' # e.g. 'STUDY != 3 & WT > 40', 'SITE %in% c("A","B")' # obs_filter = "BLQ == 0" # observation rows only (doses are always kept) # Change or create columns first (R syntax, run in order, before the filters; # true is 1, false 0); the changed dataset is written to the output folder: # mutate = "DV = DV * 1000; LNDV = log(DV); HIGH = DOSE == 100" # Grouping columns: the group of a subject, or of each dose (a crossover: # the value on the dose record gives the period's treatment). Summaries, # plots and the group comparison use it. groups = [] # e.g. ["TRT"] or ["STUDY", "FORM"] # lloq = 0.05 # lower limit of quantification: samples below it are BLQ # blq = "BLQ" # a column flagging BLQ samples (non-zero); DV is then the # LLOQ (or 0). Without lloq or blq no sample is BLQ. dv_log = false # DV is ln(concentration) [analysis] intervals = "all" # all | first | last: which dosing intervals of a subject are # analysed. Each dose starts one profile, ending at the next # dose, with times counted from its dose. steady_state = "auto" # auto | none | last | all: which intervals are steady state. # auto: those with SS and II in the data. last: the last # dosing interval of each subject. all: every interval. # tau = 24 # dosing interval for AUCtau when the data do not give it; # otherwise II of an SS record, or the gap to the next dose min_observations = 3 # fewest usable samples in a profile (profiles with fewer are # listed as skipped) # max_time = 72 # leave out samples later than this after the dose duplicates = "mean" # mean | first | last | max | error: several samples at one time [blq] rule = "tmax-zero-missing" # what happens to BLQ samples: # zero all set to 0 # missing all left out # lloq all set to the LLOQ # half-lloq all set to LLOQ/2 # tmax-zero-missing before Tmax set to 0, from Tmax on left out # (WinNonlin/Phoenix style) # first-zero-mid-half-last-missing # before the first quantifiable sample 0, # between quantifiable samples LLOQ/2, after # the last left out [auc] method = "linear-up-log-down" # linear linear trapezoids throughout # linear-log linear up to Tmax, logarithmic afterwards # linear-up-log-down linear while rising, logarithmic while falling iv_c0 = "extrapolate" # extrapolate | observed | first: concentration at time 0 of an # IV bolus. extrapolate: log-linear back from the first two samples # (the first sample when they do not decline); observed: only a # sample at time 0; first: the first sample's value. zero_at_dose = true # extravascular and infusion: start the first dose's curve with 0 # at the dose time when no sample is taken then # partial = [[0, 4], [0, 12], [4, 12]] # partial areas AUC_a_b between these times (columns AUC_0_4 ...) partial_extrapolate = true # a partial area beyond the last sample uses lambda_z [lambda_z] method = "best-fit" # best-fit | last-n | time-range | none # best-fit: regress ln(C) on the last 3, 4, ... points after Tmax and # keep the one with the largest adjusted R-squared (within # `tolerance`, the one with more points), as WinNonlin # last-n: the last `points` samples; time-range: samples between # `from` and `to`; none: no terminal phase, no extrapolation min_points = 3 # fewest points of a best-fit regression (3 or more) max_points = 0 # most points (0 = no limit) points = 3 # last-n: number of points # from = 12 # time-range: first time after the dose # to = 72 # time-range: last time include_tmax = false # allow the Tmax sample in the regression min_adj_r2 = 0.7 # best-fit: smallest adjusted R-squared accepted tolerance = 0.0001 # best-fit: adjusted R-squared within this of the best counts as tied weighting = "uniform" # uniform | 1/y | 1/y2: weights of the log-linear regression min_span_ratio = 2.0 # the points should span at least this many half-lives require_span = false # true: no lambda_z when they do not; false: flag LZ_SPAN_SHORT max_extrap = 20 # AUCinf is flagged (or blanked) above this % of extrapolated area extrap_action = "flag" # flag | omit: omit blanks AUCinf, MRT, CL and V of such profiles # Choose the terminal points of single subjects (all keys but id are optional): # [[lambda_z.overrides]] # id = "7" # subject ID # occasion = 1 # dose number (all when absent) # from = 8 # use samples from this time ... # to = 48 # ... to this time # points = 4 # or: the last 4 samples # exclude = [24] # or: leave these sample times out of the best fit # skip = false # true: no terminal phase for this subject [units] # The names are labels for the tables; they convert nothing. dose_factor # multiplies the dose when clearance and volume are computed: with the dose # in mg and the concentration in ng/mL, dose_factor 1000 gives CL in L/h and # volume in L (1 mg is 1000 ug and 1 ng/mL is 1 ug/L). dose = "mg" time = "h" conc = "ng/mL" dose_factor = 1.0 [summary] by = ["group", "route", "dose", "steady_state", "occasion"] # strata of the summary tables; group | route | dose | occasion | # steady_state. A variable with one value is left out; [] pools # all profiles. statistics = ["n", "mean", "sd", "cv", "geomean", "geocv", "median", "min", "max"] # also: sem, q1, q3, harmonic # parameters = ["CMAX", "TMAX", "AUCLAST", "AUCINF_OBS", "THALF"] # parameters in the summary (default: all that have values) [dose_proportionality] enabled = true # power model ln(P) = a + b ln(dose), Smith et al. (2000); needs 3 # profiles at 2 dose levels in the same route and regimen parameters = ["CMAX", "AUCLAST", "AUCINF_OBS"] ci_level = 90 # confidence level (%) of the exponent b limits = [0.8, 1.25] # proportional when the interval of b lies in 1 + ln(limits)/ln(dose ratio) [comparison] # reference = "A" # a group (its label, e.g. "TRT=A", or its value "A"): the other # groups are compared with it by geometric-mean ratio parameters = ["CMAX", "AUCLAST", "AUCINF_OBS"] ci_level = 90 # confidence level (%) limits = [80, 125] # acceptance limits of the ratio (%), as bioequivalence bioavailability = true # absolute bioavailability F for subjects with an IV and an # extravascular dose (nca_bioavailability.csv) [figures] profiles = true # all individual profiles (profiles_linear, profiles_semilog) linear = true # draw the profiles on a linear y axis semilog = true # ... and on a logarithmic y axis mean_profile = true # mean (or geometric mean) profile by group error_bars = "sd" # sd | sem | ci95 | none geometric_mean = false # geometric mean and geometric SD instead of mean and SD time_bin = 0.0 # samples within this time of each other share a mean-profile point (0 = same time) individual = true # individual plots: panels of profiles with the terminal fit, # several to a page (plots/individual/page_01.png ...) max_individual = 0 # draw at most this many profiles (0 = all); `individual = false` # turns the individual plots off individual_nrow = 4 # panels per page: rows ... individual_ncol = 4 # ... and columns (100 profiles at 5 x 5 give 4 pages of 25) individual_yscale = "log" # log | linear: the y axis of the individual plots individual_scales = "free" # free | fixed: every panel its own axes, or the same axes in # all panels of a page (fixed: tick labels on the outer panels only) individual_terminal_points = false # ring the points used for the terminal slope individual_lines = false # join the observations by lines individual_width = 0 # page size in the plot units; 0 = from the number of panels individual_height = 0 boxplots = ["CMAX", "AUCLAST", "AUCINF_OBS", "THALF"] # box plots of these parameters by group dose_proportionality = true # AUC and Cmax against dose, with the power-model line [plots] # Figures of the analysis (plots/*.png), in the style of ggplot2's # theme_classic(). They are written by default; --no-plots turns them off. enabled = true # --no-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 # observed = "#000000" # the mean profile, box medians # median = "#EB6834" # the terminal-phase fit lines # outer = "#2A78D6" # boxes # points = "#9E9E9E" # individual points # reference = "#4D4D4D" # reference lines (dose-proportionality line, extrapolation) [output] # directory = "pk_nca" # default: /_nca html = true # report.html with the tables and figures profiles_csv = true # nca_profiles.csv: every sample and what was done with it lambda_z_csv = true # nca_lambda_z.csv: every terminal regression tried json = true # nca_summary.json