Plotting with ggtree fails after midpoint rooting
1
0
Entering edit mode
@davidwyllie-8919
Last seen 8.6 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.1k views
ADD COMMENT
0
Entering edit mode
Guangchuang Yu ★ 1.2k
@guangchuang-yu-5419
Last seen 4 weeks 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: 708 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