Swanson's Apple

For the best experience, use a desktop browser.

Scoring Methodology

This page documents how hypotheses are ranked, why the formulas are designed the way they are, and what the known limitations are. It updates with each formula revision.

v1.1

June 5, 2026

Viewing

Active Formulav1.1

NNovelty — how undiscovered is the B–C connection?
N = 1 / (1 + ln(1 + p))

p = existing B–C papers on PubMed.  0 papers → 1.000  ·  1 paper → ≈0.591  ·  10 papers → ≈0.330  ·  100 papers → ≈0.177

SStrength — how well-supported is the bridge mechanism?
S = 1 − 1 / (1 + √(ln(1+B↔A) × ln(1+C↔A)))

Log-compress each side first, then geometric mean. If either side is zero, S = 0. Symmetric cases produce the same output as v1.0.

HCombined score — overall hypothesis rank
H = 0.5 × N + 0.5 × S

Equal-weighted average. Both N and S are bounded [0, 1], so H is also [0, 1].

Strategic Goal▾

The scoring system answers a specific question: which drug–disease hypotheses are both well-evidenced through a bridge mechanism and genuinely unexplored?

This is not the same as finding total evidence (most papers mentioning both concepts), nor is it purely about finding balanced evidence (equal support on both sides). The goal is closer to:

  • –Both sides must be credible. A bridge with 200 B↔A papers and 0 C↔A papers is not a lead — one side of the triangle doesn't exist.
  • –The B–C connection must not already exist in print. If a drug–disease pair is already well-studied, it isn't undiscovered knowledge.
  • –Evidence is subject to diminishing returns. The jump from 0 to 1 paper is enormous. The jump from 100 to 101 is nearly noise.

These three constraints shape every formula choice below.

Novelty Score▾
N— how undiscovered is the B–C connection?
N = 1 / (1 + ln(1 + p))

Where p is the number of PubMed papers that already study the disease–compound pair directly (B–C). Verified via live PubMed query.

Why this shape

The log applies diminishing returns to the penalty for existing literature. A hypothesis with 1 existing paper is substantially less novel than one with 0. But the difference between 100 and 200 papers is almost irrelevant — both are well-studied. Using raw p in the denominator would treat 100 papers as 100× worse than 1 paper, which overcorrects.

The output is bounded (0, 1]. It reaches exactly 1.0 only when no existing B–C literature exists.

Behavior

B–C papers (p)Novelty (N)Interpretation
01.000Completely unexplored
1≈ 0.591One paper exists
5≈ 0.407A handful of studies
10≈ 0.330Small literature
50≈ 0.213Modest coverage
100≈ 0.177Well-studied
1 000≈ 0.118Extensively studied
Strength Score▾
S— how well-supported is the bridge mechanism?
S = 1 − 1 / (1 + √(ln(1+B↔A) × ln(1+C↔A)))

Where B↔A is the number of distinct publications supporting the disease–bridge link and C↔A is the number supporting the compound–bridge link.

Why log-compress each side first

In v1.0 the log was applied after the geometric mean: ln(1 + √(B×C)). This accidentally rescued lopsided triangles — a bridge with B↔A = 2, C↔A = 100 produced √200 ≈ 14.1, then the log compressed that to roughly the same as a balanced (10, 10) case.

v1.1 applies ln to each side independently first, then takes the geometric mean of the compressed values. A single well-studied side cannot compensate for a weak other side. Zero-collapse is preserved: ln(1+0) = 0 collapses S to 0.

For symmetric cases (B↔A = C↔A), v1.0 and v1.1 produce identical output — the formulas are mathematically equivalent when both sides are equal.

Behavior

B↔A / C↔AStrength (S)Note
0 / any0.000One side missing — no bridge
1 / 1≈ 0.41Minimal bilateral support (same as v1.0)
5 / 5≈ 0.64Modest balanced evidence (same as v1.0)
10 / 10≈ 0.71Solid balanced bridge (same as v1.0)
2 / 100≈ 0.69Lopsided — correctly below 10/10 (was ≈ 0.73 in v1.0)
50 / 50≈ 0.80Strong bilateral support (same as v1.0)
100 / 100≈ 0.82Very well-evidenced (same as v1.0)

The lopsided case (2 / 100) now scores ≈ 0.69, below the balanced 10/10 (≈ 0.71) as intended. In v1.0 it incorrectly scored ≈ 0.73 — higher than 10/10.

Combined Score▾
H— overall hypothesis rank
H = 0.5 × N + 0.5 × S

A simple equal-weighted average of Novelty and Strength. Both are bounded to [0, 1], so H is also bounded to [0, 1].

Why equal weights

The 0.5 / 0.5 split is a deliberate starting point, not a calibrated value. It encodes the view that being undiscovered matters as much as being well-evidenced. A hypothesis that scores perfectly on strength but has 500 existing papers is not novel discovery — it's a database confirmation. The weights have not yet been tuned against real-world validated discoveries.

What ranks highest

  • –B–C pair with zero existing literature (N = 1.0) and strong bilateral bridge evidence
  • –Bridges where both the disease side and the compound side have meaningful, independent publication support
  • –Compounds not yet associated with the disease in any published study
Polarity & Evidence Labels▾

The scores above measure how much evidence exists and how new the idea is. They say nothing about which way the compound pushes the disease. The indicators below answer that question as far as the data allows. None of them change the Novelty, Strength or Combined score — they are shown alongside it so you can judge a hypothesis, and some work as filters.

1 · Compound → Bridge polarity (C→A)

P = (raising records − lowering records) ÷ all records

Each curated record linking the compound to the bridge gene is sorted into one of three groups: raising (increases, activates), lowering (decreases, inhibits) or neutral (binds, affects, interacts — no direction). Records come from CTD and, where they state a direction, from DGIdb and DrugCentral (inhibitor, blocker, antagonist → lowering; agonist, activator, inducer → raising). Neutral records count in the denominator, so they dilute confidence without counting as a contradiction.

RecordsPReads as
10 raising+1.00Consistently raises the bridge
8 raising, 2 neutral+0.80Raises it; some records take no side
8 raising, 2 lowering+0.60Mostly raises it
5 raising, 5 lowering0.00Conflicting evidence
3 lowering−1.00Consistently lowers the bridge
neutral records only—No direction known (not the same as 0)

Raising a gene is not automatically good or bad — whether it helps depends on what that gene does in the disease. That is the next link.

2 · Bridge → Disease direction (A→B), from reference compounds

Databases record that a gene is involved in a disease, almost never which direction of change helps. We infer it from reference compounds: other compounds that act on the same bridge gene and that CTD curators directly document as treating, or causing/worsening, the same disease. Each one casts a vote:

Reference compound…VoteMeaning
raises the gene, treats the disease▲ +1Raising the gene probably helps
lowers the gene, causes the disease▲ +1Raising the gene probably helps
lowers the gene, treats the disease▼ −1Raising the gene probably harms
raises the gene, causes the disease▼ −1Raising the gene probably harms

The hypothesis page lists these reference compounds with their PubMed sources (the “Bridge → Disease” row of the Polarity tab), with a plain count of ▲ and ▼ votes. The compound being evaluated never counts as its own reference. A reference compound may act on the disease through genes other than this bridge, so each vote is a hint, not proof.

3 · “Mechanism suggests harm” warning (⚠)

The two links are combined into one signal per compound–disease pair, using every bridge gene that connects them:

bridge direction = Σ w·vote ÷ Σ w,   w = 1 / log₂(2 + genes the reference compound affects)signal = average over bridges of (P × bridge direction)  ·  ⚠ when signal ≤ −0.40
  • –The weight w discounts promiscuous reference compounds: a toxin such as dioxin changes thousands of genes, so its vote on any single one says less than a targeted drug's.
  • –A bridge is used only when it has at least 3 reference compounds besides the one being evaluated.
  • –The signal runs from −1 (every usable bridge says this compound pushes it the wrong way) to +1. It is the same on every row for that compound and disease, because it is calculated across all their bridges.

Worked example: compound X raises gene G (P = +1.00). Three reference compounds lower G and treat the disease (three ▼ votes), so the bridge direction for G is −1.00. Signal = +1.00 × −1.00 = −1.00 → ⚠. A compound that lowers G would get +1.00 — see below for why that is not shown as “beneficial”.

How well it works

Tested on about 100,000 compound–disease pairs that CTD curators have already settled, hiding each pair's own evidence and predicting it from the other compounds:

PredictionRightCompared with
Direction, all covered pairs61%50% by chance (balanced accuracy)
⚠ harm (signal ≤ −0.40)83%70% if you always guessed “harmful”
“Beneficial” (signal ≥ +0.40)55%Above the 30% base rate, but wrong almost half the time — never labeled

So the app only ever warns; it never labels a compound beneficial from this method. Roughly 1 in 6 warnings is wrong, and a missing warning is not a sign of safety — most pairs simply have too few reference compounds. Use the “Hide ⚠” / “⚠ only” filter to narrow the table either way. Signals are recalculated on each weekly data refresh.

4 · Compound → Disease best assessment (C→B)

The hypothesis page gives one summary line, using the strongest evidence available, in this order:

  1. Direct curated evidence — CTD documents this exact compound treating (✓) or being a risk factor for (!) this disease. About 8% of hypotheses; these are confirmations, not discoveries.
  2. Mechanism suggests harm — the ⚠ warning above.
  3. Unresolved — the compound's effect on the bridge is shown, with a plain statement that the data cannot yet say whether it helps or harms.

The optional AI assessment receives all of this, including the reference-compound list, and gives a separate, unvalidated second opinion.

5 · Compound labels

Toxicant. A compound is flagged as a known toxicant or environmental exposure (and hidden by default) when either:

  • –CTD curates it as a cause or marker of at least 10 diseases and as a treatment for no more than 15% as many (dioxin: 153 vs 13 → flagged; cisplatin: 225 vs 113 → not flagged), or
  • –MeSH classifies it as a pollutant, pesticide, poison, carcinogen, mutagen, teratogen, neurotoxin or similar hazard — unless CTD also records substantial therapeutic use (treatments above 30% of harms, which keeps thalidomide, cyclophosphamide and warfarin unflagged).

Approved drugs are never flagged, and the tooltip on each Toxicant badge says which rule fired. The flag is a filter, not a score change.

Development stage, from ChEMBL's highest trial phase, matched under any of the compound's names:

RxApprovedApproved drug — known human safety, the fastest route to a repurposing trial
Ph 1–3ClinicalReached human trials but not approved — some human safety data
PreclinPreclinicalNever tested in people — the untested frontier, not a negative

Nutrients, mixtures, chemical-class headings and toxicants get no stage. Stage never affects the score.

6 · Same-mechanism drugs

Each hypothesis page lists drugs that are already approved or have reached clinical trials and that act on the same bridge gene in the same direction as the compound (same sign of P from section 1). Many high-ranking compounds are laboratory tools — U0126, for example, is used to switch off the MEK pathway in cell studies and was never meant as a medicine — and our data can't tell a lab tool from a promising untested candidate. Either way, the hypothesis really says “pushing this gene this way might help this disease”, and a drug already tested in people that does the same thing is the quickest way to test that idea.

  • –Order: approved drugs first, then trial-stage; within each, the most consistent direction, then the most supporting records. Toxicants and untested compounds are never listed.
  • –If the compound's own direction is unknown or conflicting, the list shows tested drugs acting on the gene in either direction, each labeled, rather than guessing a match.
  • –Each drug also shows its own curated evidence for the disease (✓ treats, ! cause or risk factor) and links to its own hypothesis through the same gene when there is one.

Same gene and direction does not mean the same effect: potency, selectivity and where a drug reaches in the body differ. The list changes no score.

Known Limitations▾

Residual distributional bias between B↔A and C↔A

Disease–mechanism (B↔A) links are systematically better-studied than drug–mechanism (C↔A) links in biomedical literature. The v1.1 per-side log compression reduces this bias — sparse C↔A edges are no longer as catastrophically penalized as in v1.0 — but it does not eliminate it. A drug that legitimately acts on a well-known disease mechanism but hasn't been studied mechanistically will still score lower than a less relevant drug with more C↔A papers.

Planned fix: normalize each edge count against its global distribution before combining.

Heavily connected bridge genes are not discounted — tested, and deliberately left alone

A few genes (TNF, IL6, TP53, IL1B, PTGS2) connect to a large share of diseases and compounds, so they appear in many top-ranked hypotheses — TNF in about a quarter of the default top 500. We tested whether ranking would improve by (a) discounting Strength for such hub genes or (b) hiding them, using about 30,000 compound–disease pairs that CTD curators record as treatments as the answer key, with the papers behind each treatment record removed from its own counts. Today's Strength placed a known treatment in 41% of its top 500 compound–disease pairs (chance: 0.05%). Every discount did worse (31%, 26% and 11% as it got stronger), hiding the top 10–100 hubs did worse (28–34%, and lost 5–18% of the known treatments entirely), and combining both gave 26%. Hub genes are hubs largely because they are central to many diseases, so links through them are more often real. Caveat: known treatments lean toward well-studied mechanisms, so this test can't prove a discount wouldn't surface better new ideas — a test on discoveries made after a cut-off date would. To skip a hub yourself, filter the Bridge column with exclude (e.g. TNF).

Combined score weights are not empirically calibrated

The 0.5 / 0.5 split between Novelty and Strength has not been validated against known drug-repurposing successes. It is possible that novelty deserves higher weight (since the tool's core value is surfacing unexplored connections), or that strength deserves more weight to filter noise. Calibration requires a ground-truth set of verified Swanson-type discoveries.

Edge counts are still not predicate-filtered — but a separate Polarity display now surfaces direction

B↔A and C↔A counts (and therefore the Strength and Combined scores) still include all predication types regardless of direction — a disease that is only negatively associated with a bridge mechanism, or a compound that only inhibits it, still contributes the same count as a directly therapeutic connection. That has not changed in v1.1.

What has changed: every hypothesis page now shows a separate, independent Polarity section — a normalized -1 to +1 indicator of whether the compound increases/activates or decreases/inhibits the bridge, reference compounds hinting at which direction of the bridge helps the disease, a “mechanism suggests harm” warning, and — for a minority of pairs where CTD directly curates the compound-disease relationship — a direct therapeutic-vs-adverse verdict (see Polarity & Evidence Labels). This is deliberately not folded into the score: the reference-compound method is reliable enough to warn about likely harm (about 83% right) but not to call anything beneficial (about 55%). Where the data doesn't resolve to a real answer, the page says so explicitly rather than guessing.

Formula Changelog▾
  1. current

    Strength formula: log compression moved inside the geometric mean

    • –Strength: 1 − 1 / (1 + √(ln(1+B↔A) × ln(1+C↔A))) — log-compress each side first, then geometric mean
    • –Fix: lopsided triangles (e.g. B↔A=2, C↔A=100) now score correctly below a balanced equivalent
    • –Symmetric cases: output identical to v1.0 — only lopsided hypotheses are affected
    • –Novelty and Combined formulas unchanged
  2. Initial production scoring system

    • –Novelty: 1 / (1 + ln(1 + p)) — log-compressed inverse of B–C paper count
    • –Strength: 1 − 1 / (1 + ln(1 + √(B↔A × C↔A))) — log applied after geometric mean (known limitation)
    • –Combined: 0.5 × Novelty + 0.5 × Strength — equal-weighted linear combination