Skip to content

allow new options to k-way stats #1648

Closed as not planned
Closed as not planned

Description

@petrelharp

Over in #1623 we've added a new option, centre to the C k-way stats method because we wanted to add it to genetic_relatedness, and I couldn't see a way to add it to only genetic_relatedness. The option does nothing for other methods. This seems unfortunate, and led to having to do some hackey stuff in Fst, which calls both one- and k-way methods. We should figure out how to do this better, at least before we want to add any more arguments that affect only one method.

Activity

  1. added
    Python API
    on Aug 30, 2021
  2. jeromekelleher commented on Aug 30, 2021

    @jeromekelleher
    Member

    Would a solution be to use flags directly in the low-level Python C API? I.e., we export the flags values from _tskit, and pass an options argument through the low-level calls to enable different options. This will reduce boilerplate too, hopefully since there's less argument parsing in Python-C?

  3. petrelharp commented on Aug 30, 2021

    @petrelharp
    ContributorAuthor

    Oh, yes, that's the right way to do it. =) (I think - we'll have to try it to see!)

  4. jeromekelleher commented on Aug 30, 2021

    @jeromekelleher
    Member

    OK, let's do it as a follow up to #1623 - no point in complicating that with a bunch of infrastructure changes.

  5. jeromekelleher commented on Aug 30, 2021

    @jeromekelleher
    Member

    LMK if you want me to have a go at it.

  6. added this to the Python 0.3.8 milestone on Aug 30, 2021
  7. jeromekelleher commented on Nov 4, 2021

    @jeromekelleher
    Member

    OK if we push this one out to the 0.4.1 release @petrelharp? We're nearly there for 0.4.0 and it would be good to get it shipped.

  8. petrelharp commented on Nov 5, 2021

    @petrelharp
    ContributorAuthor

    Sure - I've got no bandwidth.

  9. modified the milestones: Python 0.4.0, on Nov 5, 2021
  10. added
    future
    on Jun 10, 2025
  11. removed this from the milestone on Jun 10, 2025
  12. benjeffery commented on Jun 10, 2025

    @benjeffery
    Member

    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

Assignees

No one assigned

    Labels

    Python APIfuture

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions