aggregatePvals(HTSanalyzeR)
aggregatePvals()所属R语言包:HTSanalyzeR
Aggregate p-values from gene set over-representation tests.
从基因的聚合p值设置过的代表性测试。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function takes as input a matrix of p-values for example obtained from a GSEA on multiple phenotypes, with a row for each gene set and a column for each phenotype and aggregates the p-values by row (i.e. one aggregated p-value for each gene set) according to Fisher or Stouffer's methods.
此功能作为输入的P-值的矩阵从GSEA多个表型获得一个例子,每个基因组和一列,为每个表型和p值总量的逐行(即一个聚合的P-值每个基因组)根据费舍尔或斯托弗的方法。
用法----------Usage----------
aggregatePvals(pvalMatrix, method="fishers", pAdjustMethod="BH",
order=TRUE)
参数----------Arguments----------
参数:pvalMatrix
a numeric matrix of p-values, with rows named according to the gene set (rows correspond to gene sets, and columns to multiple p-values to be aggregated for that gene set)
p值的数值矩阵,根据基因组(行对应的基因套,列多个聚合,基因组的p值)命名的行
参数:method
a single character value of "stouffers" or "fishers"
一个的“stouffers”或“渔民”的单一的字符值
参数:pAdjustMethod
a single character value specifying the p-value adjustment method to be used (see 'p.adjust' for details)
一个单一的字符值,指定要使用(详见“p.adjust”P-值调整方法)
参数:order
a single logical value: TRUE or FALSE. If it is TRUE, the results table will be ordered according to the aggregated p-values.
一个单一的逻辑值:TRUE或FALSE。如果这是真的,结果表将被勒令根据汇总的p值。
Details
详情----------Details----------
The Fisher method combines the p-values into an aggregated chi-squared statistic equal to -2*sum(log(Pk)) were we have k=1,..,K pvalues independently distributed as uniform on the unit interval under the null hypothesis. The resulting p-values are calculated by comparing this chi-squared statistic to a chi-squared distribution with 2K degrees of freedom. The Stouffer method computes a z-statistics assuming that the sum of the quantiles (from a standard normal distribution) corresponding to the p-values are distributed as N(0,K).
费希尔方法结合成一条聚合的卡方统计等于-2 *总和(log(PK))P-值,我们有k = 1,...,钾pvalues独立单位区间上的均匀分布下的空假说。导致的p值计算,通过比较此卡方统计与自由的2K度的卡方分布。该的斯托弗方法计算的Z-统计假设,分布为N(0,K),p值对应的位数(从标准正态分布)的总和。
值----------Value----------
a matrix with a row for each gene set and two columns: "Aggregated.p.value" and "Adjusted.aggregated.p.value"
与每个基因组的行和两列的矩阵:的“Aggregated.p.value”和“Adjusted.aggregated.p.value”
作者(S)----------Author(s)----------
Jack Rose and Camille Terfve
举例----------Examples----------
p1 <- runif(100, min=0, max=1)
p2 <- runif(100, min=0, max=1)
names(p1) <- as.character(sample(x=seq(from=1, to=100, by=1), size=100,
replace=FALSE))
pmatrix <- cbind(p1, p2)
rownames(pmatrix) <- names(p1)
aggP <- aggregatePvals(pvalMatrix=pmatrix, method="stouffers")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|