modelMatrix(limma)
modelMatrix()所属R语言包:limma
Construct Design Matrix
构造设计矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Construct design matrix from RNA target information for a two colour microarray experiment.
构建RNA为两种颜色微阵列实验的目标信息,设计矩阵。
用法----------Usage----------
modelMatrix(targets, parameters, ref, verbose=TRUE)
uniqueTargets(targets)
参数----------Arguments----------
参数:targets
matrix or data.frame with columns Cy3 and Cy5 specifying which RNA was hybridized to each array
与列矩阵或数据框Cy3和Cy5指定RNA杂交到每个阵列
参数:parameters
matrix specifying contrasts between RNA samples which should correspond to regression coefficients. Row names should correspond to unique RNA sample names found in targets.
矩阵指定RNA样品应符合回归系数之间的对比。行名称相对应,以独特的RNA样品名称targets。
参数:ref
character string giving name of one of the RNA sources to be treated as reference. Exactly one argument of parameters or ref should be specified.
字符串名称作为参考处理的RNA来源之一。恰好一个parameters或ref参数应符合规定。
参数:verbose
logical, if TRUE then unique names found in targets will be printed to standard output
逻辑,如果TRUE然后targets发现的唯一的名称将被打印到标准输出
Details
详情----------Details----------
This function computes a design matrix for input to lmFit when analysing two-color microarray experiments in terms of log-ratios.
此函数计算为设计矩阵输入lmFit的log比率进行分析时,两色的微阵列实验。
If the argument ref is used, then the experiment is treated as a one-way layout and the coefficients measure expression changes relative to the RNA source specified by ref. The RNA source ref is often a common reference which appears on every array or is a control sample to which all the others are compared. There is no restriction however. One can choose ref to be any of the RNA sources appearing the Cy3 or Cy5 columns of targets.
如果参数ref使用,然后实验视为一种单向的布局和系数的措施表达的变化相对ref指定的RNA源。 RNA的来源ref往往是每一个数组或一个共同的参考,这似乎是一个控制样品,所有的人都比较。但是没有任何限制。一个可以选择ref出现Cy3或Cy5targets列的RNA来源。
If the parameters argument is set, then the columns of this matrix specify the comparisons between the RNA sources which are of interest. This matrix must be of size n by (n-1), where n is the number of unique RNA sources found in Cy3 and Cy5, and must have row names which correspond to the RNA sources.
如果parameters参数被设置,那么这个矩阵的列指定RNA的来源是利益之间的比较。必须是这个矩阵的大小为n(n-1个),其中n是独特的RNACy3和Cy5的来源,并必须有对应的RNA来源的行名。
值----------Value----------
modelMatrix produces a numeric design matrix with row names as in targets and column names as in parameters.
modelMatrix生产targets和parameters列名的数字设计矩阵与行名。
uniqueTargets produces a character vector of unique target names from the columns Cy3 and Cy5 of targets.
uniqueTargets产生一个独特的目标名称列Cy3和Cy5targets特征向量。
作者(S)----------Author(s)----------
Gordon Smyth
参见----------See Also----------
model.matrix in the stats package.
model.matrix在统计包。
An overview of linear model functions in limma is given by 06.LinearModels.
线性模型功能概述limma由06.LinearModels给出。
举例----------Examples----------
targets <- cbind(Cy3=c("Ref","Control","Ref","Treatment"),Cy5=c("Control","Ref","Treatment","Ref"))
rownames(targets) <- paste("Array",1:4)
parameters <- cbind(C=c(-1,1,0),T=c(-1,0,1))
rownames(parameters) <- c("Ref","Control","Treatment")
modelMatrix(targets, parameters)
modelMatrix(targets, ref="Ref")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|