Skip to content

Commit 7d10ae4

Browse files
committed
change sum from method to function
1 parent 345de78 commit 7d10ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgkit/stats/aggregation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def individual_heterozygosity(
10581058
variables.validate(ds, {call_allele_count: variables.call_allele_count_spec})
10591059

10601060
AC = da.asarray(ds.call_allele_count)
1061-
K = AC.sum(axis=-1)
1061+
K = da.sum(AC, axis=-1)
10621062
# use nan denominator to avoid divide by zero with K - 1
10631063
K2 = da.where(K > 1, K, np.nan)
10641064
AF = AC / K2[..., None]

0 commit comments

Comments
 (0)