# nlmx eda configuration (plain text, TOML syntax, .eda extension) # # Exploratory data analysis of a PK/PD dataset: the standard plots and # tables of a pharmacometric analysis (`nlmx eda --list-plots` lists them) # and any custom plot or table described in [[plot]] and [[table]] blocks. # Outputs: plots/*.png (and .svg), eda_*.csv tables, eda_subjects.csv (one # row per individual), eda_summary.json and report.html. # # Every key is optional; the values shown are the defaults. Command-line # options override the file. Relative paths resolve against this file's # folder. The smallest run needs no file at all: # nlmx eda data.csv -o eda_out --group DOSE --stratify STUDY # Use this file with: nlmx eda -c nlmx.eda (docs/EDA.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" amt = "AMT" evid = "EVID" mdv = "MDV" cmt = "CMT" rate = "RATE" addl = "ADDL" ii = "II" ss = "SS" # filter = 'STUDY != 3' # records to keep (R syntax; quoted text compares as text) # obs_filter = "DV > 0" # observation records to keep (doses always stay) # mutate = "DV = DV * 1000; HEAVY = WT > 75" # change or create columns first (R # # syntax, in order, before the filters; true is 1) # groups = ["DOSE"] # --group: the colour of the plots (several: combined) # lloq = 0.05 # lower limit of quantification (BLQ = DV < LLOQ) # blq = "BLQ" # a column flagging BLQ samples (non-zero) dv_log = false # DV is ln(concentration) [columns] # tad = "TAD" # time after dose of the dataset (default: computed) # nominal_time = "NTIM" # nominal time: the x of the mean plots, the time axis "nominal" # dvid = "DVID" # observation type; found automatically when named DVID, CMT … # lloq_column = "LLOQ" # an LLOQ per record [covariates] # Found automatically (every column that is not a NONMEM data item, a time, # visit, BLQ or design column such as TAD, NTIM, DAY, LNDV, LLOQ, DVID, DOSE, # GROUP, ARM, STUDY); list them to choose. Whole numbers with few levels are # categorical. # columns = ["WT", "AGE", "SEX", "RACE", "CRCL"] # --covariates WT,AGE,SEX # exclude = ["STUDY"] # categorical = ["SEX", "RACE"] # --categorical # continuous = ["AGE"] # time_varying = ["CRCL"] # --time-varying [eda] # color = "DOSE" # colour groups of the plots (default: the first --group) # strata = "STUDY" # facet panels of the plots (--stratify) # pk_dvid = "1" # --pk-dvid: the concentrations (default: the smallest DVID) # pd_dvid = "2" # --pd-dvid: the PD response of the PK-PD plot (default: the next) time_axis = "time" # --eda-x: time (after first dose) | tad | nominal yscale = "both" # --eda-yscale: both | linear | log (concentration plots) centre = "mean" # --eda-stat: mean | median | geomean (summary plots) spread = "sd" # --eda-error: sd | sem | ci95 | iqr | p90 | range | none time_bins = 0 # x bins of the summary plots (0: the distinct times when 40 or fewer, # else quantile bins) smooth = "loess" # smoother of the scatter plots: loess | linear | power | none span = 0.75 # LOESS span (0.1 to 1) exposure = "first" # observed Cmax/AUC of the first dosing interval | "all" the profile exposure_plots = false # --eda-exposure: the observed-exposure plots and tables (P18-P20, # T06, T07) are off by default; naming them in plots/tables also # turns them on (e.g. plots = ["all", "exposure"]) dose_normalise = true # exposure plots use Cmax/dose and AUC/dose when doses differ individual_nrow = 4 # panels per page of the individual plots: rows ... individual_ncol = 4 # ... and columns individual_pages = 10 # most pages of individual plots (0 = all) max_lines = 0 # draw at most this many profiles in a spaghetti plot (0 = all) max_categories = 20 # a numeric group with more values is cut in quartiles plots = ["all"] # --eda-plots: IDs (P01), names (conc_time), categories or "all" skip = [] # --eda-skip tables = ["all"] # --eda-tables skip_tables = [] digits = 4 # significant digits of the tables [units] time = "h" # --time-unit # conc = "ng/mL" # --conc-unit # dose = "mg" # --dose-unit [output] # directory = "pk_eda" # default: /_eda html = true # report.html (collapsible sections) json = true # eda_summary.json csv = true # the tables as eda_.csv and eda_subjects.csv html_pages = 3 # pages of a multi-page plot shown in the report (all are in plots/) [plots] # Figure files (plots/*.png), in the style of ggplot2's theme_classic(). 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 base_size = 11 # --plot-base-size format = "png" # --plot-format png | svg | both title = true legend = true # ------------------------------------------------------------ custom plots # Each [[plot]] block draws one plot (several pages when it has many # panels). Only `name`, `kind` and the variables are needed. # # kind scatter | line | summary | box | histogram | bar | corr | pairs | pkpd # scope observations | doses | all | subjects (default: observations when # every variable is a record column, else subjects: one row per # individual with baseline covariates and NOBS, NDOSE, NBLQ, DOSE1, # TOTDOSE, CMAX, TMAX, CMIN, CLAST, TLAST, AUCLAST, CMAXD, AUCLASTD) # x, y a column or a list of columns (a list gives one panel per variable); # record columns include TAD, TAFD (time after first dose), DOSE # (latest dose), DVNORM (DV / dose), BLQ, EVENT, PKOBS # by line groups of a line plot (default the ID) # color colour groups ("none" turns off the [eda] color) # facet one panel per value ("strata" means the [eda] strata) # filter rows to keep (R syntax) pk_only PK observations only # log_x, log_y, xlim = [0, 24], ylim = [0.1, 100], xlab, ylab, title # smooth loess | linear | power | none span; smooth_by = "group" | "all" # (one smoother per colour group, or one over every point) # stat, error centre and error bars of summary and bar plots # bins x bins of a summary plot hist_bins bars of a histogram # points, lines draw the points / the lines # hline, vline = [values] reference lines; identity = true draws y = x # ncol, nrow, max_pages, free = "none" | "x" | "y" | "both" facet layout # jitter horizontal jitter (fraction of the x range) legend max_lines # # [[plot]] # name = "wt_vs_cl_proxy" # kind = "scatter" # x = "WT" # y = ["CMAX", "AUCLAST"] # color = "SEX" # smooth = "loess" # log_y = true # # [[plot]] # name = "trough_by_dose" # kind = "box" # scope = "observations" # filter = "TAD > 20 & TAD <= 24" # x = "DOSE" # y = "DV" # points = true # ----------------------------------------------------------- custom tables # kind summary | count | listing # vars columns; by = ["DOSE", "SEX"] groups (numeric groups with many # values are cut in quantile bins); scope, filter, pk_only as plots # stats n nmiss mean sd cv sem median min max q1 q3 p5 p95 geomean gcv ci_lo ci_hi # overall add an "All" row; digits; max_rows (listing) # # [[table]] # name = "exposure_by_sex" # kind = "summary" # vars = ["CMAX", "AUCLAST"] # by = ["SEX"] # stats = ["n", "geomean", "gcv", "median", "min", "max"]