File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ def access_control(self) -> AccessControl:
26
26
return AccessControl .PRIVATE
27
27
return AccessControl .PUBLIC
28
28
29
- @property
30
- def dataset (self ) -> str | None :
29
+ def dataset (self , dataset_type : DatasetType ) -> str | None :
31
30
return {
32
- CachedReferenceDatasetQuery .CLINVAR_PATH_VARIANTS : 'clinvar' ,
31
+ CachedReferenceDatasetQuery .CLINVAR_PATH_VARIANTS : 'clinvar_mito'
32
+ if dataset_type == DatasetType .MITO
33
+ else 'clinvar' ,
33
34
CachedReferenceDatasetQuery .GNOMAD_CODING_AND_NONCODING_VARIANTS : 'gnomad_genomes' ,
34
35
CachedReferenceDatasetQuery .GNOMAD_QC : 'gnomad_qc' ,
35
36
CachedReferenceDatasetQuery .HIGH_AF_VARIANTS : 'gnomad_genomes' ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def complete(self) -> bool:
33
33
if not super ().complete ():
34
34
return False
35
35
36
- datasets_to_check = [self .crdq .dataset ]
36
+ datasets_to_check = [self .crdq .dataset ( self . dataset_type ) ]
37
37
crdq_globals = Globals .from_ht (
38
38
hl .read_table (self .output ().path ),
39
39
datasets_to_check ,
@@ -67,7 +67,11 @@ def requires(self) -> luigi.Task:
67
67
)
68
68
if self .crdq .query_raw_dataset :
69
69
return HailTableTask (
70
- get_ht_path (CONFIG [self .crdq .dataset ][self .reference_genome .v02_value ]),
70
+ get_ht_path (
71
+ CONFIG [self .crdq .dataset (self .dataset_type )][
72
+ self .reference_genome .v02_value
73
+ ],
74
+ ),
71
75
)
72
76
return HailTableTask (
73
77
valid_reference_dataset_collection_path (
@@ -78,7 +82,7 @@ def requires(self) -> luigi.Task:
78
82
)
79
83
80
84
def create_table (self ) -> hl .Table :
81
- dataset : str = self .crdq .dataset
85
+ dataset : str = self .crdq .dataset ( self . dataset_type )
82
86
if self .crdq .query_raw_dataset :
83
87
query_ht = import_ht_from_config_path (
84
88
CONFIG [dataset ][self .reference_genome .v02_value ],
You can’t perform that action at this time.
0 commit comments