View source: R/statistical_tests.r
orderedHypergeometric | R Documentation |
Perform a series of hypergeometric tests (a.k.a. Fisher's Exact tests), on a ranked list of genes ordered by significance against a list of annotation genes. The hypergeometric tests are executed with increasingly larger numbers of genes representing the top genes in order of decreasing scores. The lowest p-value of the series is returned as the optimal enriched intersection of the ranked list of genes and the biological term (pathway).
orderedHypergeometric(genelist, background, annotations)
genelist |
Character vector of gene names, assumed to be ordered by decreasing importance. For example, the genes could be ranked by decreasing significance of differential expression. |
background |
Character vector of gene names. List of all genes used as a statistical background (i.e., the universe). |
annotations |
Character vector of gene names. A gene set representing a functional term, process or biological pathway. |
a list with the items:
The lowest obtained p-value
The index of genelist
such that genelist[1:ind]
gives the lowest p-value
orderedHypergeometric(c('HERC2', 'SP100'), c('PHC2', 'BLM', 'XPC', 'SMC3', 'HERC2', 'SP100'),
c('HERC2', 'PHC2', 'BLM'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.