finishes setup
This commit is contained in:
7
neo4jqueries/analysis_queries/query7.cypher
Normal file
7
neo4jqueries/analysis_queries/query7.cypher
Normal file
@@ -0,0 +1,7 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user