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
{{ message }}
Repository navigation
Add windows option to genealogical_nearest_neighbours #193
#184 fixed a bug in the definition of the GNN statistic. Need to update the API to add an extra parameter treewise=False to allow this to be returned treewise.
changed the title [-]Add treewise option to genealogical_nearest_neighbours[/-][+]Add windows option to genealogical_nearest_neighbours[/+]on Aug 13, 2019
We can push this back to 0.2.1 because after #313 is merged the default behaviour for windows=None is to strip the first dimension (which is what this is doing now). So, when updating we need to add an option windows=None which follows the same semantics as the other windowed tree stats.
From my reading of #683 this only added a Python implementation of windowed_genealogical_nearest_neighbours in the test code? If we don't intend on adding the actual implementation, this should be removed.
Activity
jeromekelleher commentedon Jun 11, 2019
More generally, this should be defined in windows like other tree stats.
[-]Add treewise option to genealogical_nearest_neighbours[/-][+]Add windows option to genealogical_nearest_neighbours[/+]jeromekelleher commentedon Aug 22, 2019
We can push this back to 0.2.1 because after #313 is merged the default behaviour for windows=None is to strip the first dimension (which is what this is doing now). So, when updating we need to add an option
windows=Nonewhich follows the same semantics as the other windowed tree stats.hyanwong commentedon Oct 21, 2020
I think this may be rolled in to #683
benjeffery commentedon Jun 5, 2025
From my reading of #683 this only added a Python implementation of
windowed_genealogical_nearest_neighboursin the test code? If we don't intend on adding the actual implementation, this should be removed.hyanwong commentedon Jun 6, 2025
It might become clearer once the other time-windowing code is released, and we can make this consistent.
Note that some people call this genome-windowed thing "local ancestry inference" (which I don't like), but maybe we should mention that in the docs.
benjeffery commentedon Jun 10, 2025
See discussion also at #665 and #1237
Closing for inactivity and labelling "future", please re-open if you plan to work on this.