This repository has been archived by the owner on May 4, 2023. It is now read-only.
generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
54 lines (43 loc) · 2.24 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
version: '3.0'
expectations:
population_size: 1000
actions:
generate_population:
run: cohortextractor:latest generate_cohort --study-definition study_definition
outputs:
highly_sensitive:
cohort: output/input.csv
# note not possible to execute and save notebook in a single action with `--execute --to notebook` because of self-dependency
# still possible to execute and save to html or md file
characteristics_html:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-patient-characteristics.ipynb --to html --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
needs: [generate_population]
outputs:
moderately_sensitive:
html: output/database-patient-characteristics.html
database_builds_html:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-builds.ipynb --execute --to html --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
outputs:
moderately_sensitive:
html: output/database-builds.html
database_schema_html:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-schema.ipynb --execute --to html --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
outputs:
moderately_sensitive:
html: output/database-schema.html
characteristics_md:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-patient-characteristics.ipynb --execute --to markdown --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
outputs:
moderately_sensitive:
md: output/database-patient-characteristics.md
database_builds_md:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-builds.ipynb --execute --to markdown --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
outputs:
moderately_sensitive:
md: output/database-builds.md
png: output/database-builds_files/*.png
database_schema_md:
run: jupyter:latest jupyter nbconvert /workspace/notebooks/database-schema.ipynb --execute --to markdown --output-dir=/workspace/output --ExecutePreprocessor.timeout=86400
outputs:
moderately_sensitive:
md: output/database-schema.md