createExpressionSet: combine gene expression and phenotype data onto a...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Basically a wrapper for new('ExpressionSet',...), this function gathers gene expression and phenotype data, after having checked their compatibility.

Usage

1
createExpressionSet(exprs = new("matrix"), phenoData = new("AnnotatedDataFrame"), varMetadata = NULL, dimLabels = c("rowNames", "colNames"), featureData = NULL, experimentData = new("MIAME"), annotation = character(0), changeColumnsNames = TRUE, ...)

Arguments

exprs

gene expression matrix

phenoData

phenotype data associated with exprs columns, as a matrix or data.frame

varMetadata

optional metadata on phenotype data

dimLabels

see 'ExpressionSet'

featureData

see 'ExpressionSet'

experimentData

see 'ExpressionSet'

annotation

see 'ExpressionSet'

changeColumnsNames

Change exprs columns names – see details

...

...

Details

If changeColumnsNames is TRUE, then the procedure is the following: first one checks if phenoData contains a column named 'colNames'. If so, content will be used to rename exprs colums. On the other case, one uses combinations of phenoData columns to create new names. In any case, old columns names are stored within a column named 'oldcolnames' in the pData.

Value

An object of class ExpressionSet

Author(s)

Eric Lecoutre

See Also

ExpressionSet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# simulate expression data of 10 features (genes) measured in 4 samples
x <- matrix(rnorm(40), ncol = 4)
colnames(x) <- paste("sample", 1:4, sep = "_")
rownames(x) <- paste("feature", 1:10, sep = "_")

# simulate a phenodata with two variables
ToBePheno <- data.frame(Gender = rep(c('Male','Female'), 2), 
		Treatment = rep(c('Trt','Control'), each=2))
rownames(ToBePheno) <- paste("sample", 1:4, sep = "_")

eset <- createExpressionSet(exprs = x, phenoData = ToBePheno)

a4Base documentation built on May 31, 2017, 3:05 p.m.

Search within the a4Base package
Search all R packages, documentation and source code