-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root function loses tip.label and node.label #120
Comments
I also tried an older version treeio_1.20.2 (on a different computer) and this time, the tip.label and node.labels are retained. So something went wrong between versions 1.20.2 and version 1.26.0. |
I can reproduce the error on treeio 1.25.4 |
actually, not so sure that treeio_1.20.2 does work as I said on Friday. Now that I'm back on the first computer, and I've installed treeio_1.20.2 here, I still have a problem. Might be some interaction with one of the other packages I have installed - I'm a little unclear on what's going on under the hood, and which package(s) are most relevant. I guess my first question is - should I expect |
I figured out a workaround for this issue in my code: I go back to the tree as a plain phylo object, reroot that, and regenerate the treedata object by adding the metadata. Interestingly, when I plot the new rerooted trees (using Was there an error before in the 'root' method for treedata objects with node labels? Is that why node.labels are dropped now? I can't figure out how to make a reproducible example for the possibly wrongly placed node labels now that I've updated my R packages (because |
Hello, I can offer more detail, I tried to read the code of if checking the code of treeio:::build_new_tree:
I used same data as @jayoung , here is the content of
but after ran
I don't know whether this is correct class type for |
hi there,
I am trying to reroot a treedata object, and I find that the tip.label and node.labels are getting lost from the phylogeny (they're getting replaced with
c("1","2","3",etc)
The example code below should show you what I mean. I get the same problem if I use the trda treedata object defined in the treedata book
Am I doing something wrong, or is this a bug?
thanks very much!
Janet Young
Here's sessionInfo() output:
The text was updated successfully, but these errors were encountered: