Skip to content

Commit b583a26

Browse files
committed
not applicable
1 parent 3d48d8a commit b583a26

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

v03_pipeline/lib/misc/family_loading_failures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,5 @@ def get_families_failed_imputed_sex_ploidy(
213213
sorted_discrepant_samples = sorted(discrepant_loadable_samples)
214214
failed_families[
215215
family
216-
] = f'Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : {sorted_discrepant_samples[:10]}'
216+
] = f'Found samples with misaligned ploidy with their provided imputed sex: {sorted_discrepant_samples}'
217217
return failed_families

v03_pipeline/lib/misc/family_loading_failures_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def test_get_families_failed_imputed_sex_ploidy(self) -> None:
416416
self.assertCountEqual(
417417
failed_families.values(),
418418
[
419-
"Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['HG00731_1', 'HG00732_1', 'NA20889_1', 'NA20899_1']",
419+
"Found samples with misaligned ploidy with their provided imputed sex: ['HG00731_1', 'HG00732_1', 'NA20889_1', 'NA20899_1']",
420420
],
421421
)
422422

@@ -435,6 +435,6 @@ def test_get_families_failed_imputed_sex_ploidy(self) -> None:
435435
self.assertCountEqual(
436436
failed_families.values(),
437437
[
438-
"Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['HG00731_1']",
438+
"Found samples with misaligned ploidy with their provided imputed sex: ['HG00731_1']",
439439
],
440440
)

v03_pipeline/lib/tasks/write_remapped_and_subsetted_callset_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,19 @@ def test_write_remapped_and_subsetted_callset_task_failed_some_family_checks(
181181
ploidy_check={
182182
'234_1': hl.Struct(
183183
samples=['NA19678_1'],
184-
reasons="Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA19678_1']",
184+
reasons="Found samples with misaligned ploidy with their provided imputed sex: ['NA19678_1']",
185185
),
186186
'567_1': hl.Struct(
187187
samples=['NA20872_1'],
188-
reasons="Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20872_1']",
188+
reasons="Found samples with misaligned ploidy with their provided imputed sex: ['NA20872_1']",
189189
),
190190
'bcd_1': hl.Struct(
191191
samples=['NA20878_1'],
192-
reasons="Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20878_1']",
192+
reasons="Found samples with misaligned ploidy with their provided imputed sex: ['NA20878_1']",
193193
),
194194
'cde_1': hl.Struct(
195195
samples=['NA20881_1'],
196-
reasons="Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20881_1']",
196+
reasons="Found samples with misaligned ploidy with their provided imputed sex: ['NA20881_1']",
197197
),
198198
},
199199
),
@@ -300,19 +300,19 @@ def test_write_remapped_and_subsetted_callset_task_all_families_failed(
300300
'ploidy_check': {
301301
'cde_1': {
302302
'samples': ['NA20881_1'],
303-
'reasons': "Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20881_1']",
303+
'reasons': "Found samples with misaligned ploidy with their provided imputed sex: ['NA20881_1']",
304304
},
305305
'234_1': {
306306
'samples': ['NA19678_1'],
307-
'reasons': "Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA19678_1']",
307+
'reasons': "Found samples with misaligned ploidy with their provided imputed sex: ['NA19678_1']",
308308
},
309309
'bcd_1': {
310310
'samples': ['NA20878_1'],
311-
'reasons': "Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20878_1']",
311+
'reasons': "Found samples with misaligned ploidy with their provided imputed sex: ['NA20878_1']",
312312
},
313313
'567_1': {
314314
'samples': ['NA20872_1'],
315-
'reasons': "Found samples with misaligned ploidy with their provided imputed sex (first 10, if applicable) : ['NA20872_1']",
315+
'reasons': "Found samples with misaligned ploidy with their provided imputed sex: ['NA20872_1']",
316316
},
317317
},
318318
},

0 commit comments

Comments
 (0)