Skip to content

Commit 9913267

Browse files
authored
Increase relatedness threshold (#750)
* Increase relatedness threshold * add value
1 parent ef16c76 commit 9913267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

v03_pipeline/lib/misc/family_loading_failures.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from v03_pipeline.lib.misc.pedigree import Family, Relation, Sample
77
from v03_pipeline.lib.model import Sex
88

9+
RELATEDNESS_TOLERANCE = 0.2
10+
911

1012
def passes_relatedness_check(
1113
relatedness_check_lookup: dict[tuple[str, str], list],
@@ -22,7 +24,7 @@ def passes_relatedness_check(
2224
if not coefficients or not np.allclose(
2325
coefficients,
2426
relation.coefficients,
25-
atol=0.1,
27+
atol=RELATEDNESS_TOLERANCE,
2628
):
2729
return (
2830
False,

0 commit comments

Comments
 (0)