Replies: 4 comments
-
There is not. It wouldn't be too hard to build a new single-tree tree sequence that is the re-rooting of a given tree, but I'm not sure even if re-rooting of a more-than-one-tree tree sequence is well-defined? What did you have in mind? |
Beta Was this translation helpful? Give feedback.
-
Nodes in a tree also have defined times rather than branch lengths, so rerooting mainly involves making decisions about these. As @petrelharp says, if you let us know what application you have in mind we can have a think. |
Beta Was this translation helpful? Give feedback.
-
I need to manipulate a lot of trees sometime reroot is needed. because tskit is fast so I wander if that can be done based on tskit. Anyway, thanks a lot for answering. |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion, as this isn't a feature we're going to implement in tskit (most likely) but we may want to discuss the idea further. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to reroot the tree in tree sequence?
Beta Was this translation helpful? Give feedback.
All reactions