-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yaml
More file actions
63 lines (58 loc) · 2 KB
/
project.yaml
File metadata and controls
63 lines (58 loc) · 2 KB
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
version: "4.0"
actions:
# These actions are copied-and-pasted into README.md for user-facing documentation.
# If you change them here, then please change them there.
generate_cases:
run: >
ehrql:v1 generate-dataset analysis/dataset_definition_cases.py --output output/cases.arrow
outputs:
highly_sensitive:
dataset: output/cases.arrow
generate_controls:
run: >
ehrql:v1 generate-dataset analysis/dataset_definition_controls.py --output output/controls.arrow
outputs:
highly_sensitive:
dataset: output/controls.arrow
match:
needs: [generate_cases, generate_controls]
run: >
python:v2 python -m osmatching.__main__
--cases output/cases.arrow
--controls output/controls.arrow
config:
matches_per_case: 3
match_variables:
sex: category
age: 5
index_date_variable: indexdate
closest_match_variables:
- age
generate_match_index_date: no_offset
outputs:
highly_sensitive:
matched_cases: output/matched_cases.arrow
matched_controls: output/matched_matches.arrow
matched_combined: output/matched_combined.arrow
moderately_sensitive:
report: output/matching_report.txt
write_config:
run: python:v2 analysis/write_matching_config.py
needs: [generate_cases, generate_controls]
outputs:
moderately_sensitive:
config: output/config.json
match_with_config_file:
run: >
python:v2 python -m osmatching.__main__
--cases output/cases.arrow
--controls output/controls.arrow
--config-file output/config.json
needs: [write_config, generate_cases, generate_controls]
outputs:
highly_sensitive:
matched_cases: output/matched_cases_with_config_file.arrow
matched_controls: output/matched_matches_with_config_file.arrow
matched_combined: output/matched_combined_with_config_file.arrow
moderately_sensitive:
report: output/matching_report_with_config_file.txt