tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Population-scale genomics

Results 291 tskit issues
Sort by recently updated
recently updated
newest added

In #2948 @tforest is working on adding time windows to statistics. How this should work for `mode="branch"` is clear; however, it is not clear for `mode="site"`. (It doesn't make sense...

As discussed in #2888, usually "genetic relatedness" includes the self comparisons. (This makes sense if (a) you're computing the covariance matrix of additive traits, (b) if you want to know...

#1825 added support for alignments, which passed through arguments for supporting missing data to the haplotypes method. However, the initial implementation was wrong. Consider the following example: ```python # 2.00┊...

bug

Dear all, I was checking variable implementations of the (joint) allele frequency spectrum folding and went through the [polarisation subsection](https://tskit.dev/tskit/docs/stable/stats.html#polarisation) in `msprime`. I am not sure I clearly understood the...

Something like ``` def individual_heterozygosity(ts, ind): ts.pairwise_diversity(ind.nodes) ``` should do it - very simple, but we want to make it easy and natural for people to deal with individuals.

enhancement
statistics

Seems clang-format broke

## Description This PR fixes issue #3055 where `genetic_relatedness` would fail when computing self-comparisons with a single sample set. As @petrelharp pointed out there is no reason this shouldn't be...

Self-comparisons are valid for this statistic, and so this should work: ``` >> ts.genetic_relatedness([[0]], indexes=[(0,0)]) Traceback (most recent call last): File "", line 1, in File "/home/peter/projects/tskit-dev/tsvenv/lib/python3.12/site-packages/tskit/trees.py", line 8403, in...

bug

``` WARNING pyproject.toml does not contain a tool.setuptools_scm section ``` we probably need modernise the pyproject.toml a bit?