Taxa.index: Relationship between leaves and internal nodes

Usage Arguments Details Value Author(s) Examples

Usage

1
Taxa.index(p, tree)

Arguments

p

OTU numbers

tree

tree structure, object of phylo type

Details

This function have the same function with caper::clade.members.list

Value

One matrix with dimension p*s, s is the number of the internal nodes

Author(s)

Chao ZHOU

Examples

1
2
3
4
5
6
7
8
p <- 6
tree <- Tree.Sim(p)
otu.tab <- matrix(1:100, p)
colnames(otu.tab) <- as.character(1:p)
taxa <- taxa.index(p, tree)

##get the count on the internal nodes
taxa.otu <- taxa * otu.tab

ZRChao/LRTT documentation built on May 17, 2019, 6:36 p.m.