Learn R Programming

npGSEA (version 1.8.0)

geneSetName-methods: ~~ Methods for Function geneSetName ~~

Description

This function returns the name of the corresponding GeneSet or a list of names for a GeneSetCollection. This method is applicable for all three approximation methods.

Usage

geneSetName(object)

Arguments

object
An object of type npGSEAResultNorm, npGSEAResultBeta, npGSEAResultChiSq, npGSEAResultNormCollection, npGSEAResultBetaCollection, or npGSEAResultChiSqCollection

Methods

signature(object = "npGSEAResultNorm")
Returns a the name of the gene set from a npGSEAResultNorm object
signature(object = "npGSEAResultBeta")
Returns a the name of the gene set from a npGSEAResultBeta object
signature(object = "npGSEAResultChiSq")
Returns a the name of the gene set from a npGSEAResultChiSq object
signature(object = "npGSEAResultNormCollection")
Returns a list of the names of the gene sets from a npGSEAResultNormCollection objects (1 for each set)
signature(object = "npGSEAResultBetaCollection")
Returns a list of the names of the gene sets from a npGSEAResultBetaCollection objects (1 for each set)
signature(object = "npGSEAResultChiSqCollection")
Returns a list of the names of the gene sets from a npGSEAResultChiSqCollection objects (1 for each set)

See Also

npGSEAResultNorm-class

Examples

Run this code
    set.seed(15)
    yFactor <- as.factor( c(rep("treated", 5), rep("control", 5)) )
    xData <- matrix(data=rnorm(length(letters)*10) ,nrow=length(letters), ncol=10)
    rownames(xData) <- letters
    geneSetABC15 <- GeneSet(geneIds=letters[1:15], setName="setABC15")
    res <- npGSEA(x = xData, y = yFactor, set = geneSetABC15)
    geneSetName (res)

Run the code above in your browser using DataLab