OncoMechanome

Agreement

Agreement is computed by oncomechanome/chain/agreement.py, over the indices defined in oncomechanome/chain/consensus.py. No model runs there, and nothing in it knows how many annotators there are — every measure takes the list of valid answers and reduces over it, so a fourth or fifth annotator changes a number and never a signature.

The two consensus indices

Each variant carries two numbers about its annotators — never about the arbiter, which is not one of the answers being compared. Both are defined over the set of K valid answers to one variant, and both are pair-based: they compare answers two at a time and average, rather than scoring the set as a whole. That is what keeps one discordant answer from dominating — it degrades only the K-1 pairs it belongs to.

They live in oncomechanome/chain/consensus.py, the one definition every caller uses — the pipeline, and any study measuring an arbiter against its own repeated draws. Between-model agreement and self-consistency are only comparable if a score of 0.6 means the same thing in both, and it cannot if each caller carries its own copy of the formula.

Label consensus — for every unordered pair of label sets Li, Lj, both the Jaccard index and the Szymkiewicz–Simpson overlap coefficient, averaged over the K(K-1)/2 pairs:

J = |Li ∩ Lj| / |Li ∪ Lj|        O = |Li ∩ Lj| / min(|Li|, |Lj|)

The two are reported together because the gap between them is informative. The Jaccard divides by the union, so an answer naming fewer steps drags it down; the overlap coefficient divides by the smaller set, so containment reads as unanimity — a one-label answer inside a two-label one scores 1.0. The gap is the share of the apparent disagreement that is incompleteness rather than conflict. Neither is read alone, and both are read beside n_clusters, the count of distinct label sets: a mean of 0.5 comes equally from one outlier against a unanimous rest and from everyone half-agreeing, and only the count separates them.

Order consensus — label consensus is blind to the structure of the graph: two annotators can name exactly the same steps and order them oppositely. The order is therefore scored separately, and restricted to the label pairs the two DAGs have in common, so the two axes stay independent rather than one contaminating the other.

Inside one DAG, each unordered pair of labels {x, y} gets

r(x, y) = +1  if the step carrying x reaches the step carrying y
          -1  if y reaches x
           0  if neither reaches the other

taken over the transitive closure, so A → B → C places A before C with no direct edge. r = 0 is a positive claim rather than the absence of one: it records that the two steps sit on parallel branches, that they happen independently. A pair is concordant when ri = rj and discordant otherwise — so agreeing that two steps are parallel is agreement, while “sequential in one answer, parallel in the other” is a structural disagreement and counts against. The counts are pooled over all K(K-1)/2 annotator pairs rather than averaged per pair, because at these graph sizes a single pair contributes a handful of comparable label pairs at most, its ratio takes the values 0 or 1 almost exclusively, and the mean of such ratios estimates nothing:

C = n_concordant / (n_concordant + n_discordant)

Stored beside it, undefined counts the pairs of answers sharing fewer than two labels: nothing to order, which is a lack of overlap and not a disagreement, so it enters neither the numerator nor the denominator. Watch what it correlates with — the pairs it drops are the pairs that already disagreed about labels, so the score is measured on the answers that agree most, and it is only honest next to that count.

An index with nothing to measure is null, never 1.0. A variant with one surviving answer has no pair to compare, and calling that perfect agreement would enter an average over variants as the strongest evidence in the run rather than as an absent measurement. The site renders it as an em dash, and the dataset-wide means on the stats page report how many variants they were computed over.

Why two axes

Agreeing on what a variant does is not agreeing on why. A set of categories cannot express the difference; a chain can, and separating the two is the reason the annotation format changed.

The measures below refine the two indices above: where those say how much the panel agreed, these say which part of the graph it disagreed about.

Axis 1 — what

MeasureCompares
label_setthe labels each answer used — carries the label consensus above
label_slotslabel together with its slot values
coveredwhether the answers agree the vocabulary fits at all

Axis 2 — why

MeasureCompares
orderthe relative order of the labels a pair of answers shares — the order consensus above
edgesthe ordered A → B pairs
pathsevery root-to-sink path, as a sequence
branch_structureroots, sinks and path count per answer

Each of these reports a mean pairwise Jaccard and a cluster count. Both are needed: a mean of 0.5 is produced equally by two models half-agreeing and by one outlier against an otherwise unanimous rest, and those are different situations.

order is the exception: it is keyed on labels alone, so target cannot move it and it holds the same value on both keyings below. It is stored on both rows anyway, so a reader of either has the headline numbers without a second query.

Step identity between answers

Step ids are local to one answer — s1 from one annotator is not s1 from another. Cross-answer matching uses (label, slot values, target).

target is free text, so every measure is computed twice, once with it in the key and once without, and both are stored. This is not redundancy:

  • keyed with target, the two Increase binding affinity · with: protein steps of PPP2R1A R183W stay distinct — one is STRN3, one is TIPRL1, and nothing else tells them apart;
  • keyed without, two models that named the same partner differently still match.

Reporting only one of the two keyings hides which effect you are looking at — whether the models disagree about causality, or merely about what to call a partner. A step’s quantity is never part of its identity: two annotators that name the same event on the same partner agree, whether or not they found the same figure for it.

Consensus bands

The site reads the label Jaccard in bands, to colour a lollipop or order a queue:

BandLabel Jaccard
agreement≥ 0.6
partialbetween 0.2 and 0.6
split< 0.2 — the answers describe different mechanisms, not the same one in different terms
single answerundefined — fewer than two usable answers

A split panel is what sends a variant to the priority queue, together with an arbiter that found the vocabulary did not fit and a variant no annotator answered. The split threshold is SPLIT_BELOW in oncomechanome/chain/agreement.py, mirrored in site/src/lib/consensus.ts; nothing is stored, so moving a threshold needs no recomputation.

The bands describe what is measured, not how hard the variant is. A split panel is where the models disagree, which is not the same as where the biology is hard.

Nothing inside the pipeline is decided from them. The arbiter’s prompt is byte-identical whatever the panel’s agreement, it is never told the vote count or that anyone agreed, and its reasoning budget is unconstrained unless a run caps it with --arbiter-effort.

v0.1 named four strata instead, built on the verdict every closing step carried. The verdict is gone — an annotation no longer concludes on a gain or a loss — and the strata went with it.

Failures are not disagreement

A model whose call errored, or whose answer was dropped after its repair attempt, is excluded from the panel and counted in n_dropped — never passed in as an empty answer. Counting it as a dissenter would record real disagreement where there was only a failed call, for the rest of that run’s life.

A single surviving answer has no consensus at all, rather than a perfect one: it agrees with nothing and disagrees with nothing, and claiming consensus would report the least-corroborated variant in the run as its best-corroborated one.

The pairwise matrix

Alongside the axes, the full N×N comparison is stored, keyed by real model id. It is what answers the question the whole cross-vendor design rests on: does the panel split where a single-vendor panel was unanimous? If a fourth annotator never moves the agreement, that annotator bought nothing — and this matrix is what makes that measurable rather than assumed.

This is a demo of OncoMechanome

OncoMechanome annotates cancer variants with the chain of molecular mechanisms that links the amino-acid change to the change in protein activity. Each chain is built step by step by a panel of LLM annotators, every step backed by a cited source, then consolidated by an arbiter.

This demo shows a sample of annotated variants. The full version, covering the complete set of gain-of-function variants, will be available soon.

Questions or feedback: benoit.de.witte@ulb.be