Skip to content

Commit 4744efc

Browse files
authored
make old crdq runnable (#744)
* make old crdq code runnable * make old crdq code runnable * ruff
1 parent 86eb96e commit 4744efc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

v03_pipeline/bin/write_cached_reference_dataset_query_ht.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ def get_ht(
2626
query: CachedReferenceDatasetQuery,
2727
) -> hl.Table:
2828
# If the query is defined over an uncombined reference dataset, use the combiner config.
29-
if query.reference_dataset:
30-
config = CONFIG[query.reference_dataset][reference_genome.v02_value]
31-
return import_ht_from_config_path(config, reference_genome)
29+
if query.query_raw_dataset:
30+
config = CONFIG[query.dataset(dataset_type)][reference_genome.v02_value]
31+
return import_ht_from_config_path(
32+
config,
33+
query.dataset(dataset_type),
34+
reference_genome,
35+
)
3236
return hl.read_table(
3337
valid_reference_dataset_collection_path(
3438
reference_genome,

0 commit comments

Comments
 (0)