safety.vizReleasedAnnotated demo

safety.viz v1.11.2: the new R ratio in Hep Explorer

A patch with one change. Hep Explorer can size its points by the new R ratio (nR), and each point's tooltip shows nR under R. The original Hep Explorer had this, and the safety.viz version had left it out.

Captured 15 October 2026 from the released sitemain at 4ffccf9f9 of 9 checks held
In one paragraph

R tells a hepatocellular liver injury from a cholestatic one, using ALT. nR uses whichever of ALT and AST is higher, so an injury where AST rises more than ALT is not read as cholestatic. In this release, Point Size has a third setting, nrRatio, and the tooltip has one more line. Everything that was there before, R and its filter included, works as it did.

01 / what nR is

The higher of ALT and AST, over ALP

For each participant, nR is the higher of their peak ALT and peak AST, both as multiples of the upper limit of normal, divided by their peak ALP as a multiple of its upper limit. R is the same calculation with ALT alone. So nR is never below R, and it is above R whenever AST is the higher of the two.

On the demo data

318 participants are plotted. All 318 have an nR, and for 188 of them it is above their R. None is below. For 12 participants, nR moves them into a higher band of the guide's table.

BandBy RBy nR
Hepatocellular, above 501
Mixed, 2 to 55868
Cholestatic, below 2260249
02 / point size

Point Size → nrRatio

Point Size used to offer Uniform rRatio. It now offers Uniform rRatio nrRatio. Under nrRatio each point is sized by its participant's nR, and the legend's note says so.

The eDISH scatter of the demo data with Point Size set to nrRatio. The legend note explains nR, and participant 01-705-1292's point, below the bilirubin cut-line, is drawn largest.
  1. The note: “Point size encodes nR Ratio, which takes AST in place of ALT when AST is the higher: a larger point is a more hepatocellular pattern. Participants with no nR Ratio are drawn at the base size.”
  2. The largest point: participant 01-705-1292, with the highest nR on the demo data.
The same scatter with Point Size set to rRatio. The largest point is one of the synthetic chronic liver disease participants on the right.
  1. The largest point under rRatio: participant CLD-9008, with the highest R.
The note under rRatio: “Point size encodes R Ratio: a larger point is a more hepatocellular pattern. Participants with no R Ratio are drawn at the base size.”

Switch between the two settings. Under nrRatio, participant 01-705-1292's point (marker 2) is the largest on the chart, because its AST is higher than its ALT. Under rRatio the largest point is a participant in the synthetic chronic liver disease groups.

03 / tooltip

nR under R in the tooltip

Every point's tooltip now has an nR line under R. Here is participant 01-705-1292: R is 4.25, in the mixed band, and nR is 6.04, in the hepatocellular band.

The tooltip of participant 01-705-1292, hovered on the scatter, listing R Ratio 4.25 and nR Ratio 6.04.
  1. Participant 01-705-1292's point, hovered.
Release 1.11.1
  • Participant: 01-705-1292
  • R Ratio: 4.25
  • Alanine Aminotransferase: 2.59 @ day 9
  • Bilirubin: 0.57 @ day 12
  • 3 days apart
Release 1.11.2
  • Participant: 01-705-1292
  • R Ratio: 4.25
  • nR Ratio: 6.04
  • Alanine Aminotransferase: 2.59 @ day 9
  • Bilirubin: 0.57 @ day 12
  • 3 days apart
04 / try it
Try it on the released site
  1. Open the Hep Explorer demo and choose eDISH / mDISH scatter under View.The scatter of peak ALT against peak bilirubin.
  2. Under Settings, set Point Size to nrRatio.The note above the chart explains nR. One point below the bilirubin cut-line, left of the ALT cut-line, becomes the largest: participant 01-705-1292.
  3. Hover that point.The tooltip shows R 4.25 and, under it, nR 6.04.
  4. Set Point Size to rRatio, then back.The largest point is now a participant in the synthetic chronic liver disease groups.
05 / the rest

What did not change

  • R, its range filter and its tooltip line are as they were. The filter still works on R only, because the original had no filter for nR.
  • No other chart changes. The demo app's Hep Explorer gets the same setting and tooltip line, because it draws the same chart.
  • The participant profile's header shows R only. Adding nR there would be a follow-up.
  • The gsm.safety widget needs no change, because Point Size is chosen on the chart, not passed in as a setting.

Where to check it