noclock2clock {phybase}R Documentation

Convert a non-clocklike tree to a clocklike tree

Description

This function converts a non-clocklike tree to a clocklike tree using an ad-hoc approach described in the paper Liu et al 2007.

Usage

noclock2clock(inode, treematrix, nspecies)

Arguments

inode root of the tree
treematrix tree node matrix
nspecies the number of species in the tree

Value

The function returns the tree node matrix of the clocklike tree.

Author(s)

Liang Liu

References

~put references to the literature/web site here ~

Examples

treestr<-"(((H:1,C:3):2,G:6):2,O:10);"
name<-species.name(treestr)
treenode<-read.tree.nodes(treestr,name)$nodes
noclock2clock(7,treenode,4)

[Package phybase version 1.1 Index]