hypergeometricTestVector: Hypergeomatric Test of Terms and Genes...

Usage Arguments Details Value See Also

View source: R/hypergeometricTestVector.r

Usage

1
2
hypergeometricTestVector(drawn.ball, urns, total.ball.num,
  adj.p.method = "BH")

Arguments

drawn.ball

vector of items to be tested, like drawn balls.

urns

lists of items contained in different sets, like different urns contains balls.

total.ball.num

the background number of items.

adj.p.method

adjusted p value methods in p.adjust, including c("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none"), default to be "BH".

Details

This function is used to do many hypergeometric tests, and calculate both the p value and adjusted p value.

Value

the returned result will be a data.frame, containing numbers of drawn, background number, p value and adjusted p value, with the same row number as the length of input urns. The order of results will be the same with urns, and the names will also be the same if has.

See Also

phyper p.adjust


wolfsonliu/enrich documentation built on May 4, 2019, 9:47 a.m.