Re: [R-sig-phylo] is.binary() says "FALSE" after using multi2di()

2018-05-14 Thread Pedro Pequeno
Dear Graham and Liam, thanks for the quick responses; it works now! I knew I was missing something trivial... Best wishes, Pedro 2018-05-14 12:52 GMT-03:00 Liam J. Revell : > Dear Pedro. > > It looks like Graham has identified the problem - that the tree has some >

Re: [R-sig-phylo] is.binary() says "FALSE" after using multi2di()

2018-05-14 Thread Liam J. Revell
Dear Pedro. It looks like Graham has identified the problem - that the tree has some 'singleton' nodes. These are nodes with only one (rather than 2 or more) descendant edges. This can be fixed using: tree<-collapse.singles(tree) from the 'ape' package. Hopefully this helps. All the best,

Re: [R-sig-phylo] is.binary() says "FALSE" after using multi2di()

2018-05-14 Thread Graham Slater
Hi Pedro, multi2di on this newick string returns a tree of 102 tips with 103 nodes, so you seem to have a badly formatted tree. Plotting the resulting tree with all edge lengths = 1 does not immediately reveal, at least to me, where the issue(s) lie but perhaps it will to you? Graham

[R-sig-phylo] is.binary() says "FALSE" after using multi2di()

2018-05-14 Thread Pedro Pequeno
Dear colleagues, I have a tree with several polytomies, and I am trying to make it binary using multi2di(). However, when I ask is.binary(), R keeps telling me "FALSE". Any idea on what the problem may be? It looks like I am missing something trivial... Below you will find the tree. Thank you