Files
ETL_Datamanagement/neo4jqueries/analysis_queries/query5.cypher
Philipp Jacoby 3003310be0 finishes setup
2026-02-10 17:43:26 +01:00

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;