Hi Chris,
Le 15.07.2009 18:16, Christopher Stubben a écrit :
I think the trees are the same, but the child-parent ids in x are
switched and the root is usually assigned a null parent (common in SQL
tables). With the link you provided, I can probably write a function
to get what I need, but
Hi again. Does anyone know a way to convert an edge list (adjacency
list with child-parent ids) into a phylo object in R? This would be
something like the NCBI taxonomy tree format (no cycles in graph)
x-data.frame(name=LETTERS[1:7] , id=1:7, parent=c(NA, 1,2,1,2,3,3))
For this small
Hi Chris
I might be missing your point but I think your object 'x' is different
from your object 'y'.
'x' is a tree with 4 tips whereas 'y' has 7 tips. Indeed, in x the
tips are only the nodes from 5 to 7.
Currently, I don't think there is any easy way to convert an arbitrary
matrix of
I think the trees are the same, but the child-parent ids in x are
switched and the root is usually assigned a null parent (common in SQL
tables). With the link you provided, I can probably write a function
to get what I need, but there is one problem I still don't understand
below.