wcor: Calculate weighted correlations.

Description Usage Arguments Value Author(s) Examples

Description

wcor returns correlations weighted according to a provided object of class Weights.

Usage

1
wcor(X, anno, Factor, Weights)

Arguments

X

A matrix of gene expression values.

anno

A dataframe or a matrix containing the annotation of arrays in X.

Factor

A character string corresponding to a column name of anno; this should be the same used to generate Weights.

Weights

An object of class Weights or a list of weights.

Value

wcor returns a matrix.

Author(s)

Saskia Freytag

Examples

1
2
3
4
5
Y<-simulateGEdata(500, 500, 10, 2, 5, g=NULL, Sigma.eps=0.1, 250, 100, check.input=FALSE)
anno<-as.matrix(sample(1:5, dim(Y$Y)[1], replace=TRUE))
colnames(anno)<-"Factor"
weights<-findWeights(Y$Y, anno, "Factor")
wcor(Y$Y[,1:5], anno, "Factor", weights)

PeteHaitch/RUVcorr documentation built on May 8, 2019, 1:31 a.m.