Skip to content

Commit 69f9293

Browse files
committed
Faster count_variant_alleles in Tajimas_D
1 parent 9e8bd1e commit 69f9293

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sgkit/stats/popgen.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,11 @@ def Tajimas_D(
430430
[1.10393559, 1.10393559]])
431431
"""
432432
ds = define_variable_if_absent(
433-
ds, variables.variant_allele_count, variant_allele_count, count_variant_alleles
433+
ds,
434+
variables.variant_allele_count,
435+
variant_allele_count,
436+
count_variant_alleles,
437+
using=variables.call_genotype,
434438
)
435439
ds = define_variable_if_absent(
436440
ds, variables.stat_diversity, stat_diversity, diversity

0 commit comments

Comments
 (0)