|
19 | 19 | from v03_pipeline.lib.tasks.reference_data.update_variant_annotations_table_with_updated_reference_dataset import (
|
20 | 20 | UpdateVariantAnnotationsTableWithUpdatedReferenceDataset,
|
21 | 21 | )
|
22 |
| -from v03_pipeline.lib.tasks.update_sample_lookup_table import ( |
23 |
| - UpdateSampleLookupTableTask, |
| 22 | +from v03_pipeline.lib.tasks.update_lookup_table import ( |
| 23 | + UpdateLookupTableTask, |
24 | 24 | )
|
25 | 25 | from v03_pipeline.lib.tasks.write_remapped_and_subsetted_callset import (
|
26 | 26 | WriteRemappedAndSubsettedCallsetTask,
|
@@ -85,11 +85,11 @@ def requires(self) -> list[luigi.Task]:
|
85 | 85 | ]
|
86 | 86 | else:
|
87 | 87 | upstream_table_tasks: list[luigi.Task] = []
|
88 |
| - if self.dataset_type.has_sample_lookup_table: |
89 |
| - # NB: the sample lookup table task has remapped and subsetted callset tasks as dependencies. |
| 88 | + if self.dataset_type.has_lookup_table: |
| 89 | + # NB: the lookup table task has remapped and subsetted callset tasks as dependencies. |
90 | 90 | upstream_table_tasks.extend(
|
91 | 91 | [
|
92 |
| - UpdateSampleLookupTableTask( |
| 92 | + UpdateLookupTableTask( |
93 | 93 | self.reference_genome,
|
94 | 94 | self.dataset_type,
|
95 | 95 | self.sample_type,
|
@@ -241,13 +241,13 @@ def update_table(self, ht: hl.Table) -> hl.Table:
|
241 | 241 | new_variants_ht = new_variants_ht.join(rdc_ht, 'left')
|
242 | 242 |
|
243 | 243 | # 4) Union with the existing variant annotations table
|
244 |
| - # and annotate with the sample lookup table. |
| 244 | + # and annotate with the lookup table. |
245 | 245 | ht = ht.union(new_variants_ht, unify=True)
|
246 |
| - if self.dataset_type.has_sample_lookup_table: |
| 246 | + if self.dataset_type.has_lookup_table: |
247 | 247 | ht = ht.annotate(
|
248 | 248 | **get_fields(
|
249 | 249 | ht,
|
250 |
| - self.dataset_type.sample_lookup_table_annotation_fns, |
| 250 | + self.dataset_type.lookup_table_annotation_fns, |
251 | 251 | **self.rdc_annotation_dependencies,
|
252 | 252 | **self.other_annotation_dependencies,
|
253 | 253 | **self.param_kwargs,
|
|
0 commit comments