YtreeFun | R Documentation |
Calculate the count on each subtree.
YtreeFun(otu.tab, tree)
otu.tab |
a data frame or matrix containing the count data. Rows of the matrix represent observations and columns are the taxa. |
tree |
the phylogenetic tree. |
Returns a list of abundance matrices corresponding to internal nodes of the tree.
library(phyloseq) otu.tab <- t(otu_table(combo.phyloseq.obj)) tree <- phy_tree(combo.phyloseq.obj) ytree <- YtreeFun(otu.tab, tree) length(ytree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.