Documentation

43.4 Viewers and run comparison

Six viewer cards: table viewer, figure viewer, code editor, report frame, compare and expand

What you will learn

  • The viewers that open every dataset, table, figure and report.
  • How to compare two runs and what the comparison shows.
  • Why a result view is a window onto files, never a recalculation.

The table viewer

Every dataset and every result table opens in the same viewer, with every row available (not a preview of the first few). You can:

  • page through the rows (First, Previous, Next, Last, go to page) with 50 to 1000 rows a page;
  • search, including column-specific searches such as ID=12 or GROUP=2;
  • sort any column, and switch between doses and observations for NONMEM data;
  • Expand to the whole window (Esc returns);
  • download the filtered rows.

The datasets can be browsed before a run, which is where many mistakes are caught: a misread column, a stray header row, a delimiter that was guessed wrong. The same viewer shows the nlmx result tables afterwards, so a user learns one tool for everything.

The figure viewer

Zoom, pan, previous and next, thumbnails, fullscreen, copy to clipboard, and download as PNG or SVG. Multi-page plots, such as individual profiles, page through naturally. Because nlmx writes publication figures in both PNG and SVG, whatever you see can go straight into a report or a manuscript.

Code viewers and editors

Control streams, TOML settings files, NONMEM tables and CSV open in a Monaco editor (the editor engine of Visual Studio Code) with highlighting for NM-TRAN control streams and settings, folding, find, go to line, and an Expand view. Nothing about the editor is simplified for beginners; it is the tool an expert uses, available where the work is.

The report frame

Each main command writes a self-contained report.html. The app shows it in a sandboxed frame next to the other result tabs, so it behaves exactly as the file you will later share, and cannot affect the page around it.

Comparing two runs

Every run is kept. On the Previous runs list, Expand opens a run's details in place, and ticking two runs and pressing Compare opens a comparison made for the command:

Section What it shows
Key figures The headline numbers of each run, with the differences. For QC, counts by verdict and checks that changed verdict; for DataGen, a profiles overlay of the two runs' medians and 5th to 95th percentile concentrations.
Settings Only what differs between the two runs: options, column roles, flags.
Tables Joined on a key (for example ID · dose n in NCA or stratum · parameter), with differences or side by side and a filter for changed rows.
Figures Side by side, as a fade, or as a difference image.
Text Line-by-line differences of control streams and settings.

A comparison can be downloaded as comparison_report.html or as a zip of everything. In One in nlmx and Super, Compare works across every command, so a fit can be compared with a later fit, a VPC with a VPC, or a QC with the QC after corrections.

Why compare matters

A modeller changes one thing and wants to know what moved. Without Compare that means opening files side by side and hunting. With it, the answer is a table of the changed parameters, a difference image of the two goodness-of-fit plots and a text diff of the control stream. It is the quickest honest way to review a change, and it leaves evidence for the reviewer.

Display only, never recompute

Result views read the files nlmx wrote. If a table shows an OFV or a parameter, that is the number in the file; if a plot shows a band, that is the band nlmx drew. This keeps a clear line between what was computed (the engine, with its settings and seed) and what is displayed (the viewer), which is the line an auditor wants.

See the previous page, next page, and the chapter overview.