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
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) {
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?
>
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
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:
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,
>
>