Skip to content

Commit 9516604

Browse files
tomwhitemergify[bot]
authored andcommitted
Add warnings about not supporting datasets chunked by samples
1 parent a3feb0a commit 9516604

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sgkit/stats/popgen.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def diversity(
3636
Returns
3737
-------
3838
diversity value.
39+
40+
Warnings
41+
--------
42+
This method does not currently support datasets that are chunked along the
43+
samples dimension.
3944
"""
4045
if allele_counts not in ds:
4146
ds = count_cohort_alleles(ds)
@@ -109,6 +114,11 @@ def divergence(
109114
Returns
110115
-------
111116
divergence value between pairs of cohorts.
117+
118+
Warnings
119+
--------
120+
This method does not currently support datasets that are chunked along the
121+
samples dimension.
112122
"""
113123

114124
if allele_counts not in ds:
@@ -173,6 +183,11 @@ def Fst(
173183
Returns
174184
-------
175185
Fst value between pairs of cohorts.
186+
187+
Warnings
188+
--------
189+
This method does not currently support datasets that are chunked along the
190+
samples dimension.
176191
"""
177192
if allele_counts not in ds:
178193
ds = count_cohort_alleles(ds)
@@ -209,6 +224,10 @@ def Tajimas_D(
209224
-------
210225
Tajimas' D value.
211226
227+
Warnings
228+
--------
229+
This method does not currently support datasets that are chunked along the
230+
samples dimension.
212231
"""
213232
if allele_counts not in ds:
214233
ds = count_variant_alleles(ds)

0 commit comments

Comments
 (0)