Skip to content

Commit c454fea

Browse files
committed
format
1 parent bca9c0f commit c454fea

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

v03_pipeline/lib/misc/family_loading_failures_test.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import hail as hl
44

55
from v03_pipeline.lib.misc.family_loading_failures import (
6+
all_relatedness_checks,
67
build_relatedness_check_lookup,
78
build_sex_check_lookup,
89
get_families_failed_sex_check,
9-
all_relatedness_checks,
1010
)
1111
from v03_pipeline.lib.misc.io import import_pedigree
1212
from v03_pipeline.lib.misc.pedigree import Sample, parse_pedigree_ht_to_families
@@ -119,7 +119,9 @@ def test_all_relatedness_checks(self):
119119
)
120120
self.assertListEqual(
121121
failure_reasons,
122-
['Sample sample_1 has expected relation "grandparent" to sample_5 but has coefficients []'],
122+
[
123+
'Sample sample_1 has expected relation "grandparent" to sample_5 but has coefficients []'
124+
],
123125
)
124126

125127
# Sibling is actually a half sibling.
@@ -140,7 +142,9 @@ def test_all_relatedness_checks(self):
140142
)
141143
self.assertListEqual(
142144
failure_reasons,
143-
['Sample sample_1 has expected relation "sibling" to sample_4 but has coefficients [0.5, 0.5, 0, 0.25]'],
145+
[
146+
'Sample sample_1 has expected relation "sibling" to sample_4 but has coefficients [0.5, 0.5, 0, 0.25]'
147+
],
144148
)
145149

146150
relatedness_check_lookup = {
@@ -167,8 +171,8 @@ def test_all_relatedness_checks(self):
167171
self.assertListEqual(
168172
failure_reasons,
169173
[
170-
'Sample sample_1 has expected relation "parent" to sample_2 but has coefficients [0.5, 0.5, 0.5, 0.5]',
171-
'Sample sample_1 has expected relation "sibling" to sample_4 but has coefficients [0.5, 0.5, 0, 0.25]'
174+
'Sample sample_1 has expected relation "parent" to sample_2 but has coefficients [0.5, 0.5, 0.5, 0.5]',
175+
'Sample sample_1 has expected relation "sibling" to sample_4 but has coefficients [0.5, 0.5, 0, 0.25]',
172176
],
173177
)
174178

0 commit comments

Comments
 (0)