Skip to content

Commit 4cde8f4

Browse files
committed
missing test liftover
1 parent b8e7802 commit 4cde8f4

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

v03_pipeline/lib/tasks/base/base_loading_run_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ class BaseLoadingRunParams(luigi.Task):
1010
# but nothing else.
1111
sample_type = luigi.EnumParameter(enum=SampleType)
1212
callset_path = luigi.Parameter()
13-
imputed_sex_path = luigi.Parameter(
13+
# HINT: OptionalParameter vs Parameter is significant here.
14+
# The default Parameter will case `None` to the string "None".
15+
imputed_sex_path = luigi.OptionalParameter(
1416
default=None,
1517
description='Optional path to a tsv of imputed sex values from the DRAGEN GVS pipeline.',
1618
)
17-
filters_path = luigi.Parameter(
19+
filters_path = luigi.OptionalParameter(
1820
default=None,
1921
description='Optional path to part two outputs from callset (VCF shards containing filter information)',
2022
)

v03_pipeline/lib/tasks/update_lookup_table_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
)
88
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
99

10+
TEST_LIFTOVER = 'v03_pipeline/var/test/liftover/grch38_to_grch37.over.chain.gz'
1011
TEST_VCF = 'v03_pipeline/var/test/callsets/1kg_30variants.vcf'
1112
TEST_REMAP = 'v03_pipeline/var/test/remaps/test_remap_1.tsv'
1213
TEST_PEDIGREE_3 = 'v03_pipeline/var/test/pedigrees/test_pedigree_3.tsv'
@@ -26,6 +27,7 @@ def test_skip_update_lookup_table_task(self) -> None:
2627
project_remap_paths=[TEST_REMAP],
2728
project_pedigree_paths=[TEST_PEDIGREE_3],
2829
validate=False,
30+
liftover_ref_path=TEST_LIFTOVER,
2931
)
3032
worker.add(uslt_task)
3133
worker.run()
@@ -57,6 +59,7 @@ def test_update_lookup_table_task(self) -> None:
5759
project_remap_paths=[TEST_REMAP],
5860
project_pedigree_paths=[TEST_PEDIGREE_3],
5961
validate=False,
62+
liftover_ref_path=TEST_LIFTOVER,
6063
)
6164
worker.add(uslt_task)
6265
worker.run()

v03_pipeline/lib/tasks/update_project_table_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from v03_pipeline.lib.tasks.update_project_table import UpdateProjectTableTask
66
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
77

8+
TEST_LIFTOVER = 'v03_pipeline/var/test/liftover/grch38_to_grch37.over.chain.gz'
89
TEST_VCF = 'v03_pipeline/var/test/callsets/1kg_30variants.vcf'
910
TEST_REMAP = 'v03_pipeline/var/test/remaps/test_remap_1.tsv'
1011
TEST_PEDIGREE_3 = 'v03_pipeline/var/test/pedigrees/test_pedigree_3.tsv'
@@ -22,6 +23,7 @@ def test_update_project_table_task(self) -> None:
2223
project_remap_path=TEST_REMAP,
2324
project_pedigree_path=TEST_PEDIGREE_3,
2425
validate=False,
26+
liftover_ref_path=TEST_LIFTOVER,
2527
)
2628
worker.add(upt_task)
2729
worker.run()

v03_pipeline/lib/tasks/write_family_table_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from v03_pipeline.lib.tasks.write_family_table import WriteFamilyTableTask
66
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
77

8+
TEST_LIFTOVER = 'v03_pipeline/var/test/liftover/grch38_to_grch37.over.chain.gz'
89
TEST_GCNV_BED_FILE = 'v03_pipeline/var/test/callsets/gcnv_1.tsv'
910
TEST_SNV_INDEL_VCF = 'v03_pipeline/var/test/callsets/1kg_30variants.vcf'
1011
TEST_SV_VCF = 'v03_pipeline/var/test/callsets/sv_1.vcf'
@@ -26,6 +27,7 @@ def test_snv_write_family_table_task(self) -> None:
2627
project_pedigree_path=TEST_PEDIGREE_3,
2728
family_guid='abc_1',
2829
validate=False,
30+
liftover_ref_path=TEST_LIFTOVER,
2931
)
3032
worker.add(wft_task)
3133
worker.run()
@@ -163,6 +165,7 @@ def test_sv_write_family_table_task(self) -> None:
163165
project_pedigree_path=TEST_PEDIGREE_5,
164166
family_guid='family_2_1',
165167
validate=False,
168+
liftover_ref_path=TEST_LIFTOVER,
166169
)
167170
worker.add(write_family_table_task)
168171
worker.run()
@@ -415,6 +418,7 @@ def test_gcnv_write_family_table_task(self) -> None:
415418
project_pedigree_path=TEST_PEDIGREE_5,
416419
family_guid='family_2_1',
417420
validate=False,
421+
liftover_ref_path=TEST_LIFTOVER,
418422
)
419423
worker.add(write_family_table_task)
420424
worker.run()

v03_pipeline/lib/tasks/write_project_family_tables_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
)
88
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
99

10+
TEST_LIFTOVER = 'v03_pipeline/var/test/liftover/grch38_to_grch37.over.chain.gz'
1011
TEST_SNV_INDEL_VCF = 'v03_pipeline/var/test/callsets/1kg_30variants.vcf'
1112
TEST_REMAP = 'v03_pipeline/var/test/remaps/test_remap_1.tsv'
1213
TEST_PEDIGREE_4 = 'v03_pipeline/var/test/pedigrees/test_pedigree_4.tsv'
@@ -24,6 +25,7 @@ def test_snv_write_project_family_tables_task(self) -> None:
2425
project_remap_path=TEST_REMAP,
2526
project_pedigree_path=TEST_PEDIGREE_4,
2627
validate=False,
28+
liftover_ref_path=TEST_LIFTOVER,
2729
)
2830
worker.add(write_project_family_tables)
2931
worker.run()

0 commit comments

Comments
 (0)