mrca.nodes {phybase}R Documentation

Find the most recent common ancestor of multiple nodes

Description

The function can find the most recent common ancestor of multiple nodes specified in nodevector

Usage

mrca.nodes(nodevector, nodematrix)

Arguments

nodevector a set of nodes
nodematrix the tree node matrix

Value

The function returns the node number of the most recent common ancestor of the nodes in nodevector.

Author(s)

Liang Liu lliu@oeb.harvard.edu

See Also

mrca.2nodes, 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.nodes(c(1,2,3),nodematrix)

[Package phybase version 1.1 Index]