Learn R Programming

DiffCorr (version 0.4.3)

get.eigen.molecule: Get eigen molecule

Description

Get eigen molecule

Usage

get.eigen.molecule(data, groups, whichgroups = NULL, methods = "svd", n = 10)

Value

the resulting vector.

Arguments

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

Author

Atsushi Fukushima

Examples

Run this code
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)

Run the code above in your browser using DataLab