Learn R Programming

puma (version 3.12.0)

removeUninformativeFactors: Remove uninformative factors from the phenotype data of an ExpressionSet

Description

This is really an internal function used to remove uninformative factors from the phenotype data. Uninformative factors here are defined as those which have the same value for all arrays in the ExpressionSet.

Usage

removeUninformativeFactors(eset)

Arguments

eset
An object of class ExpressionSet.

Value

An ExpressionSet object with the same data as the input, except for a new phenoData slot.

See Also

Related methods createDesignMatrix and createContrastMatrix

Examples

Run this code
	eset_test <- new("ExpressionSet", exprs=matrix(rnorm(400,8,2),100,4))
	pData(eset_test) <- data.frame("informativeFactor"=c("A", "A", "B", "B"), "uninformativeFactor"=c("X","X","X","X"))
	eset_test2 <- removeUninformativeFactors(eset_test)
	pData(eset_test)
	pData(eset_test2)

Run the code above in your browser using DataLab