-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFacet_checkbox_list.cypher
183 lines (143 loc) · 5.73 KB
/
Facet_checkbox_list.cypher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/* Diagnosis Section */
// diagnosis facet
match (dg:diagnosis)
return distinct dg.diagnosis as diagnosis
order by diagnosis
// diagnosis anatomic site facet
match (dg:diagnosis)
with distinct dg.anatomic_site as diagnosis_anatomic_site_str
with apoc.text.split(diagnosis_anatomic_site_str, ';') as arr
unwind arr as anatomic_site
return distinct anatomic_site as diagnosis_anatomic_site
order by diagnosis_anatomic_site
// diagnosis classification system facet
match (dg:diagnosis)
return distinct dg.diagnosis_classification_system as diagnosis_classification_system
order by diagnosis_classification_system
// diagnosis basis facet
match (dg:diagnosis)
return distinct dg.diagnosis_basis as diagnosis_basis
order by diagnosis_basis
// disease phase facet
match (dg:diagnosis)
return distinct dg.disease_phase as disease_phase
order by disease_phase
/* Demographics Section */
// sex facet
match (p:participant)
return distinct p.sex_at_birth as sex_at_birth
order by sex_at_birth
// race facet
match (p:participant)
with distinct p.race as race_str
with apoc.text.split(race_str, ';') as arr
unwind arr as race
return distinct race as race
order by race
/* Treatment Section */
// treatment agent facet
match (t:treatment)
with distinct t.treatment_agent as treatment_agent_str
where trim(treatment_agent_str) <> ''
with apoc.text.split(treatment_agent_str, ';') as arr
unwind arr as treatment_agent
return distinct treatment_agent as treatment_agent
order by treatment_agent
// treatment type facet
match (t:treatment)
with distinct t.treatment_type as treatment_type_str
where trim(treatment_type_str) <> ''
with apoc.text.split(treatment_type_str, ';') as arr
unwind arr as treatment_type
return distinct treatment_type as treatment_type
order by treatment_type
/* Treatment Response Section */
// response category facet
match (tr:treatment_response)
return distinct tr.response_category as response_category
order by response_category
/* Survival Section */
// first event facet
match (sur:survival)
where trim(sur.first_event) <> ''
return distinct sur.first_event as first_event
order by first_event
// last known survival status facet
match (sur:survival)
return distinct sur.last_known_survival_status as last_known_survival_status
order by last_known_survival_status
/* Samples Section */
// sample anatomic site facet
match (sam:sample)
with distinct sam.anatomic_site as anatomic_site_str
where trim(anatomic_site_str) <> ''
with apoc.text.split(anatomic_site_str, ';') as arr
unwind arr as anatomic_site
return distinct anatomic_site as sample_anatomic_site
order by sample_anatomic_site
// sample tumor status facet
match (sam:sample)
return distinct sam.sample_tumor_status as sample_tumor_status
order by sample_tumor_status
//tumor classification facet
match (sam:sample)
return distinct sam.tumor_classification as tumor_classification
order by tumor_classification
/* Data Category Section */
// data category facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
with distinct file.data_category as data_category_str
where trim(data_category_str) <> ''
with apoc.text.split(data_category_str, ';') as arr
unwind arr as data_category
return distinct data_category as data_category
order by toLower(data_category)
// file type facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
return distinct file.file_type as file_type
order by file_type
// file mapping level facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
return distinct file.file_mapping_level as file_mapping_level
order by file_mapping_level
/* Study Section */
// dbgap accession facet
match (st:study)
return distinct st.dbgap_accession as dbgap_accession
order by dbgap_accession
// study name facet
match (st:study)
return distinct st.study_name as study_name
order by study_name
/* Sequencing Library Section */
// library selection facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
with distinct file.library_selection as library_selection
where library_selection is not null
return library_selection
order by tolower(library_selection)
// library source material facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
with distinct file.library_source_material as library_source_material
where library_source_material is not null
return library_source_material
order by tolower(library_source_material)
// library strategy facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
with distinct file.library_strategy as library_strategy
where library_strategy is not null
return library_strategy
order by tolower(library_strategy)
// library source molecule facet
match (file)
where (file:clinical_measure_file OR file: sequencing_file OR file:pathology_file OR file:radiology_file OR file:methylation_array_file OR file:cytogenomic_file OR file:generic_file)
with distinct file.library_source_molecule as library_source_molecule
where library_source_molecule is not null
return library_source_molecule
order by tolower(library_source_molecule)