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

8 lines
309 B
Plaintext

// Drugs treating diseases connected to the same genes
MATCH (g:Gene)<-[:ASSOCIATES]-(d1:Disease)<-[:TREATS]-(c:Compound),
(g)<-[:ASSOCIATES]-(d2:Disease)
WHERE NOT (c)-[:TREATS]->(d2)
RETURN c.name AS Drug, d2.name AS CandidateDisease, count(g) AS SharedGenes
ORDER BY SharedGenes DESC, Drug
LIMIT 20;