generated from opensafely/research-template
/
project.yaml
304 lines (264 loc) · 11.9 KB
/
project.yaml
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
version: '3.0'
expectations:
population_size: 100000
actions:
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
## DO NOT EDIT project.yaml DIRECTLY
## This file is created by create_project_actions.R
## Edit and run create_project_actions.R to update the project.yaml
## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
vax_eligibility_inputs:
run: r:latest analysis/vax_eligibility_inputs.R
outputs:
highly_sensitive:
vax_study_dates_json: output/vax_study_dates.json
vax_jcvi_groups: output/vax_jcvi_groups.csv
vax_eligible_dates: output/vax_eligible_dates.csv
generate_study_population:
run: cohortextractor:latest generate_cohort --study-definition study_definition
--output-format feather
needs:
- vax_eligibility_inputs
outputs:
highly_sensitive:
cohort: output/input.feather
preprocess_data:
run: r:latest analysis/preprocess_data.R
needs:
- generate_study_population
outputs:
highly_sensitive:
cohort: output/input.rds
venn: output/venn.rds
stage1_data_cleaning:
run: r:latest analysis/Stage1_data_cleaning.R
needs:
- preprocess_data
outputs:
moderately_sensitive:
QA_rules: output/QA_summary.csv
refactoring: output/meta_data_factors.csv
IE_criteria: output/cohort_flow.csv
highly_sensitive:
cohort: output/input_stage1.rds
stage2_missing_table1:
run: r:latest analysis/Stage2_Missing_Table1.R
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
Missing_RangeChecks: output/Check_missing_range.csv
DateChecks: output/Check_dates_range.csv
Descriptive_Table: output/Table1*.csv
stage3_diabetes_flow:
run: r:latest analysis/diabetes_flowchart.R
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
flow_df: output/diabetes_flow_values.csv
stage4_venn_diagram:
run: r:latest analysis/venn_diagram.R
needs:
- preprocess_data
- stage1_data_cleaning
outputs:
moderately_sensitive:
venn_diagram: output/venn_diagram_*.svg
venn_diagram_number_check: output/venn_diagram_number_check.csv
## Apply cox model for t1dm
Analysis_cox_t1dm:
run: r:latest analysis/01_pipe.R t1dm
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_t1dm.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_t1dm.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_t1dm_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_t1dm.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_t1dm.csv
compiled_event_counts: output/compiled_event_counts_t1dm.csv
## Apply cox model for t2dm
Analysis_cox_t2dm:
run: r:latest analysis/01_pipe.R t2dm
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_t2dm.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_t2dm.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_t2dm_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_t2dm.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_t2dm.csv
compiled_event_counts: output/compiled_event_counts_t2dm.csv
## Apply cox model for otherdm
Analysis_cox_otherdm:
run: r:latest analysis/01_pipe.R otherdm
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_otherdm.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_otherdm.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_otherdm_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_otherdm.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_otherdm.csv
compiled_event_counts: output/compiled_event_counts_otherdm.csv
## Apply cox model for gestationaldm
Analysis_cox_gestationaldm:
run: r:latest analysis/01_pipe.R gestationaldm
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_gestationaldm.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_gestationaldm.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_gestationaldm_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_gestationaldm.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_gestationaldm.csv
compiled_event_counts: output/compiled_event_counts_gestationaldm.csv
## Apply cox model for depression
Analysis_cox_depression:
run: r:latest analysis/01_pipe.R depression
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_depression.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_depression.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_depression_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_depression.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_depression.csv
compiled_event_counts: output/compiled_event_counts_depression.csv
## Apply cox model for anxiety_general
Analysis_cox_anxiety_general:
run: r:latest analysis/01_pipe.R anxiety_general
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_anxiety_general.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_anxiety_general.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_anxiety_general_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_anxiety_general.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_anxiety_general.csv
compiled_event_counts: output/compiled_event_counts_anxiety_general.csv
## Apply cox model for anxiety_ocd
Analysis_cox_anxiety_ocd:
run: r:latest analysis/01_pipe.R anxiety_ocd
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_anxiety_ocd.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_anxiety_ocd.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_anxiety_ocd_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_anxiety_ocd.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_anxiety_ocd.csv
compiled_event_counts: output/compiled_event_counts_anxiety_ocd.csv
## Apply cox model for anxiety_ptsd
Analysis_cox_anxiety_ptsd:
run: r:latest analysis/01_pipe.R anxiety_ptsd
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_anxiety_ptsd.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_anxiety_ptsd.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_anxiety_ptsd_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_anxiety_ptsd.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_anxiety_ptsd.csv
compiled_event_counts: output/compiled_event_counts_anxiety_ptsd.csv
## Apply cox model for eating_disorders
Analysis_cox_eating_disorders:
run: r:latest analysis/01_pipe.R eating_disorders
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_eating_disorders.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_eating_disorders.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_eating_disorders_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_eating_disorders.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_eating_disorders.csv
compiled_event_counts: output/compiled_event_counts_eating_disorders.csv
## Apply cox model for serious_mental_illness
Analysis_cox_serious_mental_illness:
run: r:latest analysis/01_pipe.R serious_mental_illness
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_serious_mental_illness.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_serious_mental_illness.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_serious_mental_illness_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_serious_mental_illness.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_serious_mental_illness.csv
compiled_event_counts: output/compiled_event_counts_serious_mental_illness.csv
## Apply cox model for self_harm_10plus
Analysis_cox_self_harm_10plus:
run: r:latest analysis/01_pipe.R self_harm_10plus
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_self_harm_10plus.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_self_harm_10plus.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_self_harm_10plus_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_self_harm_10plus.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_self_harm_10plus.csv
compiled_event_counts: output/compiled_event_counts_self_harm_10plus.csv
## Apply cox model for self_harm_15plus
Analysis_cox_self_harm_15plus:
run: r:latest analysis/01_pipe.R self_harm_15plus
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_self_harm_15plus.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_self_harm_15plus.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_self_harm_15plus_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_self_harm_15plus.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_self_harm_15plus.csv
compiled_event_counts: output/compiled_event_counts_self_harm_15plus.csv
## Apply cox model for suicide
Analysis_cox_suicide:
run: r:latest analysis/01_pipe.R suicide
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_suicide.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_suicide.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_suicide_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_suicide.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_suicide.csv
compiled_event_counts: output/compiled_event_counts_suicide.csv
## Apply cox model for addiction
Analysis_cox_addiction:
run: r:latest analysis/01_pipe.R addiction
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
analyses_not_run: output/analyses_not_run_addiction.csv
compiled_hrs_csv: output/suppressed_compiled_HR_results_addiction.csv
compiled_hrs_csv_to_release: output/suppressed_compiled_HR_results_addiction_to_release.csv
compiled_event_counts_csv: output/suppressed_compiled_event_counts_addiction.csv
highly_sensitive:
compiled_hrs: output/compiled_HR_results_addiction.csv
compiled_event_counts: output/compiled_event_counts_addiction.csv