mgsa-methods(mgsa)
mgsa-methods()所属R语言包:mgsa
Performs an MGSA analysis
执行MGSA分析
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Estimate marginal posterior of the MGSA problem with an MCMC sampling algorithm.
估计的边际后的MCMC抽样算法MGSA问题。
用法----------Usage----------
o, sets, population=NULL,
alpha=seq(0.01,0.3, length.out=10), beta=seq(0.1,0.8, length.out=10),
p=seq( min(0.1, 1/length(sets)), min(0.3, 20/length(sets)), length.out=10),
steps=1e6, restarts=5, threads=0
参数----------Arguments----------
参数:o
The observations. It can be a numeric, integer, character or logical. See details.
的意见。它可以是一个numeric,integer,character或logical。查看详情。
参数:sets
The sets. It can be an MgsaSets or a list. In this case, each list entry is a vector of type numeric, integer, character. See details.
套。它可以是一个MgsaSets或list。在这种情况下,每个列表项的类型numeric,integer,character是一个向量。查看详情。
参数:population
The total population. Optional. A numeric, integer or character vector. Default to NULL. See details.
总人口。可选的。一个numeric,integer或character向量。默认NULL。查看详情。
参数:alpha
Grid of values for the parameter alpha. Values represent probabilities of false-positive events and hence must be in [0,1]. numeric.
电网参数α的值。值代表假阳性事件的概率,因此必须在[0,1]。 numeric。
参数:beta
Grid of values for the parameter beta. Values represent probabilities of false-negative events and hence must be in [0,1]. numeric.
电网参数测试值。值代表虚假负面事件的概率,因此必须在[0,1]。 numeric。
参数:p
Grid of values for the parameter p. Values represent probabilities of term activity and therefore must be in [0,1]. numeric.
电网参数p的值。值代表术语活动的可能性,因此必须在[0,1]。 numeric。
参数:steps
The number of steps of each run of the MCMC sampler. integer of length 1. A recommended value is 1e6 or greater.
的MCMC采样器运行的每一个步骤。 integer长度为1。建议值是1E6或更大。
参数:restarts
The number of different runs of the MCMC sampler. integer of length 1. Must be greater or equal to 1. A recommended value is 5 or greater.
不同运行的MCMC采样的数量。 integer长度为1。必须大于或等于1。建议值是大于或等于5。
参数:threads
The number of threads that should be used for concurrent restarts. A value of 0 means to use all available cores. Default to 0.
并发重新启动,应使用的线程数。值为0意味着使用所有可用的内核。默认为0。
Details
详情----------Details----------
mgsa-methods: The function can handle items (such as genes) encoded as character or integer. For convenience numeric items can also be provided but these values should essentially be integers. The type of items in the observations o, the sets and in the optional population should be consistent. In the case of character items, o and population should be of type character and sets can either be an MgsaSets or a list of character vectors. In the case of integer items, o should be of type integer, numeric (but essentially with integer values), or logical and entries in sets as well as the population should be integer. When o is logical, it is first coerced to integer with a call on which. Observations outside the population are not taken into account. If population is NULL, it is defined as the union of all sets.
mgsa-methods:该功能可以处理的物品(如基因)编码character或integer。 numeric项,为方便起见,也可以被提供,但这些值基本上应该是整数。观测项目的类型o,sets和可选的population应该是一致的。在character项目,o和population类型character和sets可以是一个MgsaSets或listcharacter向量。在integer项的情况下,o应该是类型integer的,numeric(但基本上整数值),或logical“条目< x>以及sets的应该是population。当integer是o,它第一次被裹挟上logical呼叫整数。外观测which不考虑“。如果population是population,它被定义为联盟所有套。
The default grid value for p is such that between 1 and 20 sets are active in expectation. The lower limit is constrained to be lower than 0\.1 and the upper limit lower than 0\.3 independently of the total number of sets to make sure that complex solutions are penalized. Marginal posteriors of activity of each set are estimated using an MCMC sampler as described in Bauer et al., 2010. Because convergence of an MCM sampler is difficult to assess, it is recommended to run it several times (using restarts). If variations between runs are too large (see MgsaResults), the number of steps (steps) of each MCMC run should be increased.
默认网格的p值是介于1和20套等,积极期望。被限制在低于0 \ .1下限,上限低于0 \ 0.3独立的总台数,以确保复杂的解决方案受到处罚。每套活动的边际后验估计,鲍尔等人,2010使用的MCMC采样。 MCM的采样器的收敛是因为难以评估,建议运行几次(使用restarts)。如果运行之间的差异过大(见MgsaResults)的MCMC运行的每个(steps),步数应增加。
值----------Value----------
mgsa-methods: An MgsaMcmcResults object.
mgsa-methods:MgsaMcmcResults对象。
参考文献----------References----------
<h3>See Also</h3>
举例----------Examples----------
mgsa(c("A", "B"), list(set1 = LETTERS[1:3], set2 = LETTERS[2:4]))
## same case with integer representation of the items and logical observation[#相同的情况下,用整数表示的项目和逻辑观察]
mgsa(c(TRUE,TRUE,FALSE,FALSE), list(set1 = 1:3, set2 = 2:4))
## a small example with gene ontology sets and plot [#与基因本体论集和图的小例子]
data(example)
fit = mgsa(example_o, example_go)
## Not run: [#无法运行:]
plot(fit)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|