Skip to content

Commit

Permalink
get_node_counts edit (#67)
Browse files Browse the repository at this point in the history
* Grant Pipeline-New GARD Mapping Process

* Change get_node_counts

---------

Co-authored-by: Devon Joseph Leadman <[email protected]>
  • Loading branch information
devonleadman and Devon Joseph Leadman authored Jun 21, 2024
1 parent 19be942 commit b20fa3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RDAS_GARD/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def populate_node_counts(db,data,prop_name):

res1 = db.run('MATCH (x:GARD)--(y:Phenotype) WITH COUNT(DISTINCT y) AS cnt,x SET x.COUNT_PHENOTYPES = cnt').data()
res2 = db.run('MATCH (x:GARD)--(y:Gene) WITH COUNT(DISTINCT y) AS cnt,x SET x.COUNT_GENES = cnt').data()
res3 = ct_db.run('MATCH (x:GARD)--(y:Annotation)--(z:Condition)--(ct:ClinicalTrial) WITH COUNT(DISTINCT ct) AS cnt,x RETURN cnt AS cnt,x.GardId AS gard_id').data()
res3 = ct_db.run('MATCH (x:GARD)--(y:ConditionAnnotation)--(z:Condition)--(ct:ClinicalTrial) WITH COUNT(DISTINCT ct) AS cnt,x RETURN cnt AS cnt,x.GardId AS gard_id').data()
res4 = pm_db.run('MATCH (x:GARD)--(y:Article) WITH COUNT(DISTINCT y) AS cnt,x RETURN cnt AS cnt, x.GardId AS gard_id').data()
res5 = gnt_db.run('MATCH (x:GARD)--(y:Project)--(z:CoreProject) WITH COUNT(DISTINCT z) AS cnt,x RETURN cnt AS cnt, x.GardId as gard_id').data()

Expand Down
2 changes: 1 addition & 1 deletion RDAS_PAKG/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ def main (update_from=False, update_to=False):
RDAS_PAKG.init.main(update_from=update_from, update_to=update_to)


main() #TEST
#main() #TEST
#get_node_counts()

0 comments on commit b20fa3f

Please sign in to comment.