Plotting with ggtree fails after midpoint rooting
1
0
Entering edit mode
@davidwyllie-8919
Last seen 9.2 years ago
United Kingdom

After midpoint rooting a tree, ggtree failes, with the getRoot function reporting 'multiple roots founded'.  However, getRoot only returns one root when it is called on the tree passed to the plotting function.

require(ape)
require(phangorn)
require(ggtree)


x<-rtree(10)  # a random tree
getRoot(x) # correctly returns
ggtree(x) # succeeds

y<-midpoint(x)  # phangorn midpoint rooting function
getRoot(y) # succeeds, returning one root
ggtree(y) # fails, reporting 'error in getRoot(tr) multiple roots founded (I think this should read 'found')

I'm lost as to why this should be

- Any suggestions?
Thank you
David

 

ggtree • 2.4k views
ADD COMMENT
0
Entering edit mode
Guangchuang Yu ★ 1.2k
@guangchuang-yu-5419
Last seen 25 days ago
China/Guangzhou/Southern Medical Univer…

duplicated, see the discussion in https://github.com/GuangchuangYu/ggtree/issues/15

ADD COMMENT

Login before adding your answer.

Traffic: 531 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6