generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
155 lines (133 loc) · 4.36 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
version: '3.0'
expectations:
population_size: 10000
actions:
# Extract data
generate_study_population_wave4:
run: >
cohortextractor:latest generate_cohort
--study-definition study_definition_wave4
--skip-existing
--output-format=csv.gz
outputs:
highly_sensitive:
cohort: output/input_wave4.csv.gz
# Process data
process_data_wave4:
run: r:latest analysis/data_process.R wave4
needs: [generate_study_population_wave4]
outputs:
highly_sensitive:
rds: output/processed/input_wave4.rds
# Skim data
skim_data_wave4:
run: r:latest analysis/data_skim.R output/processed/input_wave4.rds output/data_properties
needs: [process_data_wave4]
outputs:
moderately_sensitive:
txt1: output/data_properties/input_wave4_skim.txt
txt2: output/data_properties/input_wave4_coltypes.txt
txt3: output/data_properties/input_wave4_tabulate.txt
# Filter data
filter_data_wave4:
run: r:latest analysis/data_selection.R wave4
needs: [process_data_wave4]
outputs:
highly_sensitive:
rds: output/filtered/input_wave4.rds
moderately_sensitive:
csv: output/flowchart/flowchart_wave4.csv
# Immunosuppression combinations
imm_comb_wave4:
run: r:latest analysis/imm_comb.R wave4
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv1: output/imm_comb/imm_comb_wave4_broad.csv
csv2: output/imm_comb/imm_comb_wave4_narrow.csv
# Table 1
table_1_wave4_all:
run: r:latest analysis/table_1.R wave4 all
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_all.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_all.html
csv: output/table_1/table_1_wave4_all.csv
table_1_wave4_Tx:
run: r:latest analysis/table_1.R wave4 Tx
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_Tx.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_Tx.html
csv: output/table_1/table_1_wave4_Tx.csv
table_1_wave4_HC:
run: r:latest analysis/table_1.R wave4 HC
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_HC.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_HC.html
csv: output/table_1/table_1_wave4_HC.csv
table_1_wave4_RC:
run: r:latest analysis/table_1.R wave4 RC
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_RC.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_RC.html
csv: output/table_1/table_1_wave4_RC.csv
table_1_wave4_IMM:
run: r:latest analysis/table_1.R wave4 IMM
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_IMM.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_IMM.html
csv: output/table_1/table_1_wave4_IMM.csv
table_1_wave4_IMD:
run: r:latest analysis/table_1.R wave4 IMD
needs: [filter_data_wave4]
outputs:
highly_sensitive:
data: output/table_1/table_1_wave4_IMD.rds
moderately_sensitive:
table: output/table_1/table_1_wave4_IMD.html
csv: output/table_1/table_1_wave4_IMD.csv
# Table - incidence rates
table_ir_wave4_Tx:
run: r:latest analysis/table_ir.R wave4 Tx
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv: output/table_ir/table_ir_wave4_Tx.csv
table_ir_wave4_HC:
run: r:latest analysis/table_ir.R wave4 HC
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv: output/table_ir/table_ir_wave4_HC.csv
table_ir_wave4_RC:
run: r:latest analysis/table_ir.R wave4 RC
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv: output/table_ir/table_ir_wave4_RC.csv
table_ir_wave4_IMM:
run: r:latest analysis/table_ir.R wave4 IMM
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv: output/table_ir/table_ir_wave4_IMM.csv
table_ir_wave4_IMD:
run: r:latest analysis/table_ir.R wave4 IMD
needs: [filter_data_wave4]
outputs:
moderately_sensitive:
csv: output/table_ir/table_ir_wave4_IMD.csv