Perform a Hypergeometric, aka Fisher's Exact test, on a list of genes ordered by significance against a list of annotation genes
orderedHypergeometric(genelist, background, annotations)
character vector of gene names. List of differentially expressed genes being tested for enrichment
character vector of gene names. List of all genes being used as a statistical background
character vector of gene names. List of genes annotated to the term being tested.
a list with the items:
The lowest obtained p-value
The index of genelist
such that genelist[1:ind]
gives the lowest p-value
The hypergeometric test is run with increasingly large numbers of genes starting from the top, and the lowest p-value is returned