Learn R Programming

npGSEA (version 1.8.0)

pRight-methods: ~~ Methods for Function pRight ~~

Description

This function returns the right-sided p-value for the corresponding GeneSet or a list of p-values for a GeneSetCollection. This method is only applicable for the normal and beta approximation methods.

Usage

pRight(object)

Arguments

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

Methods

signature(object = "npGSEAResultNorm")
Returns a right-sided p-value for a npGSEAResultNorm object
signature(object = "npGSEAResultBeta")
Returns a right-sided p-value for a npGSEAResultBeta object
signature(object = "npGSEAResultNormCollection")
Returns a list of right-sided p-values for a npGSEAResultNormCollection objects (1 for each set)
signature(object = "npGSEAResultBetaCollection")
Returns a list of right-sided p-values for a npGSEAResultBetaCollection objects (1 for each set)

See Also

npGSEAResultNorm-class, pLeft

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)
    pRight (res)

Run the code above in your browser using DataLab