mrca.2nodes {phybase} | R Documentation |
Find the most recent common ancestor of two nodes
Description
The function can find the most recent common ancestor of two nodes inode
and jnode
Usage
mrca.2nodes(inode, jnode, nodematrix)
Arguments
inode |
the node inode |
jnode |
the node jnode |
nodematrix |
the tree node matrix |
Value
anc |
the node number of the most recent common ancestor of inode and jnode . |
dist |
the distance between the two nodes. |
Author(s)
Liang Liu lliu@oeb.harvard.edu
See Also
mrca.nodes
, coaltime
, popsize
Examples
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.2nodes(1,2,nodematrix)
[Package
phybase version 1.1
Index]