Models(Rtreemix)
Models()所属R语言包:Rtreemix
Functions for comparing the tree topologies of two mutagenetic trees mixture models
功能比较树的拓扑结构两个致突变的树木混合模型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions implement a similarity measure for comparing the topologies of the trees of two mixture models mixture1 and mixture2. comp.models chaaracterizes the similarity of the models based on sum of the number of different edges of matched tree components (similarity pairs). comp.models.levels quantifies the similarity of two mixture models by adding to the edge ddifference of each similarity pair in the previously described sum the L1 distance of the level vectors of the trees comprising the pair. A level vector can be associated to each tree component and denotes the depth of each of the genetic events in the tree. It is necessary that the two models have the same number of tree components build on the same number of genetic events. It is assumed that the mixtures have at least two tree components.
这些功能的实现比较两个混合模型mixture1和mixture2树的拓扑结构的相似性措施。 comp.modelschaaracterizes相似的模型,根据不同的边缘匹配树组件(相似对)的数目的总和。 comp.models.levels量化两个混合模型的相似性,通过增加在先前所描述的总和相似对每个边缘ddifference包括对树木的水平向量的L1距离。 A级矢量可以关联到每个树组件,并表示树中的每一个遗传事件的深度。这是必要的,这两个型号有相同数量的遗传事件相同数量的构建树组件。这是假设的混合物,至少有两个树组件。
用法----------Usage----------
comp.models(mixture1, mixture2)
comp.models.levels(mixture1, mixture2)
参数----------Arguments----------
参数:mixture1
An RtreemixModel object specifying the first component for the similarity calculation.
RtreemixModel对象指定的相似度计算的第一个组件。
参数:mixture2
An RtreemixModel object specifying the second component for the similarity calculation. The number of tree components equals the one of mixture1.
RtreemixModel对象指定的相似度计算的第二个组成部分。树组件的数量等于一个mixture1。
Details
详情----------Details----------
The value returned by the function comp.models is between 0 (no similarity) and 1 (identical models).
函数返回的值comp.models0(不相似)和1(相同型号)之间。
值----------Value----------
The functions return a numeric value that quantifies the similarity of the tree topologies of two mixture models.
函数返回一个数值量化树的相似性,两者的混合模型的拓扑结构。
作者(S)----------Author(s)----------
Jasmina Bogojeska
参见----------See Also----------
RtreemixModel-class, comp.trees, fit-methods, stability.sim
RtreemixModel-class,comp.trees,fit-methods,stability.sim
举例----------Examples----------
## Generate two random RtreemixModel objects each with 3 components.[#生成随机RtreemixModel对象各有3个组成部分。]
rand.mod1 <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob =
c(0.2, 0.8))
rand.mod2 <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob =
c(0.2, 0.8))
## Compare the topologies of the tree components of the two randomly[#比较两个随机树组件的拓扑]
## generated models[#生成的模型]
comp.models(rand.mod1, rand.mod2)
comp.models.levels(rand.mod1, rand.mod2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|