Skip to content

Commit 8b28b08

Browse files
committed
Merge branch 'main' of github.com:broadinstitute/seqr-loading-pipelines
2 parents 686e94c + c4ff0c3 commit 8b28b08

File tree

7 files changed

+1
-18
lines changed

7 files changed

+1
-18
lines changed

v03_pipeline/api/app_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ async def test_loading_pipeline_enqueue(self):
8989
'Successfully queued': {
9090
'callset_path': 'v03_pipeline/var/test/callsets/1kg_30variants.vcf',
9191
'dataset_type': 'SNV_INDEL',
92-
'ignore_missing_samples_when_remapping': False,
9392
'projects_to_run': ['project_a'],
9493
'reference_genome': 'GRCh38',
9594
'sample_type': 'WGS',

v03_pipeline/api/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class LoadingPipelineRequest(BaseModel):
1212
sample_type: SampleType
1313
reference_genome: ReferenceGenome
1414
dataset_type: DatasetType
15-
ignore_missing_samples_when_remapping: bool = False
1615
skip_validation: bool = False
1716
skip_check_sex_and_relatedness: bool = False
1817

v03_pipeline/lib/misc/sample_ids.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
def remap_sample_ids(
1212
mt: hl.MatrixTable,
1313
project_remap_ht: hl.Table,
14-
ignore_missing_samples_when_remapping: bool,
1514
) -> hl.MatrixTable:
1615
collected_remap = project_remap_ht.collect()
1716
s_dups = [k for k, v in Counter([r.s for r in collected_remap]).items() if v > 1]
@@ -31,12 +30,8 @@ def remap_sample_ids(
3130
f'Only {project_remap_ht.semi_join(mt.cols()).count()} out of {remap_count} '
3231
'remap IDs matched IDs in the variant callset.\n'
3332
f"IDs that aren't in the callset: {missing_samples}\n"
34-
f'All callset sample IDs:{mt.s.collect()}'
3533
)
36-
if ignore_missing_samples_when_remapping:
37-
logger.info(message)
38-
else:
39-
raise SeqrValidationError(message)
34+
raise SeqrValidationError(message)
4035

4136
mt = mt.annotate_cols(**project_remap_ht[mt.s])
4237
remap_expr = hl.if_else(hl.is_missing(mt.seqr_id), mt.s, mt.seqr_id)

v03_pipeline/lib/misc/sample_ids_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def test_remap_2_sample_ids(self) -> None:
3838
remapped_mt = remap_sample_ids(
3939
CALLSET_MT,
4040
project_remap_ht,
41-
ignore_missing_samples_when_remapping=True,
4241
)
4342

4443
self.assertEqual(remapped_mt.cols().count(), 3)
@@ -80,7 +79,6 @@ def test_remap_sample_ids_remap_has_duplicate(self) -> None:
8079
remap_sample_ids(
8180
CALLSET_MT,
8281
project_remap_ht,
83-
ignore_missing_samples_when_remapping=True,
8482
)
8583

8684
def test_remap_sample_ids_remap_has_missing_samples(self) -> None:
@@ -103,7 +101,6 @@ def test_remap_sample_ids_remap_has_missing_samples(self) -> None:
103101
remap_sample_ids(
104102
CALLSET_MT,
105103
project_remap_ht,
106-
ignore_missing_samples_when_remapping=False,
107104
)
108105

109106
def test_subset_samples_zero_samples(self):

v03_pipeline/lib/tasks/base/base_loading_run_params.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ class BaseLoadingRunParams(luigi.Task):
2222
project_guids = luigi.ListParameter(default=[])
2323
project_remap_paths = luigi.ListParameter(default=[])
2424
project_pedigree_paths = luigi.ListParameter(default=[])
25-
ignore_missing_samples_when_remapping = luigi.BoolParameter(
26-
default=False,
27-
parsing=luigi.BoolParameter.EXPLICIT_PARSING,
28-
)
2925
skip_check_sex_and_relatedness = luigi.BoolParameter(
3026
default=False,
3127
parsing=luigi.BoolParameter.EXPLICIT_PARSING,

v03_pipeline/lib/tasks/dataproc/misc_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ def test_to_kebab_str_args(self, _: Mock):
4242
'["test_remap"]',
4343
'--project-pedigree-paths',
4444
'["test_pedigree"]',
45-
'--ignore-missing-samples-when-remapping',
46-
'False',
4745
'--skip-check-sex-and-relatedness',
4846
'False',
4947
'--skip-expect-filters',

v03_pipeline/lib/tasks/write_remapped_and_subsetted_callset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def create_table(self) -> hl.MatrixTable:
9696
callset_mt = remap_sample_ids(
9797
callset_mt,
9898
project_remap_ht,
99-
self.ignore_missing_samples_when_remapping,
10099
)
101100
remap_lookup = hl.dict(
102101
{r.s: r.seqr_id for r in project_remap_ht.collect()},

0 commit comments

Comments
 (0)