← Back to Education
EdgeSci-THU-China · iGEM 2026 Education

Lesson 5 · Graph Reasoning for Emerging-Drug Interactions

When interaction records disappear, other biological connections may remain. Follow one drug pair from those clues to a graph prediction, then ask what the results and routes actually establish. Each question has its own sequence length; you can play, step, inspect and reset.

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

KEY QUESTIONIf DDI records are missing, what can we still know?
Course pages are shown in each headingTeaching illustration
A drug can be new to the DDI training task while still having structure and biological annotations. “New” here refers to what the training records reveal, not automatically to its approval date.

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”.

Dolasetron · held-out drugDDI record withheldTapentadol · known drug

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.

Takeaway

Separate the missing DDI label from the biological information that is still available.

Read every step as text
  1. 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”.
  2. 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.
  3. 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.
  4. 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.
  5. Related drugs can offer indirect routes. Similarity may be useful for prediction, yet an effect observed for another drug does not transfer automatically.
  6. 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

KEY QUESTIONWhat do node, relation and path mean?
Course pages are shown in each headingTeaching illustration
Use the actual names throughout: Dolasetron and Tapentadol are drugs; CYP2D6 is an enzyme represented as a gene/protein entity. A route is made from relation records between these entities.
\text{Dolasetron}\xrightarrow{\mathrm{CbG}}\text{CYP2D6}\xrightarrow{\mathrm{CbG}}\text{Tapentadol}

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.

Dolasetron
drug–gene link
CYP2D6
drug–gene link
Tapentadol

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.

Takeaway

Always read a path as named entities plus typed relations, not as an unexplained chain of letters.

Read every step as text
  1. The boxes are nodes. Here they represent two drugs and one intermediate gene/protein entity. Their colours indicate roles, not a measured risk.
  2. 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.
  3. Following two adjacent links forms a two-hop path. A hop counts an edge, so three nodes here correspond to two hops.
  4. 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

KEY QUESTIONHow does a wider evidence map reconnect the drugs?
Course pages are shown in each headingTeaching illustration
A DDI-only map can leave a held-out drug disconnected. Biomedical relations can reconnect it through a target, enzyme or related drug. The teaching map below also contains side branches, so that “connected” and “useful for this pair” stay distinct.

0 / 4 ·The two endpoint drugs are fixed. The hidden Dolasetron–Tapentadol label is deliberately absent from this map.

Teaching evidence network: named drugs, protein, similar drug and side branches. Lines are relation records, not demonstrated causal effects.Teaching evidence network: named drugs, protein, similar drug and side branches. Lines are relation records, not demonstrated causal effects.bindingbindingresemblesrecorded DDIrelatedrelatedassociatedassociatedDolasetronheld-out drugCYP2D6protein / geneTapentadolknown drugHyoscyaminesimilar drugDrug Cteaching contextPhenotypeother neighbourDiseaseside branch

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.

Takeaway

Add relation types that supply a route; do not substitute the hidden test label with a leaked record.

Read every step as text
  1. The two endpoint drugs are fixed. The hidden Dolasetron–Tapentadol label is deliberately absent from this map.
  2. In the DDI-only view, a known Hyoscyamine–Tapentadol relation remains, but Dolasetron has no direct DDI edge to use.
  3. Adding drug–gene relations creates the Dolasetron–CYP2D6–Tapentadol route. This is additional biological context, not a recovered hidden DDI label.
  4. Adding a resemblance relation creates another route through Hyoscyamine. Several kinds of evidence can now connect the same pair.
  5. 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

KEY QUESTIONWhich part of the network belongs to this prediction?
Course pages are shown in each headingTeaching illustration
A subgraph is a smaller map taken from the larger network. Here we keep links that occur on a route between the two selected drugs within the hop limit. A nearby node can be excluded if it is only a side branch.
\mathcal{G}_{u,v}^{(H)}=\bigcup_{p:u\leadsto v,\ |p|\le H}p

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.

hops · one hop = one edge
Teaching evidence network: named drugs, protein, similar drug and side branches. Lines are relation records, not demonstrated causal effects.Teaching evidence network: named drugs, protein, similar drug and side branches. Lines are relation records, not demonstrated causal effects.bindingbindingresemblesrecorded DDIrelatedrelatedassociatedassociatedDolasetronheld-out drugCYP2D6protein / geneTapentadolknown drugHyoscyaminesimilar drugDrug Cteaching contextPhenotypeother neighbourDiseaseside branch

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.

Takeaway

Select evidence for a named pair; explain both what was kept and what the hop limit leaves out.

Read every step as text
  1. Begin with the expanded teaching network. The prediction endpoints remain Dolasetron and Tapentadol; we are not trying to summarise the whole network.
  2. 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.
  3. 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.
  4. Keep complete routes that reach the other drug within the limit. At two hops, the enzyme route and the similar-drug route both qualify.
  5. 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.
  6. 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

KEY QUESTIONHow can several routes contribute to one output?
Course pages are shown in each headingTeaching illustrationExact calculation on toy values
EmerGNN propagates information through the selected subgraph and learns which links are relevant for the target pair. To make combination visible, this calculator uses a much simpler weighted mixture of two invented route scores.
\widetilde{s}_c=w\,s_{c,\mathrm{enzyme}}+(1-w)\,s_{c,\mathrm{similar}}

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.

0.67

A = 0.67 × 0.80 + 0.33 × 0.30 = 0.635; B = 0.67 × 0.20 + 0.33 × 0.70 = 0.365.

Type A · invented class
0.635
Type B · invented class
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.

Takeaway

Combination is a prediction operation; its weights do not certify a mechanism.

Read every step as text
  1. Fix the target pair and selected routes. The aim is one predicted interaction type, not one clinical conclusion for every intermediate node.
  2. The enzyme route carries one kind of information. In this sandbox its invented class scores favour Type A.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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

KEY QUESTIONWhat was withheld, and what did the benchmark measure?
Course pages are shown in each headingPaper results reproduced in the course deck
To simulate an emerging drug, the experiment withholds its DDI records while using the permitted biomedical network. Check this separation before reading performance. The green charts reproduce the selected comparison in the supplied course deck.
F_1^{\mathrm{macro}}=\frac{1}{C}\sum_{c=1}^{C}\frac{2P_cR_c}{P_c+R_c}

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

EmerGNN
62%Mean ± SD: 62.0 ± 2.0
CSMDDI
45.5%Mean ± SD: 45.5 ± 1.8

Difference: 16.5 percentage points. Reported p < 0.001.

S2 · two held-out drugs

Common scale: 0–80% F1

EmerGNN
25%Mean ± SD: 25.0 ± 2.8
CSMDDI
19.8%Mean ± SD: 19.8 ± 3.1

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.

Takeaway

Read the information withheld, the metric and the absolute score together.

Read every step as text
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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

KEY QUESTIONWhat do the two routes for Dolasetron–Tapentadol say?
Course pages are shown in each headingTeaching illustration
Return to the actual names and relation types. The two route views are selectable, not screenshots: each one opens its own assumptions and evidence limits for the same endpoint pair.

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
CbG · binding
CYP2D6
CbG · binding
Tapentadol

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.

Dolasetron
resembles
Hyoscyamine
recorded DDI
Tapentadol

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.

Takeaway

For each route, name its relation, its assumption and the evidence needed to check it.

Read every step as text
  1. Start with the Dolasetron–Tapentadol case. Dolasetron is held out for the DDI task and Tapentadol is known. Their identifiers make the endpoints unambiguous.
  2. Select the shared-enzyme view. CbG links each drug to the CYP2D6 entity. This is a typed graph connection that the model uses.
  3. 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.
  4. 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.
  5. 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

KEY QUESTIONWhen does a model clue become a biological explanation?
Course pages are shown in each headingTeaching illustration
“The model used a CYP2D6 connection” and “this drug pair changes enzyme activity and patient exposure” are different claims. The second needs evidence for biological actions, conditions and observed effects.

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.

Dolasetron
graph relation
CYP2D6
graph relation
Tapentadol

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.

Takeaway

State the strongest claim supported by the available evidence, and leave unsupported causal steps open.

Read every step as text
  1. A displayed route tells you which connected information was considered. Even a highly weighted route can reflect predictive association instead of the proposed cause.
  2. 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”.
  3. 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.
  4. A mechanism hypothesis should lead to an observable change. Check whether the study measures that change and whether its conditions match the claim.
  5. Keep an evidence ledger: supported record, proposed step and missing observation. This prevents a plausible path from being narrated as a complete causal chain.
  6. 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

KEY QUESTIONIs a bigger network always more useful?
Course pages are shown in each headingApproximate readings from course figures
This comparison changes which biomedical relations are supplied. It separates selecting an informative relation type from simply retaining a larger number of edges. Select a condition to read what was kept and what may be concluded.

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
≈60%Approximate F1 · 100% of biomedical edges
Drug resemblance only
≈58%Approximate F1 · about 0.4% of biomedical edges
Random subset
≈38%Approximate F1 · 10% of biomedical edges

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.

Takeaway

Inspect which relation types survive, not only how many edges survive.

Read every step as text
  1. Ask what was removed or retained before comparing performance. A relation-type selection and a random edge subset are different interventions.
  2. The course shows the full biomedical network at roughly 60% F1. It is the reference condition, with all biomedical edges retained.
  3. 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.
  4. 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.
  5. 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

KEY QUESTIONWhere does the method stop, and review begin?
Course pages are shown in each headingApproximate readings from course figures
An improved benchmark score does not remove the long tail or missing network coverage. Use the rare-type chart and coverage switch to inspect two different reasons a prediction may be unreliable or unavailable.

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

Ranks 1–20% · more frequent
≈68%Approximate EmerGNN F1
Ranks 21–40%
≈70%Approximate EmerGNN F1
Ranks 41–60%
≈66%Approximate EmerGNN F1
Ranks 61–80%
≈64%Approximate EmerGNN F1
Ranks 81–100% · rarest
≈19%Approximate EmerGNN 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.

Takeaway

A prediction must state its coverage, its evaluation setting and what still needs independent checking.

Read every step as text
  1. The course shows approximate F1 across interaction-type frequency ranks. The left groups are more frequent types; the rightmost group contains the rarest types.
  2. 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.
  3. 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.
  4. The evaluation withholds drugs from existing datasets. That test does not by itself establish performance for future drugs with different annotations or evidence availability.
  5. Return to all three questions: remaining evidence, graph use and claim strength. For each prediction, keep the split, coverage and relation meanings visible.
  6. 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.
  7. 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.

Return to the three questions
QuestionWhat we learnedWhat to inspectWhat 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?

Control the current question

Click or focus a question first. Otherwise, shortcuts use the question nearest the centre of the screen. Shortcuts do not override form fields or normal button activation.

Space
Play / pause
→ / ←
Next / previous step
R
Reset the current animation
Home / End
First / final step
Esc
Pause playback / close this guide
?
Open this guide