Skip to content

Commit 4a878b0

Browse files
committed
feat: add multiple refresh job definitions for ClinVar controls with year and month parameters
1 parent 547be35 commit 4a878b0

1 file changed

Lines changed: 145 additions & 0 deletions

File tree

src/mavedb/lib/workflow/definitions.py

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,151 @@ def annotation_pipeline_job_definitions() -> list[JobDefinition]:
4949
},
5050
"dependencies": [("submit_uniprot_mapping_jobs_for_score_set", DependencyType.SUCCESS_REQUIRED)],
5151
},
52+
# TODO#650: Simplify or automate the generation of these repetitive job definitions
53+
{
54+
"key": "refresh_clinvar_controls_201502",
55+
"function": "refresh_clinvar_controls",
56+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
57+
"params": {
58+
"correlation_id": None, # Required param to be filled in at runtime
59+
"score_set_id": None, # Required param to be filled in at runtime
60+
"year": 2015,
61+
"month": 2,
62+
},
63+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
64+
},
65+
{
66+
"key": "refresh_clinvar_controls_201601",
67+
"function": "refresh_clinvar_controls",
68+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
69+
"params": {
70+
"correlation_id": None, # Required param to be filled in at runtime
71+
"score_set_id": None, # Required param to be filled in at runtime
72+
"year": 2016,
73+
"month": 1,
74+
},
75+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
76+
},
77+
{
78+
"key": "refresh_clinvar_controls_201701",
79+
"function": "refresh_clinvar_controls",
80+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
81+
"params": {
82+
"correlation_id": None, # Required param to be filled in at runtime
83+
"score_set_id": None, # Required param to be filled in at runtime
84+
"year": 2017,
85+
"month": 1,
86+
},
87+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
88+
},
89+
{
90+
"key": "refresh_clinvar_controls_201801",
91+
"function": "refresh_clinvar_controls",
92+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
93+
"params": {
94+
"correlation_id": None, # Required param to be filled in at runtime
95+
"score_set_id": None, # Required param to be filled in at runtime
96+
"year": 2018,
97+
"month": 1,
98+
},
99+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
100+
},
101+
{
102+
"key": "refresh_clinvar_controls_201901",
103+
"function": "refresh_clinvar_controls",
104+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
105+
"params": {
106+
"correlation_id": None, # Required param to be filled in at runtime
107+
"score_set_id": None, # Required param to be filled in at runtime
108+
"year": 2019,
109+
"month": 1,
110+
},
111+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
112+
},
113+
{
114+
"key": "refresh_clinvar_controls_202001",
115+
"function": "refresh_clinvar_controls",
116+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
117+
"params": {
118+
"correlation_id": None, # Required param to be filled in at runtime
119+
"score_set_id": None, # Required param to be filled in at runtime
120+
"year": 2020,
121+
"month": 1,
122+
},
123+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
124+
},
125+
{
126+
"key": "refresh_clinvar_controls_202101",
127+
"function": "refresh_clinvar_controls",
128+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
129+
"params": {
130+
"correlation_id": None, # Required param to be filled in at runtime
131+
"score_set_id": None, # Required param to be filled in at runtime
132+
"year": 2021,
133+
"month": 1,
134+
},
135+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
136+
},
137+
{
138+
"key": "refresh_clinvar_controls_202201",
139+
"function": "refresh_clinvar_controls",
140+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
141+
"params": {
142+
"correlation_id": None, # Required param to be filled in at runtime
143+
"score_set_id": None, # Required param to be filled in at runtime
144+
"year": 2022,
145+
"month": 1,
146+
},
147+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
148+
},
149+
{
150+
"key": "refresh_clinvar_controls_202301",
151+
"function": "refresh_clinvar_controls",
152+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
153+
"params": {
154+
"correlation_id": None, # Required param to be filled in at runtime
155+
"score_set_id": None, # Required param to be filled in at runtime
156+
"year": 2023,
157+
"month": 1,
158+
},
159+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
160+
},
161+
{
162+
"key": "refresh_clinvar_controls_202401",
163+
"function": "refresh_clinvar_controls",
164+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
165+
"params": {
166+
"correlation_id": None, # Required param to be filled in at runtime
167+
"score_set_id": None, # Required param to be filled in at runtime
168+
"year": 2024,
169+
"month": 1,
170+
},
171+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
172+
},
173+
{
174+
"key": "refresh_clinvar_controls_202501",
175+
"function": "refresh_clinvar_controls",
176+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
177+
"params": {
178+
"correlation_id": None, # Required param to be filled in at runtime
179+
"score_set_id": None, # Required param to be filled in at runtime
180+
"year": 2025,
181+
"month": 1,
182+
},
183+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
184+
},
185+
{
186+
"key": "refresh_clinvar_controls_202601",
187+
"function": "refresh_clinvar_controls",
188+
"type": JobType.MAPPED_VARIANT_ANNOTATION,
189+
"params": {
190+
"correlation_id": None, # Required param to be filled in at runtime
191+
"score_set_id": None, # Required param to be filled in at runtime
192+
"year": 2026,
193+
"month": 1,
194+
},
195+
"dependencies": [("submit_score_set_mappings_to_car", DependencyType.SUCCESS_REQUIRED)],
196+
},
52197
]
53198

54199

0 commit comments

Comments
 (0)