Skip to contents

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