get.eigen.molecule {DiffCorr}R Documentation

Get eigen molecule

Description

Get eigen molecule

Usage

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

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

Value

the resulting vector.

Author(s)

Atsushi Fukushima

Examples

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)

[Package DiffCorr version 0.4.3 Index]