generated from opensafely/research-template
/
project.yaml
47 lines (38 loc) · 1.51 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
version: '3.0'
expectations:
population_size: 1000
actions:
generate_study_population:
run: cohortextractor:latest generate_cohort --study-definition study_definition
outputs:
highly_sensitive:
cohort: output/input.csv
generate_notebook:
run: jupyter:latest jupyter nbconvert /workspace/analysis/analysis.ipynb --execute --to html --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
needs: [generate_study_population]
outputs:
moderately_sensitive:
notebook: output/analysis.html
input_counts:
run: python:latest python analysis/input_counts.py
needs: [generate_study_population]
outputs:
moderately_sensitive:
cohort: output/inputcounts.txt
generate_study_population_all:
run: cohortextractor:latest generate_cohort --study-definition study_definition_exclusioncounts
outputs:
highly_sensitive:
cohort: output/input_exclusioncounts.csv
exclusion_counts:
run: python:latest python analysis/exclusion_counts.py
needs: [generate_study_population_all]
outputs:
moderately_sensitive:
cohort: output/exclusioncounts.txt
generate_exclusion_notebook:
run: jupyter:latest jupyter nbconvert /workspace/analysis/exclusion_counts.ipynb --execute --to html --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
needs: [generate_study_population_all]
outputs:
moderately_sensitive:
notebook: output/exclusion_counts.html