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
To do this, we need to first build the map of which individual IDs are shared between self and other, by looping over the shared nodes, here. (And, we don't have tests with individual parents to test this.)
Ok, here's my shot at a better question. What happens when individuals whose nodes are marked as being equivalent in other_node_mapping have parents that are of nodes that are not? This smells like it should be an error?
That does sound like it should be an error, but it might be tricky to actually detect? How much consistency checking are we doing now to make sure those nodes are actually equivalent?
Ok, here's my shot at a better question. What happens when individuals whose nodes are marked as being equivalent in other_node_mapping have parents that are of nodes that are not? This smells like it should be an error?
I don't quite understand the question: what's "have parents that are of nodes that are not"?
I mean that the structure of node parents is not compatible with the structure of individual parents. So you could have parent individuals of node A in other whose nodes are not mapped to the nodes in self that are the parent nodes of the node that is mapped to A.
Ah. I say we ignore that. There's very few - if any - situations we can be sure of an error. Suppose for instance that A is the parent of B, but only one of A's nodes is present, and B has inherited only from the other of A's nodes; this would look like 'inconsistent parents' unless we notice that we don't have all of A's nodes (and to do that, we'd have to assume a ploidy for A).
Activity
petrelharp commentedon Mar 8, 2021
Related: #1226
benjeffery commentedon Mar 9, 2021
Just working through this, so individuals whose parents are no longer part of the tree sequence will have them set to
NULL?benjeffery commentedon Mar 9, 2021
Doh that was a bad question, I get it now.
benjeffery commentedon Mar 9, 2021
Ok, here's my shot at a better question. What happens when individuals whose nodes are marked as being equivalent in
other_node_mappinghave parents that are of nodes that are not? This smells like it should be an error?jeromekelleher commentedon Mar 9, 2021
That does sound like it should be an error, but it might be tricky to actually detect? How much consistency checking are we doing now to make sure those nodes are actually equivalent?
benjeffery commentedon Mar 9, 2021
There is
TSK_UNION_NO_CHECK_SHAREDbut that is optional.jeromekelleher commentedon Mar 9, 2021
Well, I guess I'd do individual checks in there, to the extent that other aspects of node identity are checked?
petrelharp commentedon Mar 10, 2021
I don't quite understand the question: what's "have parents that are of nodes that are not"?
benjeffery commentedon Mar 10, 2021
I mean that the structure of node parents is not compatible with the structure of individual parents. So you could have parent individuals of node A in
otherwhose nodes are not mapped to the nodes inselfthat are the parent nodes of the node that is mapped to A.petrelharp commentedon Mar 10, 2021
Ah. I say we ignore that. There's very few - if any - situations we can be sure of an error. Suppose for instance that A is the parent of B, but only one of A's nodes is present, and B has inherited only from the other of A's nodes; this would look like 'inconsistent parents' unless we notice that we don't have all of A's nodes (and to do that, we'd have to assume a ploidy for A).
jeromekelleher commentedon Mar 10, 2021
Yes, let's not worry about it for the moment. Maybe make a note of it in the code as a potential issue that might arise.