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
Rename find_ibd to ibd_segments and IbdResult to IbdSegments #1708
As we're going through the IBD API and making room for it to do more general things (e.g. #1663), I think it makes sense to be more concrete about what the current find_ibd method does: it returns the IBD segments. We can build other methods later that return some statistics about the IBD segments (computed on the fly, efficiently), as outlined in #1639 (see the comments for more stats), and we want to leave room in the name space for that. By renaming find_ibd to ibd_segments we are making one method that does a specific thing, so that we can later develop others. This means we don't have to pile loads of functionality into find_ibd, or make its return type super complicated.
Likewise, the current IbdResult object that we return is a bit vague. I think it would be better to call it an IbdSegments class, which is a mapping from pairs of nodes to IbdSegmentList objects, which in turn contain IbdSegments (This is partially done in #1707).
This sounds fine to me! I think the reason why I initially called this find_ibd was to follow the pattern of the other similar algorithms in tskit, which use verbs (simplify, link_ancestors). But now that our vision for this function has broadened a bit into calculating statistics etc, that consideration is less important now.
Activity
gtsambos commentedon Sep 17, 2021
This sounds fine to me! I think the reason why I initially called this
find_ibdwas to follow the pattern of the other similar algorithms in tskit, which use verbs (simplify,link_ancestors). But now that our vision for this function has broadened a bit into calculating statistics etc, that consideration is less important now.Rename find_ibd to ibd_segments.
Rename find_ibd to ibd_segments.
Rename find_ibd to ibd_segments.
Rename find_ibd to ibd_segments.