@@ -72,7 +72,7 @@ def output(self) -> luigi.Target:
72
72
)
73
73
74
74
def requires (self ) -> luigi .Task :
75
- if self .crdq .query_raw_dataset :
75
+ if not self .crdq .reference_dataset_collection :
76
76
return HailTableTask (
77
77
get_ht_path (
78
78
CONFIG [self .crdq .dataset (self .dataset_type )][
@@ -83,7 +83,7 @@ def requires(self) -> luigi.Task:
83
83
# Special nested import to avoid a circular dependency issue
84
84
# (ValidateCallset -> this file -> UpdatedReferenceDatasetCollection -> ValidateCallset)
85
85
# The specific CRDQ referenced in ValidateCallset will never reach
86
- # this line due to it being a "query_raw_dataset" . In theory this
86
+ # this line due to it being a raw dataset query . In theory this
87
87
# would be fixed by splitting the CRDQ into raw_dataset and non-raw_dataset
88
88
# queries.
89
89
from v03_pipeline .lib .tasks .reference_data .updated_reference_dataset_collection import (
@@ -93,12 +93,12 @@ def requires(self) -> luigi.Task:
93
93
return UpdatedReferenceDatasetCollectionTask (
94
94
self .reference_genome ,
95
95
self .dataset_type ,
96
- ReferenceDatasetCollection . COMBINED ,
96
+ self . crdq . reference_dataset_collection ,
97
97
)
98
98
99
99
def create_table (self ) -> hl .Table :
100
100
dataset : str = self .crdq .dataset (self .dataset_type )
101
- if self .crdq .query_raw_dataset :
101
+ if not self .crdq .reference_dataset_collection :
102
102
query_ht = import_ht_from_config_path (
103
103
CONFIG [dataset ][self .reference_genome .v02_value ],
104
104
dataset ,
@@ -121,21 +121,21 @@ def create_table(self) -> hl.Table:
121
121
paths = hl .Struct (
122
122
** {
123
123
dataset : query_ht .index_globals ().path
124
- if self .crdq .query_raw_dataset
124
+ if not self .crdq .reference_dataset_collection
125
125
else query_ht .index_globals ().paths [dataset ],
126
126
},
127
127
),
128
128
versions = hl .Struct (
129
129
** {
130
130
dataset : query_ht .index_globals ().version
131
- if self .crdq .query_raw_dataset
131
+ if not self .crdq .reference_dataset_collection
132
132
else query_ht .index_globals ().versions [dataset ],
133
133
},
134
134
),
135
135
enums = hl .Struct (
136
136
** {
137
137
dataset : query_ht .index_globals ().enums
138
- if self .crdq .query_raw_dataset
138
+ if not self .crdq .reference_dataset_collection
139
139
else query_ht .index_globals ().enums [dataset ],
140
140
},
141
141
),
0 commit comments