Skip to content

Commit

Permalink
Added statistics Cypher query for ICDC
Browse files Browse the repository at this point in the history
  • Loading branch information
n2iw committed Sep 10, 2020
1 parent 91cc5e4 commit 371ab10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions queries/ICDC_stats.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
MATCH (s:study)
OPTIONAL MATCH (s)<-[*]-(c:case)
WITH s, COUNT(DISTINCT c) AS cases
OPTIONAL MATCH (s)<-[*]-(samp:sample)
WITH s, cases, COUNT(DISTINCT samp) AS samples
OPTIONAL MATCH (s)<-[*]-(f:file)
WITH DISTINCT f, s, cases, samples
RETURN s.clinical_study_designation AS study_code,
COUNT(f) AS files,
SUM(f.file_size) AS totoal_size,
cases,
samples

0 comments on commit 371ab10

Please sign in to comment.