Skip to content

Commit f5756b4

Browse files
committed
mito types
1 parent c1a040f commit f5756b4

File tree

1 file changed

+3
-3
lines changed
  • v03_pipeline/lib/annotations

1 file changed

+3
-3
lines changed

v03_pipeline/lib/annotations/mito.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616

1717
def common_low_heteroplasmy(ht: hl.Table, **_: Any) -> hl.Expression:
18-
return ht.common_low_heteroplasmy
18+
return hl.bool(ht.common_low_heteroplasmy)
1919

2020

2121
def contamination(mt: hl.MatrixTable, **_: Any) -> hl.Expression:
22-
return mt.contamination
22+
return hl.parse_float64(mt.contamination)
2323

2424

2525
def DP(mt: hl.MatrixTable, **_: Any) -> hl.Expression: # noqa: N802
@@ -29,7 +29,7 @@ def DP(mt: hl.MatrixTable, **_: Any) -> hl.Expression: # noqa: N802
2929

3030
def GQ(mt: hl.MatrixTable, **_: Any) -> hl.Expression: # noqa: N802
3131
is_called = hl.is_defined(mt.GT)
32-
return hl.if_else(is_called, mt.MQ, 0)
32+
return hl.if_else(is_called, hl.int32(mt.MQ), 0)
3333

3434

3535
def haplogroup(ht: hl.Table, **_: Any) -> hl.Expression:

0 commit comments

Comments
 (0)