mrca.2nodes: Find the most recent common ancestor of two nodes

Description Usage Arguments Value Author(s) See Also Examples

Description

The function can find the most recent common ancestor of two nodes inode and jnode

Usage

1
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@uga.edu

See Also

mrca.nodes, coaltime, popsize

Examples

1
2
3
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)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.