get.eigen.molecule | R Documentation |
Get eigen molecule
get.eigen.molecule(data, groups, whichgroups = NULL, methods = "svd", n = 10)
data |
a data matrix ([data.frame object] row: molecules, col: samples or replicates) |
groups |
a vector of group memberships as returned by cutree |
whichgroups |
a vector of group numbers to examine |
methods |
c("svd", "nipals", "rnipals", "bpca", "ppca"). See also pca() function in pcaMethods package |
n |
top n principal components |
the resulting vector.
Atsushi Fukushima
library(pcaMethods)
data(golub, package = "multtest")
hc.mol1 <- cluster.molecule(golub[1:100, 1:27], "pearson", "average")
g1 <- cutree(hc.mol1, h=0.6)
res1 <- get.eigen.molecule(golub[1:100,], g1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.