Calculate a Chi-squared Statistic and P-Value for Items in a Set

Description

A helper function to calculate the chi-squared statistic corresponding to an observed set of p-values.

Usage

1
glossiMarginal(pval, set)

Arguments

pval

A vector of p-values of length equal to the number of geneIds in the GeneSetCollection object.

set

An element of a GeneSetCollection object.

Details

This function calculates a chi-squared statistic from a set of pvalues.

Value

An object of type GLOSSIResult.

Author(s)

Jason Hackney, Jessica Larson

Examples

1
2
3
4
5
    set.seed(30)
    pvals <- runif(100)
    names(pvals) <- paste0("rs", 1:100)
    snpGS5 <- GeneSet(geneIds=names(pvals)[1:5], setName="set5")
    res <- glossiMarginal (pvals, snpGS5)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.