amalgamate | R Documentation |
Amalgamation contrast function
amalgamate(Grps, TransformedData, pseudo.count = 0.65)
Grps |
Either a list of |
TransformedData |
Transformed Data. For amalgamation-phylofactorization, set |
pseudo.count |
Numeric greater than 0. If aggregation of a group is zero, it will be replaced with |
library(phylofactor)
set.seed(1)
m=50
n=20
tree <- rtree(m)
Grps <- getPhyloGroups(tree)
M <- matrix(rpois(m*n,1),nrow=m)
rownames(M) <- tree$tip.label
colnames(M) <- paste('Sample',1:n)
amalgamate(Grps,M)
amalgamate(Grps[[1]],M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.