Skip to content

Commit d3ce2ee

Browse files
committed
finding a few more locs
1 parent 5abc4c1 commit d3ce2ee

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

v03_pipeline/lib/tasks/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from v03_pipeline.lib.tasks.update_project_table import UpdateProjectTableTask
2-
from v03_pipeline.lib.tasks.update_sample_lookup_table import (
3-
UpdateSampleLookupTableTask,
2+
from v03_pipeline.lib.tasks.update_lookup_table import (
3+
UpdateLookupTableTask,
44
)
55
from v03_pipeline.lib.tasks.update_variant_annotations_table_with_new_samples import (
66
UpdateVariantAnnotationsTableWithNewSamplesTask,
@@ -12,7 +12,7 @@
1212

1313
__all__ = [
1414
'UpdateProjectTableTask',
15-
'UpdateSampleLookupTableTask',
15+
'UpdateLookupTableTask',
1616
'UpdateVariantAnnotationsTableWithNewSamplesTask',
1717
'WriteMetadataForRunTask',
1818
'WriteProjectFamilyTablesTask',

v03_pipeline/lib/tasks/update_lookup_table_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import luigi.worker
33

44
from v03_pipeline.lib.model import DatasetType, ReferenceGenome, SampleType
5-
from v03_pipeline.lib.tasks.update_sample_lookup_table import (
6-
UpdateSampleLookupTableTask,
5+
from v03_pipeline.lib.tasks.update_lookup_table import (
6+
UpdateLookupTableTask,
77
)
88
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
99

@@ -15,7 +15,7 @@
1515
class UpdateSampleLookupTableTest(MockedDatarootTestCase):
1616
def test_update_sample_lookup_table_task(self) -> None:
1717
worker = luigi.worker.Worker()
18-
uslt_task = UpdateSampleLookupTableTask(
18+
uslt_task = UpdateLookupTableTask(
1919
reference_genome=ReferenceGenome.GRCh38,
2020
dataset_type=DatasetType.SNV_INDEL,
2121
sample_type=SampleType.WGS,
@@ -30,6 +30,7 @@ def test_update_sample_lookup_table_task(self) -> None:
3030
self.assertTrue(uslt_task.output().exists())
3131
self.assertTrue(uslt_task.complete())
3232
ht = hl.read_table(uslt_task.output().path)
33+
print(ht.globals.collect())
3334
self.assertEqual(
3435
ht.globals.collect(),
3536
[

v03_pipeline/lib/tasks/update_variant_annotations_table_with_new_samples.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from v03_pipeline.lib.tasks.reference_data.update_variant_annotations_table_with_updated_reference_dataset import (
2020
UpdateVariantAnnotationsTableWithUpdatedReferenceDataset,
2121
)
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,
2424
)
2525
from v03_pipeline.lib.tasks.write_remapped_and_subsetted_callset import (
2626
WriteRemappedAndSubsettedCallsetTask,
@@ -85,11 +85,11 @@ def requires(self) -> list[luigi.Task]:
8585
]
8686
else:
8787
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.
9090
upstream_table_tasks.extend(
9191
[
92-
UpdateSampleLookupTableTask(
92+
UpdateLookupTableTask(
9393
self.reference_genome,
9494
self.dataset_type,
9595
self.sample_type,
@@ -241,13 +241,13 @@ def update_table(self, ht: hl.Table) -> hl.Table:
241241
new_variants_ht = new_variants_ht.join(rdc_ht, 'left')
242242

243243
# 4) Union with the existing variant annotations table
244-
# and annotate with the sample lookup table.
244+
# and annotate with the lookup table.
245245
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:
247247
ht = ht.annotate(
248248
**get_fields(
249249
ht,
250-
self.dataset_type.sample_lookup_table_annotation_fns,
250+
self.dataset_type.lookup_table_annotation_fns,
251251
**self.rdc_annotation_dependencies,
252252
**self.other_annotation_dependencies,
253253
**self.param_kwargs,

0 commit comments

Comments
 (0)