generated from opensafely/research-template
/
project.yaml
171 lines (148 loc) · 6.13 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
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/preprocess_data.R
needs:
- generate_study_population
outputs:
moderately_sensitive:
describe: output/not-for-review/describe_input_stage0.txt
highly_sensitive:
cohort: output/input.rds
venn: output/venn.rds
stage1_data_cleaning:
run: r:latest analysis/preprocess/Stage1_data_cleaning.R
needs:
- preprocess_data
outputs:
moderately_sensitive:
QA_rules: output/review/descriptives/QA_summary.csv
refactoring: output/not-for-review/meta_data_factors.csv
IE_criteria: output/review/descriptives/cohort_flow*.csv
highly_sensitive:
cohort: output/input_stage1*.rds
stage1_end_date_table:
run: r:latest analysis/preprocess/create_follow_up_end_date.R
needs:
- preprocess_data
- stage1_data_cleaning
outputs:
highly_sensitive:
end_date_table: output/follow_up_end_dates*.rds
stage2_missing_table1:
run: r:latest analysis/descriptives/Stage2_Missing_Table1.R
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
Missing_RangeChecks: output/not-for-review/Check_missing_range*.csv
DateChecks: output/not-for-review/Check_dates_range*.csv
Descriptive_Table: output/review/descriptives/Table1*.csv
stage3_diabetes_flow:
run: r:latest analysis/descriptives/diabetes_flowchart.R
needs:
- stage1_data_cleaning
outputs:
moderately_sensitive:
flow_df: output/review/figure-data/diabetes_flow_values*.csv
## Stage 4 - Table 2
stage4_table_2:
run: 'r:latest analysis/descriptives/table_2.R '
needs:
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
input_table_2: output/review/descriptives/table2*.csv
stage4_venn_diagram:
run: r:latest analysis/descriptives/venn_diagram.R
needs:
- preprocess_data
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
venn_diagram: output/review/venn-diagrams/venn_diagram_*.svg
venn_diagram_number_check: output/review/venn-diagrams/venn_diagram_number_check*.csv
## Apply cox model for t1dm
Analysis_cox_t1dm:
run: r:latest analysis/model/01_cox_pipeline.R t1dm
needs:
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
analyses_not_run: output/review/model/analyses_not_run_t1dm.csv
compiled_hrs_csv: output/review/model/suppressed_compiled_HR_results_t1dm.csv
compiled_hrs_csv_to_release: output/review/model/suppressed_compiled_HR_results_t1dm_to_release.csv
compiled_event_counts_csv: output/review/model/suppressed_compiled_event_counts_t1dm.csv
highly_sensitive:
compiled_hrs: output/review/model/compiled_HR_results_t1dm.csv
compiled_event_counts: output/review/model/compiled_event_counts_t1dm.csv
## Apply cox model for t2dm
Analysis_cox_t2dm:
run: r:latest analysis/model/01_cox_pipeline.R t2dm
needs:
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
analyses_not_run: output/review/model/analyses_not_run_t2dm.csv
compiled_hrs_csv: output/review/model/suppressed_compiled_HR_results_t2dm.csv
compiled_hrs_csv_to_release: output/review/model/suppressed_compiled_HR_results_t2dm_to_release.csv
compiled_event_counts_csv: output/review/model/suppressed_compiled_event_counts_t2dm.csv
highly_sensitive:
compiled_hrs: output/review/model/compiled_HR_results_t2dm.csv
compiled_event_counts: output/review/model/compiled_event_counts_t2dm.csv
## Apply cox model for otherdm
Analysis_cox_otherdm:
run: r:latest analysis/model/01_cox_pipeline.R otherdm
needs:
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
analyses_not_run: output/review/model/analyses_not_run_otherdm.csv
compiled_hrs_csv: output/review/model/suppressed_compiled_HR_results_otherdm.csv
compiled_hrs_csv_to_release: output/review/model/suppressed_compiled_HR_results_otherdm_to_release.csv
compiled_event_counts_csv: output/review/model/suppressed_compiled_event_counts_otherdm.csv
highly_sensitive:
compiled_hrs: output/review/model/compiled_HR_results_otherdm.csv
compiled_event_counts: output/review/model/compiled_event_counts_otherdm.csv
## Apply cox model for gestationaldm
Analysis_cox_gestationaldm:
run: r:latest analysis/model/01_cox_pipeline.R gestationaldm
needs:
- stage1_data_cleaning
- stage1_end_date_table
outputs:
moderately_sensitive:
analyses_not_run: output/review/model/analyses_not_run_gestationaldm.csv
compiled_hrs_csv: output/review/model/suppressed_compiled_HR_results_gestationaldm.csv
compiled_hrs_csv_to_release: output/review/model/suppressed_compiled_HR_results_gestationaldm_to_release.csv
compiled_event_counts_csv: output/review/model/suppressed_compiled_event_counts_gestationaldm.csv
highly_sensitive:
compiled_hrs: output/review/model/compiled_HR_results_gestationaldm.csv
compiled_event_counts: output/review/model/compiled_event_counts_gestationaldm.csv