Skip to content

Commit def7573

Browse files
authored
Update python/tskit/trees.py
1 parent 7a32616 commit def7573

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

python/tskit/trees.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9353,11 +9353,9 @@ def segregating_sites(
93539353
minus one], per unit of chromosome length.
93549354
If all sites have at most two alleles in ``A``,
93559355
this is the density of segregating/polymorphic sites in ``A``
9356-
(since the "minus one" reduces the sum for ancestral allele).
9357-
Hence, multiple mutations per site increase the
9358-
returned value, but only if they segregate in ``A``.
9359-
If an ancestral allele does not segregate in ``A``,
9360-
the "minus one" will reduce the sum for another allele.
9356+
(since the "minus one" reduces the sum for monoallelic sites).
9357+
For sites with more than two alleles, the sum is increased by
9358+
one for each additional allele segregating in ``A``.
93619359
To get the **number** of segregating alleles in ``A``,
93629360
use ``span_normalise=False``.
93639361

0 commit comments

Comments
 (0)