When combining tree sequences, how do we identify whether populations are the same? #1915
-
If we merge or combine two tree sequences, e.g. using Note that the same goes for individuals, although I think nearly all the time we assume that we aren't referring to the same individuals in 2 tree sequences that are combined in some way. But logically it could be possible, I suppose. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We have no systematic way to do this - it depends on context, I think. In |
Beta Was this translation helpful? Give feedback.
-
In msprime we check that the names match up when running a simulation with a Demography and a specified initial state: https://github.com/tskit-dev/msprime/blob/b822b647dacca23b1cac598e04e49c18b0a17102/msprime/ancestry.py#L960 |
Beta Was this translation helpful? Give feedback.
We have no systematic way to do this - it depends on context, I think. In
union
we can check whether all the pairs of nodes in the two tree sequences that are supposed to be the "same" node point to the "same" populations; and if the metadata of populations is the same we can check that also.