Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/exprSetManipulations.R
Basically a wrapper for new('ExpressionSet',...)
, this function gathers gene
expression and phenotype data, after having checked their compatibility.
1 2 3 4 5 6 7 8 9 10 11 |
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 |
featureData |
see |
experimentData |
see |
annotation |
see |
changeColumnsNames |
Change exprs columns names – see 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.
An object of class ExpressionSet
Eric Lecoutre
1 2 3 4 5 6 7 8 9 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.