Skip to content

Commit 28b6b5c

Browse files
committed
Fix clinvar crdq field names
1 parent ac33696 commit 28b6b5c

File tree

14 files changed

+9
-9
lines changed

14 files changed

+9
-9
lines changed

v03_pipeline/lib/reference_data/queries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def clinvar_path_variants(
3333
clinvar_field = 'clinvar_mito' if dataset_type == DatasetType.MITO else 'clinvar'
3434
ht = ht.select_globals()
3535
ht = ht.select(
36-
pathogenic=(
36+
is_pathogenic=(
3737
(
3838
ht[clinvar_field].pathogenicity_id
3939
>= CLINVAR_PATHOGENICITIES_LOOKUP[CLINVAR_PATH_RANGE[0]]
@@ -43,7 +43,7 @@ def clinvar_path_variants(
4343
<= CLINVAR_PATHOGENICITIES_LOOKUP[CLINVAR_PATH_RANGE[1]]
4444
)
4545
),
46-
likely_pathogenic=(
46+
is_likely_pathogenic=(
4747
(
4848
ht[clinvar_field].pathogenicity_id
4949
>= CLINVAR_PATHOGENICITIES_LOOKUP[CLINVAR_LIKELY_PATH_RANGE[0]]
@@ -54,7 +54,7 @@ def clinvar_path_variants(
5454
)
5555
),
5656
)
57-
return ht.filter(ht.pathogenic | ht.likely_pathogenic)
57+
return ht.filter(ht.is_pathogenic | ht.is_likely_pathogenic)
5858

5959

6060
def gnomad_coding_and_noncoding_variants(

v03_pipeline/lib/tasks/reference_data/updated_cached_reference_dataset_query_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def test_clinvar(
187187
def _clinvar_path_variants(table, **_: Any):
188188
table = table.select_globals()
189189
return table.select(
190-
pathogenic=False,
191-
likely_pathogenic=True,
190+
is_pathogenic=False,
191+
is_likely_pathogenic=True,
192192
)
193193

194194
mock_crdq_query.side_effect = _clinvar_path_variants
@@ -215,8 +215,8 @@ def _clinvar_path_variants(table, **_: Any):
215215
reference_genome='GRCh38',
216216
),
217217
alleles=['A', 'C'],
218-
pathogenic=False,
219-
likely_pathogenic=True,
218+
is_pathogenic=False,
219+
is_likely_pathogenic=True,
220220
),
221221
],
222222
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This folder comprises a Hail (www.hail.is) native Table or MatrixTable.
2-
Written with version 0.2.128-eead8100a1c1
3-
Created at 2024/03/04 17:48:25
2+
Written with version 0.2.120-f00f916faf78
3+
Created at 2024/03/15 15:45:48

0 commit comments

Comments
 (0)