File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
AMBIGUOUS_THRESHOLD_PERC : float = 0.01 # Fraction of samples identified as "ambiguous_sex" above which an error will be thrown.
15
15
AAF_THRESHOLD : float = 0.05 # Alternate allele frequency threshold for `hl.impute_sex`.
16
+ BIALLELIC : int = 2
16
17
XX_FSTAT_THRESHOLD : float = (
17
18
0.5 # F-stat threshold below which a sample will be called XX
18
19
)
@@ -25,7 +26,7 @@ def call_sex(mt: hl.MatrixTable) -> hl.Table:
25
26
# Filter to SNVs and biallelics
26
27
# NB: We should already have filtered biallelics, but just in case.
27
28
mt = mt .filter_rows (
28
- (( hl .len (mt .alleles ) == 2 ) & hl .is_snp (mt .alleles [0 ], mt .alleles [1 ]))
29
+ (hl .len (mt .alleles ) == BIALLELIC ) & hl .is_snp (mt .alleles [0 ], mt .alleles [1 ]),
29
30
)
30
31
31
32
# Filter to PASS variants only (variants with empty or missing filter set)
You can’t perform that action at this time.
0 commit comments