Description Usage Arguments Value Author(s) Examples
The ensembleAdjustable function applies a geneSignature object to a data matrix containing expression values and gene symbols or an ExpressionSet object.
1 | ensembleAdjustable(dataSet, geneSig, index=F)
|
dataSet |
data set object, may be numeric matrix or an ExpressionSet |
geneSig |
geneSignature object containing directions, thresholds, and gene symbols |
index |
index to indicate which samples are to be subsetted, may be FALSE for no subsetting or a vector of column numbers |
A logical vector with length equal to the number of samples (or samples subsetted), TRUE indicating a positive, FALSE indicating a negative
UnJin Lee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require(Biobase)
## Generate test geneSignature object with 0s for thresholds
gs <- setGeneSignature(g=new("geneSignature"), direct=c(1,1,1), genes=c("A", "B", "C"), thresholds=c(0, 0, 0))
## Generate randomly distributed matrix and ExpressionSet
mat <- matrix(rnorm(9, 0, 1), nrow=3)
rownames(mat) <- c("A", "B", "C")
posmat <- abs(mat)
expset <- new("ExpressionSet", exprs=mat)
## Apply geneSignature to matrices
ensembleAdjustable(mat, gs)
ensembleAdjustable(posmat, gs)
## Apply geneSignature to ExpressionSet
ensembleAdjustable(expset, gs)
## Apply geneSignature with subsetting
ensembleAdjustable(mat, gs, c(1, 3))
ensembleAdjustable(expset, gs, c(1, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.