Learn R Programming

ActivePathways (version 1.0.1)

orderedHypergeometric: Ordered Hypergeometric Test

Description

Perform a Hypergeometric, aka Fisher's Exact test, on a list of genes ordered by significance against a list of annotation genes

Usage

orderedHypergeometric(genelist, background, annotations)

Arguments

genelist

character vector of gene names. List of differentially expressed genes being tested for enrichment

background

character vector of gene names. List of all genes being used as a statistical background

annotations

character vector of gene names. List of genes annotated to the term being tested.

Value

a list with the items:

p.val

The lowest obtained p-value

ind

The index of genelist such that genelist[1:ind] gives the lowest p-value

Details

The hypergeometric test is run with increasingly large numbers of genes starting from the top, and the lowest p-value is returned