generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.yaml
79 lines (63 loc) · 2.06 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
######################################
# This script defines the project pipeline - it specifys the execution orders for all the code in this
# repo using a series of actions.
######################################
version: '3.0'
expectations:
population_size: 1000000
actions:
# Extract data ----
generate_study_population:
run: cohortextractor:latest generate_cohort --study-definition study_definition --output-dir=output/data
outputs:
highly_sensitive:
cohort: output/data/input.csv
# Process data ----
data_process:
run: r:latest analysis/data_process.R
needs: [generate_study_population]
outputs:
highly_sensitive:
data: output/data/data_all.rds
# Data properties ----
data_properties:
run: r:latest analysis/data_properties.R output/data/data_all.rds output/data_properties
needs: [data_process]
outputs:
moderately_sensitive:
cohort: output/data_properties/data_all*.txt
# Data summaries ----
data_summaries:
run: r:latest -e 'rmarkdown::render("analysis/data_summaries.Rmd", knit_root_dir = "/workspace", output_dir="/workspace/output/markdown")'
needs: [generate_study_population, data_process]
outputs:
moderately_sensitive:
html: output/markdown/data_summaries.html
# Table 1 ----
table_1:
run: r:latest analysis/table_1.R
needs: [data_process]
outputs:
moderately_sensitive:
table: output/tables/table1*.html
# Figure 1 ----
figure_1:
run: r:latest analysis/cumulative_incidence.R
needs: [data_process]
outputs:
moderately_sensitive:
svg: output/figures/cumulative_incidence_positive_test*.svg
# Table 2 ----
table_2:
run: r:latest analysis/table_2.R
needs: [data_process]
outputs:
moderately_sensitive:
table: output/tables/table2*.html
# Table 3 ----
table_3:
run: r:latest analysis/table_3.R
needs: [data_process]
outputs:
moderately_sensitive:
table: output/tables/table3*.html