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
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 onlygenetic_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.
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?
Activity
jeromekelleher commentedon Aug 30, 2021
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
optionsargument through the low-level calls to enable different options. This will reduce boilerplate too, hopefully since there's less argument parsing in Python-C?petrelharp commentedon Aug 30, 2021
Oh, yes, that's the right way to do it. =) (I think - we'll have to try it to see!)
jeromekelleher commentedon Aug 30, 2021
OK, let's do it as a follow up to #1623 - no point in complicating that with a bunch of infrastructure changes.
jeromekelleher commentedon Aug 30, 2021
LMK if you want me to have a go at it.
jeromekelleher commentedon Nov 4, 2021
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.
petrelharp commentedon Nov 5, 2021
Sure - I've got no bandwidth.
benjeffery commentedon Jun 10, 2025
Closing for inactivity and labelling "future", please re-open if you plan to work on this.