10 lines
351 B
Plaintext
10 lines
351 B
Plaintext
// Drugs sharing the same side effects showing potential conflicts
|
|
MATCH (c1:Compound)-[:BINDS]->(:Gene),
|
|
(c1)-[:TREATS]->(:Disease),
|
|
(c1)-[:TREATS]->(:Disease)<-[:TREATS]-(c2:Compound),
|
|
(c1)-[:BINDS]->(g:Gene)
|
|
WHERE c1 <> c2
|
|
RETURN c1.name AS Drug1, c2.name AS Drug2, count(g) AS SharedTargets
|
|
ORDER BY SharedTargets DESC
|
|
LIMIT 20;
|