Replies: 2 comments 6 replies
-
It's a nice idea, but it's not obvious to me what the proposed API would look like. Any suggestions? |
Beta Was this translation helpful? Give feedback.
4 replies
-
This sounds great, but also sounds like a separate repo from both msprime and tskit? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might be useful to have a method that produces a new tree by a single SPR move from an existing tree. Perhaps the way to do this is to take an entire tree sequence and return a new tree sequence which has been extended in length by (say) 1 unit, with the new tree tacked onto the end (and the edge and node tables extended). That way it would be possible to build up a tree sequence by repeatedly calling this method. It would be sensible to have an equivalent table method too.
It does, however, require some model of the probabilities of generating different SPRs. So perhaps this is too "model based" for a tskit method, and it belongs in something like msprime (and on reflection, perhaps this discussion belongs in the msprime repo instead). I think there is a standard SMC way to make a new tree from an old one, assuming recombination is equally likely on any branch (proportional to branch length).
For context, this arose during a really useful chat to @a-ignatieva on Friday, where we discussed an ARG distance metric which could take account of the persistence of edges between trees, so that a "proper" ARG would have lower (better) score than a JBOT of the same marginal topologies. For testing purposes, it would be useful to create trees that were "marginally" different from existing trees.
Beta Was this translation helpful? Give feedback.
All reactions