3
3
import hail as hl
4
4
5
5
from v03_pipeline .lib .misc .family_loading_failures import (
6
+ all_relatedness_checks ,
6
7
build_relatedness_check_lookup ,
7
8
build_sex_check_lookup ,
8
9
get_families_failed_sex_check ,
9
- all_relatedness_checks ,
10
10
)
11
11
from v03_pipeline .lib .misc .io import import_pedigree
12
12
from v03_pipeline .lib .misc .pedigree import Sample , parse_pedigree_ht_to_families
@@ -119,7 +119,9 @@ def test_all_relatedness_checks(self):
119
119
)
120
120
self .assertListEqual (
121
121
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
+ ],
123
125
)
124
126
125
127
# Sibling is actually a half sibling.
@@ -140,7 +142,9 @@ def test_all_relatedness_checks(self):
140
142
)
141
143
self .assertListEqual (
142
144
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
+ ],
144
148
)
145
149
146
150
relatedness_check_lookup = {
@@ -167,8 +171,8 @@ def test_all_relatedness_checks(self):
167
171
self .assertListEqual (
168
172
failure_reasons ,
169
173
[
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]' ,
172
176
],
173
177
)
174
178
0 commit comments