Status: Accepted. Extends 0006.
Predicted models (AlphaFold DB and others) are everyday inputs, and their per-residue confidence (pLDDT, 0–100) is
stored in _atom_site.B_iso_or_equiv. JMVS ignored that column, so neither B-factors nor confidence could be shown
(roadmap slice 1). Colours that encode a value also need a key, which no
existing scheme had.
Atom carries bFactor from B_iso_or_equiv, or NaN when the file has none (hasBFactor()). The model has no
separate pLDDT field: it is the same column, and its meaning depends on the file.jmvs.properties like the others:
bfactor): low → mid → high gradient (blue, white, red), scaled to the lowest and highest
B-factor of the loaded structure, as RasMol’s temperature colouring.confidence): the AlphaFold DB bands and colours (very high > 90, confident > 70,
low > 50, very low), with the same exclusive boundaries as the AlphaFold DB viewer.
Both are always offered, with no detection of predicted models; on an experimental structure Confidence simply
bands the B-factors. Atoms without a B-factor get a neutral “missing” colour. All colours are typed in
ColourTables and required in the configuration (0015).ColourScheme gains Optional<Legend> legend(Structure), empty by default. Legend is a renderer-neutral sealed
type in jmvs-scene: Bands (labelled colours) or Gradient (colour stops with the minimum and maximum value).
The UI draws it bottom-left over the view; it changes with the scheme and structure without touching geometry
(0007).pLDDT while colouring by confidence, B-factor otherwise._ma_qa_metric categories) and hide or auto-select Confidence. Rejected for
now: simpler to always offer both, and files from other predictors don’t all carry those categories.Atom grew a component; readers added later (e.g. PDB, slice 4) must supply a B-factor or NaN.