get.eigen.molecule: Get eigen molecule

Description Usage Arguments Value Author(s) Examples

View source: R/DiffCorr.R

Description

Get eigen molecule

Usage

1
2
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

1
2
3
4
5
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)

DiffCorr documentation built on May 30, 2017, 7:52 a.m.