finishes setup

This commit is contained in:
Philipp Jacoby
2026-02-10 17:43:26 +01:00
parent 4f1a5c311f
commit 3003310be0
39 changed files with 2251611 additions and 1188 deletions

View File

@@ -0,0 +1,6 @@
// Drug similarity based on shared targets
MATCH (c1:Compound)-[:BINDS]->(g:Gene)<-[:BINDS]-(c2:Compound)
WHERE c1 <> c2
RETURN c1.name AS Drug1, c2.name AS Drug2, count(g) AS SharedGenes
ORDER BY SharedGenes DESC
LIMIT 20;

View File

@@ -0,0 +1,4 @@
// Get count of nodes
MATCH (n)
RETURN labels(n) AS NodeType, count(*) AS Count
ORDER BY Count DESC;

View File

@@ -0,0 +1,5 @@
// Drugs treating diseases that present specific symptoms
MATCH (s:Symptom)<-[:PRESENTS]-(d:Disease)<-[:TREATS]-(c:Compound)
RETURN s.name AS Symptom, c.name AS Drug, count(d) AS DiseaseCount
ORDER BY DiseaseCount DESC
LIMIT 20;

View File

@@ -0,0 +1,5 @@
// Top 10 diseases with the most associated symptoms
MATCH (d:Disease)-[:PRESENTS]->(s:Symptom)
RETURN d.name AS Disease, count(s) AS SymptomCount
ORDER BY SymptomCount DESC
LIMIT 10;

View File

@@ -0,0 +1,9 @@
// 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;

View File

@@ -0,0 +1,5 @@
// Top 10 Drugs treating multiple Diseases
MATCH (c:Compound)-[:TREATS]->(d:Disease)
RETURN c.name AS Drug, count(d) AS DiseaseCount
ORDER BY DiseaseCount DESC
LIMIT 10;

View 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;

View File

@@ -0,0 +1,4 @@
// LOOK for 999 Treatments for diseases
MATCH p=()-[:TREATS]->()
RETURN p
LIMIT 999;