hgt: Calculate the hypergeometric tail

Description Usage Arguments Details Value References

View source: R/hgt.R

Description

Given N articles, B of which are annotated to a given term, the chance that .b of these articles are annotated in a test set of size .n is equal to the hypergeometric tail function.

Usage

1
hgt(.b, N, B, .n)

Arguments

.b

Number of annotations in target group

N

Total number of articles

B

Total number of annotations

.n

Number of articles in target group

Details

P value is computed as in referenced article (GOrilla). Briefly, the P value is the sum from .b to the minimum of .n and B of .n choose i plus N-.n choose B - i all divided by N choose B.

Value

P value of the hypergeometric distribution.

References

Eden, E., Navon, R., Steinfeld, I., Lipson, D., & Yakhini, Z. (2009). GOrilla: a tool for discovery and visualization of enriched GO terms in ranked gene lists. BMC Bioinformatics, 10(1), 1<e2><80><93>7. http://doi.org/10.1186/1471-2105-10-48


Chris1221/mineR documentation built on July 6, 2017, 6:32 a.m.