找回密码
 注册
查看: 1152|回复: 0

R语言 affy包 ppsetApply()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 11:29:43 | 显示全部楼层 |阅读模式
ppsetApply(affy)
ppsetApply()所属R语言包:affy

                                         Apply a function over the ProbeSets in an AffyBatch
                                         应用超过ProbeSets一个AffyBatch的函数

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Apply a function over the ProbeSets in an AffyBatch
应用超过ProbeSets一个AffyBatch的函数


用法----------Usage----------


ppsetApply(abatch, FUN, genenames = NULL, ...)

ppset.ttest(ppset, covariate, pmcorrect.fun = pmcorrect.pmonly, ...)



参数----------Arguments----------

参数:abatch
an object inheriting from AffyBatch.
从AffyBatch继承对象。


参数:ppset
an object of class ProbeSet.
对象类ProbeSet。


参数:covariate
the name a covariate in the slot phenoData.
插槽phenoData协变量的名称。


参数:pmcorrect.fun
a function to correct PM intensities.
功能纠正下午强度。


参数:FUN
a function working on a ProbeSet.
函数ProbeSet。


参数:genenames
a list of Affymetrix probesets ids to work with. All probe set ids used when NULL.
Affymetrix公司的列表probesets IDS工作。所有探针组ID时使用NULL。


参数:...
optional parameters to the function FUN.
可选参数的功能FUN。


值----------Value----------

Returns a list of objects, or values, as returned by the function FUN for each ProbeSet it processes.
返回list的对象,或值,FUN每ProbeSet进程函数返回。


作者(S)----------Author(s)----------


Laurent Gautier <laurent@cbs.dtu.dk>



参见----------See Also----------

ProbeSet-class
ProbeSet-class


举例----------Examples----------


ppset.ttest <- function(ppset, covariate, pmcorrect.fun = pmcorrect.pmonly, ...) {
  probes <- do.call("pmcorrect.fun", list(ppset))
  my.ttest <- function(x) {
    y <- split(x, get(covariate))
    t.test(y[[1]], y[[2]])$p.value
  }
  r <- apply(probes, 1, my.ttest)
  return(r)
}
##this takes a long time - and rowttests is a good alternative[这需要很长一段时间 -  rowttests是一个很好的选择]
## eg: rt = rowttests(exprs(Dilution), Dilution$liver)[#例如:RT = rowttests(exprs(稀释),稀释美元肝脏)]
## Not run: [#无法运行:]
  data(Dilution)
  all.ttest <- ppsetApply(Dilution, ppset.ttest, covariate="liver")

## End(Not run)[#结束(不运行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-2 20:45 , Processed in 0.022828 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表