Skip to content

Commit

Permalink
Faster count_variant_alleles in Tajimas_D
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymillar committed Sep 9, 2023
1 parent 9e8bd1e commit 69f9293
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sgkit/stats/popgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ def Tajimas_D(
[1.10393559, 1.10393559]])
"""
ds = define_variable_if_absent(
ds, variables.variant_allele_count, variant_allele_count, count_variant_alleles
ds,
variables.variant_allele_count,
variant_allele_count,
count_variant_alleles,
using=variables.call_genotype,
)
ds = define_variable_if_absent(
ds, variables.stat_diversity, stat_diversity, diversity
Expand Down

0 comments on commit 69f9293

Please sign in to comment.