mrca.nodes {phybase} | R Documentation |
The function can find the most recent common ancestor of multiple nodes specified in nodevector
mrca.nodes(nodevector, nodematrix)
nodevector |
a set of nodes |
nodematrix |
the tree node matrix |
The function returns the node number of the most recent common ancestor of the nodes in nodevector
.
Liang Liu lliu@oeb.harvard.edu
mrca.2nodes
, coaltime
, popsize
treestr<-"((((H:0.00402,C:0.00402):0.00304,G:0.00707):0.00929,O:0.01635):0.1,W:0.12);" nodematrix<-read.tree.nodes(treestr)$nodes mrca.nodes(c(1,2,3),nodematrix)