You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've decided to restrict multi-population statistics to two sample sets (two-way LD statistics). The reason being that we would need to implement a lot of logic for various index permutations (especially for pi2, which is a 4-way statistic). See this implementation of pi2 statistics for an example. Given that these might not have broad utility, we decided to provide a general stats API that will allow users to implement new LD statistics in python, so that they can compute new statistics easily.
Down the road, if we want 3+ way two-locus statistics, it should be relatively easy to add them in. We'll have the low-level k-way API implemented to support general statistics, so it should be a matter of adding in new LD stats and dispatching them as 3+ way stats.
Activity
lkirk commentedon May 28, 2025
We've decided to restrict multi-population statistics to two sample sets (two-way LD statistics). The reason being that we would need to implement a lot of logic for various index permutations (especially for pi2, which is a 4-way statistic). See this implementation of pi2 statistics for an example. Given that these might not have broad utility, we decided to provide a general stats API that will allow users to implement new LD statistics in python, so that they can compute new statistics easily.
Down the road, if we want 3+ way two-locus statistics, it should be relatively easy to add them in. We'll have the low-level k-way API implemented to support general statistics, so it should be a matter of adding in new LD stats and dispatching them as 3+ way stats.