Lesson 5 · Graph Reasoning for Emerging-Drug Interactions
One pair, three questions
What evidence remains?
Keep the distinction between direct interaction records and other biological links.
How does the graph use it?
Expand → focus → combine. Interact with the hop limit and teaching route weights.
What does it establish?
Read the benchmark, inspect candidate routes, and check the limits before making a claim.
Amber · teaching networks and invented route scores
Green · reported results reproduced by the deck
Blue · approximate readings from deck figures
01The missing-record problemDeck pages 2–4
0 / 5 ·Start with a held-out Dolasetron–Tapentadol pair. We do not show its interaction label to the learner. Missing is an evidence state, not the answer “no interaction”.
Direct interaction record
This is the pair label we want to predict. It is unavailable in the example.
Targets
Dolasetron: 5-HT3 receptor. Tapentadol: μ-opioid receptor. These are separate target clues.
Indication & side effect
The deck connects Dolasetron to nausea/vomiting and Tapentadol to constipation. Those links are not DDI labels.
A shared enzyme-related entity
The course graph links both drugs to CYP2D6. The precise meaning of each drug–gene relation needs checking.
A related drug
A route through hyoscyamine adds another candidate connection. We will inspect its assumptions later.
Separate the missing DDI label from the biological information that is still available.
Read every step as text
- Start with a held-out Dolasetron–Tapentadol pair. We do not show its interaction label to the learner. Missing is an evidence state, not the answer “no interaction”.
- Other facts can remain: the deck shows separate receptor targets for the two drugs. A target tells us about a drug, not yet how this pair interacts.
- Indications and side effects add context. Nausea/vomiting and constipation refer to different recorded associations; do not read them as the pair’s interaction label.
- CYP2D6 is linked to both drugs in the course example. This shared entity may connect them, but a binding-type graph edge alone does not establish inhibition, metabolism or a change in exposure.
- Related drugs can offer indirect routes. Similarity may be useful for prediction, yet an effect observed for another drug does not transfer automatically.
- We now have a precise task: organise the remaining relations without reintroducing the hidden pair label. The next modules turn those relations into a graph.
02Read the graph vocabularyDeck pages 5
Teaching path notation: CbG denotes a drug–gene binding relation. Arrows indicate the reading order of the route, not a demonstrated direction of biochemical causation.
0 / 3 ·The boxes are nodes. Here they represent two drugs and one intermediate gene/protein entity. Their colours indicate roles, not a measured risk.
Node = an entity
Each box names a drug or protein/gene. A node needs an identity, not just a letter.
Relation = a recorded link
An edge has a type. Binding and drug resemblance mean different things.
Path = a sequence of links
Two edges connect the two drug nodes through one intermediate node. This is a two-hop path.
A path shows connectivity in the data. Its relation types determine what you may infer from that connectivity.
Always read a path as named entities plus typed relations, not as an unexplained chain of letters.
Read every step as text
- The boxes are nodes. Here they represent two drugs and one intermediate gene/protein entity. Their colours indicate roles, not a measured risk.
- The links are relations. In the paper case, CbG is the drug–gene binding relation. The relation name is part of the data meaning and must travel with the edge.
- Following two adjacent links forms a two-hop path. A hop counts an edge, so three nodes here correspond to two hops.
- Connectivity is the first reading, not the final explanation. To claim a mechanism, inspect what each relation actually supports and what is still unknown.
03Step 1 · Expand the evidence mapDeck pages 6
0 / 4 ·The two endpoint drugs are fixed. The hidden Dolasetron–Tapentadol label is deliberately absent from this map.
On narrow screens, swipe horizontally. Keyboard: focus the graph, then use ← / →; Home / End reach either side.
Start with the DDI-only map, then add relation types.
Purple: retained drug pair endpoints. Green: protein/gene clue. Blue: related drug. Side branches provide context but are not all useful for this pair.
Add relation types that supply a route; do not substitute the hidden test label with a leaked record.
Read every step as text
- The two endpoint drugs are fixed. The hidden Dolasetron–Tapentadol label is deliberately absent from this map.
- In the DDI-only view, a known Hyoscyamine–Tapentadol relation remains, but Dolasetron has no direct DDI edge to use.
- Adding drug–gene relations creates the Dolasetron–CYP2D6–Tapentadol route. This is additional biological context, not a recovered hidden DDI label.
- Adding a resemblance relation creates another route through Hyoscyamine. Several kinds of evidence can now connect the same pair.
- The wider map includes other neighbours. Expansion creates possible routes, but indiscriminately using every neighbour would mix relevant connections with side branches. Next we select the connecting subgraph.
04Step 2 · Focus on this pairDeck pages 7
Conceptual teaching notation: u and v are the two drugs, H is a hop limit, and the union keeps the nodes and links on eligible routes. This summarises the idea, rather than copying the full model algorithm.
0 / 5 ·Begin with the expanded teaching network. The prediction endpoints remain Dolasetron and Tapentadol; we are not trying to summarise the whole network.
On narrow screens, swipe horizontally. Keyboard: focus the graph, then use ← / →; Home / End reach either side.
Connecting paths within the limit
- Dolasetron → CYP2D6 → Tapentadol · 2 hops
- Dolasetron → Hyoscyamine → Tapentadol · 2 hops
Two connecting paths; four unique retained edges at a two-hop limit.
This sandbox enumerates simple connecting paths in the tiny teaching graph. It illustrates the hop-limited selection idea; it does not reproduce the complete EmerGNN extraction implementation.
Select evidence for a named pair; explain both what was kept and what the hop limit leaves out.
Read every step as text
- Begin with the expanded teaching network. The prediction endpoints remain Dolasetron and Tapentadol; we are not trying to summarise the whole network.
- Choose a maximum route length. One hop means one edge. With a one-hop limit there is no direct edge between these drugs, so the kept path list is empty.
- Explore from an endpoint through the allowed relations. A local neighbour is a candidate for exploration, not automatically a member of the final connecting subgraph.
- Keep complete routes that reach the other drug within the limit. At two hops, the enzyme route and the similar-drug route both qualify.
- Remove side branches from the retained view. The disease branch and phenotype leaf do not lie on a qualifying connecting path in this toy network.
- Try three hops: the extra route through Drug C becomes eligible. More allowed hops changes the evidence used and may add complexity; longer is not automatically better.
05Step 3 · Combine several routesDeck pages 8–9
Teaching calculator only: c is an invented class, the two s values are invented route scores, and w is the slider value. This is not the full EmerGNN prediction formula.
0 / 6 ·Fix the target pair and selected routes. The aim is one predicted interaction type, not one clinical conclusion for every intermediate node.
Enzyme-associated route
Teaching scores: Type A = 0.80; Type B = 0.20. These invented scores describe this sandbox only.
Similar-drug route
Teaching scores: Type A = 0.30; Type B = 0.70. This route favours a different class in our invented example.
A = 0.67 × 0.80 + 0.33 × 0.30 = 0.635; B = 0.67 × 0.20 + 0.33 × 0.70 = 0.365.
Neither the route weights nor these two class scores are trained EmerGNN outputs. A higher teaching score is not a clinical risk probability.
Combination is a prediction operation; its weights do not certify a mechanism.
Read every step as text
- Fix the target pair and selected routes. The aim is one predicted interaction type, not one clinical conclusion for every intermediate node.
- The enzyme route carries one kind of information. In this sandbox its invented class scores favour Type A.
- The similar-drug route carries another kind of information. Our invented scores make it favour Type B, so the routes do not have to agree.
- Relevance tells the model how much to use a link or message for this pair. Our manual weight is only a teaching stand-in; the actual model learns relevance from training.
- Multiply each route score by its teaching weight and add. At 0.67 and 0.33, Type A receives 0.635 and Type B 0.365. The numbers are exactly calculated from the invented inputs.
- Change the slider and inspect both scores. The preferred invented class can switch. This demonstrates dependence on evidence weighting, not a newly validated drug prediction.
- The trained method is richer than this calculator: it uses graph propagation and learned representations. A weighted clue can guide inspection, but relevance is not evidence that the clue is biologically causal.
06Test the emerging-drug settingDeck pages 10–11
C is the number of interaction types; precision P and recall R are computed per type before averaging. For an empty denominator, a scoring protocol must state its convention.
0 / 5 ·Known/new is defined by the DDI training information. Select a setting to see which side retains interaction history. These icons describe the split, not the number of biological annotations.
Known + known: both drugs retain DDI history. A previously unseen pair can still contain two familiar drugs. No S0 score is supplied in the selected chart.
S1 · one held-out drug
Common scale: 0–80% F1
Difference: 16.5 percentage points. Reported p < 0.001.
S2 · two held-out drugs
Common scale: 0–80% F1
Difference: 5.2 percentage points. Reported p = 0.02.
Macro F1 scores each interaction type and averages those scores equally. A common type does not receive more weight just because it has more examples.
Read the information withheld, the metric and the absolute score together.
Read every step as text
- Known/new is defined by the DDI training information. Select a setting to see which side retains interaction history. These icons describe the split, not the number of biological annotations.
- S1 withholds the new side’s DDI records; S2 withholds records for both sides. A test label must not become an input relation. Allowed biomedical clues can remain a separate information source.
- The reported metric is DrugBank macro F1. Each interaction type gets a score and equal weight in the average, so this is not simply the fraction of all pairs classified correctly.
- The S1 comparison reports EmerGNN 62.0 ± 2.0 versus CSMDDI 45.5 ± 1.8. Means differ by 16.5 percentage points; the displayed ± values are standard deviations, not patient-risk intervals.
- The S2 comparison reports 25.0 ± 2.8 versus 19.8 ± 3.1, a 5.2-point difference. Both panels use the same 0–80 scale, making the lower absolute S2 performance visible.
- The selected benchmark supports improved prediction under its tested protocol. It does not establish clinical benefit, a causal mechanism, or performance for drugs that arrive after the dataset.
07Inspect two candidate routesDeck pages 12–13
0 / 4 ·Start with the Dolasetron–Tapentadol case. Dolasetron is held out for the DDI task and Tapentadol is known. Their identifiers make the endpoints unambiguous.
Dolasetron: DB00757 · CYP2D6 entity: Gene::1565 · Tapentadol: DB06204
What this route supplies
A shared gene/protein connection used in the model case. It suggests a place to investigate; it does not establish which drug inhibits an enzyme or changes the other drug’s exposure.
What this route supplies
A resemblance link followed by a recorded interaction for another pair. Check the definition of resemblance and the recorded effect before considering whether any clue transfers.
The same endpoints, different assumptions
The enzyme and resemblance routes contribute to the same Dolasetron–Tapentadol prediction. Neither route alone establishes the case’s dataset label #52.
Label #52 is an identifier in the case dataset, not a severity score, a probability or the hop count. Its biological meaning must be checked in the label definition and original evidence.
For each route, name its relation, its assumption and the evidence needed to check it.
Read every step as text
- Start with the Dolasetron–Tapentadol case. Dolasetron is held out for the DDI task and Tapentadol is known. Their identifiers make the endpoints unambiguous.
- Select the shared-enzyme view. CbG links each drug to the CYP2D6 entity. This is a typed graph connection that the model uses.
- Select the similar-drug view. Dolasetron resembles Hyoscyamine, and a recorded Hyoscyamine–Tapentadol interaction completes the route. The relation for another pair is a clue, not an automatic new label.
- Both routes address the same pair but rely on different assumptions. Learned relevance can prioritise inspection; it cannot replace checking the assumptions or source records.
- The case carries dataset label #52. A path and a label are different objects: one provides connected evidence, the other is the target class. Keep that distinction when explaining the model.
08A path is a clue, not the mechanismDeck pages 14
0 / 5 ·A displayed route tells you which connected information was considered. Even a highly weighted route can reflect predictive association instead of the proposed cause.
Supported description: a model-used connection
The case graph contains the typed route and the model uses it. Inspect the relation records to verify that description. This does not yet specify a causal drug effect.
1 · Inspect the record
Resolve the drug and gene identities; read the relation definition, source and direction if specified.
2 · Check the mechanism
Look for independent evidence of the relevant enzyme or drug effect under stated conditions. A graph edge does not supply every causal step.
3 · Connect to an observation
Ask whether the proposed change predicts a measurable endpoint and whether that endpoint was actually observed.
4 · Keep the gap visible
Record unsupported steps explicitly. A useful candidate can remain useful without being promoted to a proven clinical mechanism.
The course does not supply the independent mechanism or clinical studies needed to close this chain. This page therefore keeps those steps open.
State the strongest claim supported by the available evidence, and leave unsupported causal steps open.
Read every step as text
- A displayed route tells you which connected information was considered. Even a highly weighted route can reflect predictive association instead of the proposed cause.
- First inspect the edge records. Check entity identities and what “binding” means in the underlying source; do not silently replace it with “inhibits” or “is metabolised by”.
- Next ask what biological action is supported independently. For an enzyme hypothesis, the relevant effect and its conditions must be established outside the graph connection alone.
- A mechanism hypothesis should lead to an observable change. Check whether the study measures that change and whether its conditions match the claim.
- Keep an evidence ledger: supported record, proposed step and missing observation. This prevents a plausible path from being narrated as a complete causal chain.
- The independent evidence is not supplied in this lesson. The correct endpoint here is a candidate to review, with the gap stated explicitly, not a clinical recommendation.
09Which relations actually help?Deck pages 15
0 / 4 ·Ask what was removed or retained before comparing performance. A relation-type selection and a random edge subset are different interventions.
Common scale: 0–80% F1
Full network · 100% of biomedical edges · approximately 60% F1. This is the reference condition, not a guarantee that every edge helps.
The ≈ values are rounded readings reproduced by the course deck, not exact re-extracted paper data. The percentages refer to network edges, not retained drugs or patient groups.
Inspect which relation types survive, not only how many edges survive.
Read every step as text
- Ask what was removed or retained before comparing performance. A relation-type selection and a random edge subset are different interventions.
- The course shows the full biomedical network at roughly 60% F1. It is the reference condition, with all biomedical edges retained.
- Keeping only drug-resemblance relations retains about 0.4% of biomedical edges yet reaches roughly 58% F1 in this experiment. The selection targets a relation type, not an arbitrary tiny subset.
- A random 10% edge subset reaches roughly 38% F1 here. More retained edges than the resemblance condition do not make it more informative for this prediction.
- The comparison suggests that relation content matters in this experiment. It does not establish that resemblance always suffices, that all other relations are useless, or that 0.4% is a universal optimum.
10Recognise limits, then hand offDeck pages 16–18
0 / 6 ·The course shows approximate F1 across interaction-type frequency ranks. The left groups are more frequent types; the rightmost group contains the rarest types.
Common scale: 0–80% F1
These bins rank interaction types by dataset frequency. They are not patient-risk percentiles; the five displayed values do not define a new overall macro F1.
Try the graph-coverage boundary
Covered drug: a network entity is available, so a connecting subgraph may be built if relevant routes exist. Coverage alone does not guarantee a correct prediction.
Future-drug evaluation
Holding out existing dataset drugs is different from testing drugs that arrive later. A matching future/time-based test is still needed.
Handoff to review
Package the candidate route, exact relation records, model output and missing evidence. A reviewer can then decide what to check or measure.
Prediction ends with a bounded candidate. Lesson 6 takes up the evidence review and the choice of a testable next question.
A prediction must state its coverage, its evaluation setting and what still needs independent checking.
Read every step as text
- The course shows approximate F1 across interaction-type frequency ranks. The left groups are more frequent types; the rightmost group contains the rarest types.
- Frequent groups are around 64–70% F1, whereas the rarest group is around 19%. Improvement in an overall comparison does not mean rare types are solved.
- Now toggle graph coverage. A drug needs to be present in the biomedical network for this method to build its pair-specific evidence subgraph. Being absent is not a low-risk prediction; it is an applicability gap.
- The evaluation withholds drugs from existing datasets. That test does not by itself establish performance for future drugs with different annotations or evidence availability.
- Return to all three questions: remaining evidence, graph use and claim strength. For each prediction, keep the split, coverage and relation meanings visible.
- Prepare a review packet: the pair identities, candidate routes, source relation records, prediction setting and unresolved steps. These are what another person needs to inspect the candidate.
- Lesson 6 begins after this handoff. Ask who should review the similar-drug chain, which sources could check it, and which observable change would test the hypothesis.
Return to the three questions
A useful prediction starts with available evidence and ends with a clearly bounded claim.
| Question | What we learned | What to inspect | What remains open |
|---|---|---|---|
| What evidence remains? | Targets, enzymes, indications, side effects and related drugs may connect the pair. | What each edge means, where it came from, and whether it is allowed at test time. | Missing direct records are not evidence of no interaction. |
| How can a graph use it? | Expand the map, keep connecting routes, and learn a pair-specific representation for prediction. | Path length, relation types, learned relevance and the training/test split. | Our sandbox explains the logic; its weights and class scores are not a trained model. |
| How much can we trust it? | The reported benchmark improves over the selected comparator; routes guide inspection. | Rare types, covered entities, independent mechanism evidence and deployment conditions. | Held-out-drug results do not establish future-drug performance or clinical causation. |
Lesson 6 begins with the review: who should inspect a candidate chain, what sources are needed, and which observation could test it?