Evidence confidence gating — scope
Status: Draft scope (not yet approved for build) Date: 2026-07-29
Problem
variantEvidence stores reviewStars and the genetics page renders them as a
★★☆☆ run next to the evidence row. Nothing else reads the field. A variant whose
only evidence is a single submitter with no assertion criteria gets the same
solid Pathogenic badge as one carried by an ACMG practice guideline, because
classificationMeta keys tone off classification alone.
The project already decided this class of question, one layer up.
src/lib/genetics/index.ts opens with a safety note: exactly one status label
carries isDiagnosis: true, everything else is explicitly hedged, and the UI
must key colour and wording off that table rather than hardcoding it. The
argument does not stop at the association layer. A classification asserted once,
by one lab, with no stated criteria, must not render like one four bodies agree
on.
The star scale is already correct
reviewStars() in the genomics integration maps ClinVar review status onto
0–4 exactly as ClinVar defines it: practice guideline 4, expert panel 3,
multiple submitters with no conflicts 2, single submitter with criteria or
conflicting classifications 1, no assertion criteria 0. That mapping needs no
change. This scope is a rule table and a rendering rule over data already
stored — the cheapest of the four genomics scopes, and the one the other three
make more urgent, since each of them increases the number of findings on screen.
On the false-positive figures
The imported prior-art workspace asserts an 84–99% false discovery rate for rare pathogenic variants on genotyping arrays, a 40% downgrade rate for common "pathogenic" ClinVar entries, and a 63% false positive rate for literature-only variants. None of these carry a citation and they should not be repeated in this repository as fact.
The direction is well established — low-star assertions are reclassified far more often than expert-panel ones, and array calls at rare positions are unreliable — and that direction alone justifies the work. The magnitudes are unverified. If any number is to appear in the UI it needs a source first; the safer design shows the star count, which is a fact, and hedges the wording, which needs no number at all.
Design
Add a confidence table beside statusMeta and classificationMeta, in the same
file and for the same reason: one source of truth, no styling decided at the
call site.
| Stars | Review status | Rendering rule |
|---|---|---|
| 4 | Practice guideline | Classification renders at full strength |
| 3 | Expert panel | Full strength |
| 2 | Multiple submitters, no conflicts | Full strength |
| 1 | Single submitter, or conflicting | Never solid; label carries the qualifier |
| 0 | No assertion criteria | Never solid; label carries the qualifier |
- A variant's displayed confidence is the highest star count among its evidence rows, not the first or the newest. A 4-star assertion is not weakened by a later 0-star one; the reverse is the case that matters.
- A variant with no evidence rows at all is not "0 stars" — it is unassessed, and must read differently from assessed-and-unsupported.
pathogenicandlikely-pathogenicat ≤1 star render hedged in wording, not merely in colour. Colour alone fails for the colour-blind and in print, and the exports are printed.- Sorting and the chromosome-map markers key off confidence too, otherwise the most alarming marker on the ideogram is routinely the least supported one.
Export is the sharper edge
/genetics/export emits Phenopacket v2 and VRS for every variant marked Shared
or Exportable, with no confidence floor. A 0-star pathogenic call can therefore
leave the record as a structured, machine-readable clinical assertion and land
in a system that has no idea how thin it is — which is worse than the same claim
on screen, where the star run is at least visible.
Whatever rule the UI adopts, the export path needs the matching one: either the confidence travels with the assertion in the Phenopacket, or low-confidence variants are excluded from export by default. The first is preferable — Phenopackets can carry the evidence — and the second is the fallback if they cannot carry it faithfully.
Open questions
- Does a 1-star conflicting assertion deserve different wording from a 1-star single submitter? ClinVar scores them identically, but they fail differently: one is disagreement, the other is absence of scrutiny.
- The ClinVar bulk schema carries a
conflictedflag separate from review status. If the bulk file is provisioned (see the population frequency scope), is that worth surfacing on its own? - Where does a user's own manual classification sit on this scale? A variant added by hand from a paper lab report has no stars and is not unassessed.
- Should an acknowledged reinterpretation suppress the alert but keep the confidence qualifier? These are different questions and currently one flag.
Not in scope
Hiding, suppressing or deleting low-confidence findings — the record keeps what it was given. Changing ClinVar's scale or second-guessing individual submitters. Any automated reclassification; see the population frequency scope, which deliberately stops at showing a contradiction.
Relationship to the other plans
Independent of the other three and sequenced first, because each of them adds findings that this rule then governs: array import adds many low-confidence ones by construction, population frequency adds a second axis of doubt beside this one, and pharmacogenomic guidelines brings a different evidence scale that has to coexist with this one without either being mistaken for the other.