RtreemixData-class(Rtreemix)
RtreemixData-class()所属R语言包:Rtreemix
Class "RtreemixData"
类“RtreemixData”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This class is used to represent the results of genetic measurements of the occurence of subsets of a given set of genetic events in a group of patients. Each observation is a binary vector that indicates which events occured in a specific patient. The length of the vector equals the size of the set of genetic events that is taken into consideration.
这个类是用来表示一个给定的一组病人的遗传事件的发生亚群的遗传测量结果。每个观测值是一个二进制向量表示,事件发生在一个特定的病人。向量的长度等于考虑遗传事件的大小。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("RtreemixData", Sample, Patients, Events, Description, File). The RtreemixData class represents patterns of occurences of subsets of a given set of genetic events in a specific group of patients. The patterns are given as binary vectors with length equal to the size of the set of genetic events. In other words, it provides a representation of the dataset used for learning an mutagenetic trees mixture model.
创建对象可以通过检测的形式new("RtreemixData", Sample, Patients, Events, Description, File)。 RtreemixData类代表一个特定的患者组中的遗传事件给定的子集出现次数的模式。作为平等的一套遗传事件的大小与长度的二进制向量模式。换句话说,它提供了一个学习致突变的树木混合模型使用的数据的代表性。
The Sample is a binary matrix where each row corresponds to the pattern of genetic events observed in one of the given patients. Hence, the number of rows gives the number of patients, i.e. the size of the dataset. Each column corresponds to one of the genetic events. Missing measurement for the presence or absence of a certain genetic event in a given pattern is marked with -1. The initial null event (that initially occurs in all patients) is not present in the sample, i.e. the first component in each observation (which is always equal to 1) is left out. This is done for saving space and avoiding the process of checking for correctly specified samples.
Sample是一个二进制matrix每一行对应的模式,在一个给定的患者中观察到的遗传事件。因此,行数,给患者的人数,即该数据集的大小。每列对应的遗传事件之一。缺少的存在或在给定的模式有一定的遗传事件的情况下测量标有-1。最初的空事件(最初发生在所有患者)是样品中不存在的,即在每个观测的第一个组件(这是始终等于1)被排除在外。这样做是为了节省空间,避免正确指定的样品检测过程。
The Patients is a character vector that contains the IDs of the patients. The length of this vector must be equal to the number of rows in the Sample.
Patients是vector,包含病人的ID字符。这个向量的长度必须等于行Sample的数量。
The Events is a character vector that contains the labels of the genetic events taken into consideration. Its length equals one plus the number of columns in the Sample. This is because of the label of the null event. When the object of class RtreemixData is a parent of a randomly generated RtreemixModel object, the events specify the labels of the genetic events present in the random model, although the Sample slot is an empty matrix. This is because the random mixture models are not estimated from a given dataset, but generated randomly for some set of genetic events.
“Events是一个字符vector,包含考虑遗传事件的标签。它的长度等于加上列Sample的数量。这是因为空事件的标签。当RtreemixData类的对象是一个随机生成的RtreemixModel对象的父,指定事件的随机模型中存在的遗传事件的标签,虽然是空的Sample插槽matrix。这是因为随机混合模型估计从一个给定的数据集,但随机产生一些遗传事件。
The Description is a character giving a short description for the created object.
“Description是一个字符,给人一种创建对象的简短说明。
The File specifies the path to a text file with a specific format which contains the infromation needed to create an RtreemixData object (the patient IDs, the names of the events, the matrix with the observations).
File指定到一个特定的格式,其中包含需要创建一个RtreemixData对象(病人标识的事件,与观测矩阵的名称)的infromation文本文件的路径。
插槽----------Slots----------
Sample: Object of class "matrix".
Sample类"matrix"的对象。
Patients: Object of class "character". The
Patients类"character"的对象。 “
Events: Object of class "character". The length of Events must be identical to the number of columns in
Events类"character"的对象。的Events长度必须是相同的列数
Description: Object of class "character".
Description类"character"的对象。
方法----------Methods----------
Description signature(object = "RtreemixData"): A
说明signature(object = "RtreemixData"):
Description<- signature(object = "RtreemixData"): A
< - signature(object = "RtreemixData"):
Events signature(object = "RtreemixData"): A
事件signature(object = "RtreemixData")的:
Events<- signature(object = "RtreemixData"): A method for replacing the names of the genetic events in the data object. It checks to be sure the values have the right length. As a parent data of a random RtreemixModel object the suitable labels of events present in the model components can be specified although the
活动< - signature(object = "RtreemixData"):一个数据对象中的遗传事件的名称的更换方法。它检查,以确保值有正确的长度。作为父数据随机RtreemixModel对象模型组件中的事件,合适的标签,可以指定虽然
Patients signature(object = "RtreemixData"): A
患者signature(object = "RtreemixData"):
Patients<- signature(object = "RtreemixData"): A method for replacing the IDs of the patients in the data object. It checks
患者< - signature(object = "RtreemixData"):一个替换的患者中的数据对象的ID的方法。它检查
Sample signature(object = "RtreemixData"): A
样品signature(object = "RtreemixData"):
eventsNum signature(object = "RtreemixData"): A
eventsNumsignature(object = "RtreemixData"):
sampleSize signature(object = "RtreemixData"): A method for obtaining the size of the sample (the number of
中的采样signature(object = "RtreemixData"):取得的样本大小的方法(数
作者(S)----------Author(s)----------
Jasmina Bogojeska
参见----------See Also----------
RtreemixGPS-class, RtreemixStats-class, RtreemixModel-class, fit-methods, bootstrap-methods
RtreemixGPS-class,RtreemixStats-class,RtreemixModel-class,fit-methods,bootstrap-methods
举例----------Examples----------
## Create an RtreemixData object from a file given in the examples directory of the package.[#创建一个包的examples目录中的文件RtreemixData对象。]
data1 <- new("RtreemixData", File = paste(system.file(package = "Rtreemix"), "/examples/treemix.pat", sep = ""))
show(data1) ## show the RtreemixData object[#显示RtreemixData对象。]
## Create an RtreemixData object from a randomly generated RtreemixModel object.[#创建一个RtreemixData对象从随机产生RtreemixModel对象。]
rand.mod <- generate(K = 3, no.events = 9, noise.tree = TRUE, prob = c(0.2, 0.8))
data2 <- sim(model = rand.mod, no.draws = 300)
show(data2)
## Create an RtreemixData object from a given binary matrix.[#创建一个给定的二进制矩阵RtreemixData对象。]
bin.mat <- cbind(c(1, 0, 0, 1, 1), c(0, 1, 0, 0, 1), c(1, 1, 0, 1, 0))
data3 <- new("RtreemixData", Sample = bin.mat, Events = c("0", "1", "2",
"3"))
show(data3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|