Skip to content

Commit

Permalink
Fixing otar query
Browse files Browse the repository at this point in the history
  • Loading branch information
souzadevinicius committed Aug 22, 2024
1 parent 2b5c23b commit 62a09c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions queries/genes_to_diseases_ranked_by_otar_score.cypher
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
MATCH (d:`biolink:Disease`)-[:id]->(id:Id {id: "mondo:0005044"})
WITH d
MATCH (d)<-[r1:`gwas:associated_with`]-(s:`gwas:SNP`)-[]->(g:`hgnc:Gene`)
WITH d,s,r1
WITH d,s,r1,g
MATCH (s)-[r2]-(o:`otar:Evidence`)
WHERE o.`otar:variantEffect` is not null
WITH d,s, o,r1,r2
WITH d,s, o,r1,r2,g
ORDER BY o.`otar:score` DESC
RETURN DISTINCT(g.`hgnc:symbol`[0]) as gene_symbol, d.`grebi:name`[0] as disease_name, os[0].`otar:variantEffect`[0] as variant_effect, toFloat(os[0].`otar:score`[0]) as otar_score
RETURN DISTINCT(g.`hgnc:symbol`[0]) as gene_symbol, d.`grebi:name`[0] as disease_name, o.`otar:variantEffect`[0] as variant_effect, toFloat(o.`otar:score`[0]) as otar_score
LIMIT 10

0 comments on commit 62a09c0

Please sign in to comment.