-
Notifications
You must be signed in to change notification settings - Fork 79
Closed as not planned
Labels
C APIIssue is about the C APIIssue is about the C APIPython APIIssue is about the Python APIIssue is about the Python APIfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.Issues that are closed as they are not planned in the medium-term, but which are still desirable.
Description
The topological definition of missing data is that we have an isolated sample (a sample node with no children or parents). #1894 added a quick definition of this to the Python API, but we should implement it in C and test it out to make sure it's correct in various corner cases.
def has_isolated_samples(self):
for root in self.roots:
if self.left_child(root) == NULL:
return True
return FalseSome that occur to me:
- Is this correct when we have a tree sequence with a single sample node and no edges? (Yes, I think?)
- What about the empty tree sequence? (Do we get trees empty trees returned by trees()?)
- What if we have non-sample topology below this root? Is this considered isolated or not?
Metadata
Metadata
Assignees
Labels
C APIIssue is about the C APIIssue is about the C APIPython APIIssue is about the Python APIIssue is about the Python APIfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.Issues that are closed as they are not planned in the medium-term, but which are still desirable.