Re: [R-sig-phylo] Extract all possible clades from a tree

2017-01-06 Thread Emmanuel Paradis
Hi, Klaus is right: extract.clade() fails if the tree has been rooted with resolve.root = TRUE before. I'm going to rewrite the function calling drop.tip (which will be safer). In the meantime, Klaus's function should work for Kamila. Best, Emmanuel Le 06/01/2017 à 05:17, Klaus Schliep a

Re: [R-sig-phylo] Extract all possible clades from a tree

2017-01-06 Thread Emmanuel Paradis
I paste below the new code of extract.clade for those who want to try it. Best, Emmanuel extract.clade <- function(phy, node, root.edge = 0, interactive = FALSE) { n <- length(phy$tip.label) if (interactive) {

Re: [R-sig-phylo] phylo from igraph

2017-01-06 Thread Klaus Schliep
Hi Giulio, there is an as_phylo function in igraph and as.igraph in ape. Cheers, Klaus On Fri, Jan 6, 2017 at 5:02 PM, Giulio V. Dalla Riva wrote: > Dear Phyloers, > > > Has anybody already implemented a function to convert an igraph graph > object into a phylo object? >

[R-sig-phylo] phylo from igraph

2017-01-06 Thread Giulio V. Dalla Riva
Dear Phyloers, Has anybody already implemented a function to convert an igraph graph object into a phylo object? (Let's pretend we are in the best of the worlds and the graph object is indeed a tree and all). Best, Giulio Valentino Dalla Riva Beaty Biodiversity Research Centre

Re: [R-sig-phylo] phylo from igraph

2017-01-06 Thread Giulio V. Dalla Riva
Thanks Klaus! I could I've missed them! Giulio Valentino Dalla Riva Beaty Biodiversity Research Centre University of British Columbia Vancouver, Canada From: Klaus Schliep Sent: January 6, 2017 2:34:49 PM To: Giulio V. Dalla Riva Cc:

Re: [R-sig-phylo] Extract all possible clades from a tree

2017-01-06 Thread Kamila Naxerova
This new code works perfectly for me. Thanks so much everyone for helping me to solve this issue in record time! Kamila > On Jan 6, 2017, at 6:39 AM, Emmanuel Paradis wrote: > > I paste below the new code of extract.clade for those who want to try it. > > Best, > >