Skip to content

Add windows option to genealogical_nearest_neighbours #193

Closed as not planned

Description

@jeromekelleher

#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.

Activity

  1. added this to the Python 0.1.6 milestone on May 28, 2019
  2. jeromekelleher commented on Jun 11, 2019

    @jeromekelleher
    MemberAuthor

    More generally, this should be defined in windows like other tree stats.

  3. changed the title [-]Add treewise option to genealogical_nearest_neighbours[/-] [+]Add windows option to genealogical_nearest_neighbours[/+] on Aug 13, 2019
  4. jeromekelleher commented on Aug 22, 2019

    @jeromekelleher
    MemberAuthor

    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.

  5. added
    enhancement
    on Sep 29, 2020
  6. removed this from the Python upcoming milestone on Sep 29, 2020
  7. hyanwong commented on Oct 21, 2020

    @hyanwong
    Member

    I think this may be rolled in to #683

  8. benjeffery commented on Jun 5, 2025

    @benjeffery
    Member

    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.

  9. hyanwong commented on Jun 6, 2025

    @hyanwong
    Member

    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.

  10. added
    future
    on Jun 10, 2025
  11. benjeffery commented on Jun 10, 2025

    @benjeffery
    Member

    See discussion also at #665 and #1237
    Closing for inactivity and labelling "future", please re-open if you plan to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementfuture

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions