We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55afc95 commit 4a5e890Copy full SHA for 4a5e890
v03_pipeline/lib/methods/sex_check.py
@@ -24,7 +24,9 @@
24
def call_sex(mt: hl.MatrixTable) -> hl.Table:
25
# Filter to SNVs and biallelics
26
# NB: We should already have filtered biallelics, but just in case.
27
- mt = mt.filter_rows(hl.is_snp(mt.alleles[0], mt.alleles[1]))
+ mt = mt.filter_rows(
28
+ ((hl.len(mt.alleles) == 2) & hl.is_snp(mt.alleles[0], mt.alleles[1]))
29
+ )
30
31
# Filter to PASS variants only (variants with empty or missing filter set)
32
mt = mt.filter_rows(
0 commit comments