calcHyperPval: Compute Hypergeometric PValue

View source: R/calcHyperPval.R

calcHyperPvalR Documentation

Compute Hypergeometric PValue

Description

Computes a hypergeometric enrichment test of geneset 'geneSetToTest' in a given module of genes 'moduleGenes' given a total background set of genes 'backgroundGenes'. Returns a P-Value of the enrichment test.

Usage

calcHyperPval(geneSetToTest, moduleGenes, backgroundGenes)

Arguments

geneSetToTest

Required. A character vector of gene IDs to test for an enrichment in 'moduleGenes'.

moduleGenes

Required. A character vector of gene IDs to test for being enriched with 'geneSetToTest'.

backgroundGenes

Required. A character vector of gene IDs to serves as the background gene set.

Value

numerical PValue


Sage-Bionetworks/metanetwork documentation built on April 27, 2022, 7:42 a.m.