plotMA.CD(baySeq)
plotMA.CD()所属R语言包:baySeq
'MA'-plot for count data.
“MA图计数数据。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function creates an MA-plot from two sets of samples. For those data where the log-ratio is infinite (because in one set of sample data all observed counts are zero), we plot instead the log-values of the other group.
这个函数创建两套样品马的图。数比是无限的(因为在一组样本数据的所有观察到的数量是零),对于这些数据,我们绘制,而另一组的log值。
用法----------Usage----------
plotMA.CD(cD, samplesA, samplesB, normaliseData = TRUE, scale = NULL,
xlab = "A", ylab = "M", ...)
参数----------Arguments----------
参数:cD
A countData object.
一个countData对象。
参数:samplesA
Either a character vector, identifying sample set A by either replicate name or sample name, or a numerical vector giving the columns of data in the 'countData' object that forms sample set A. See Details.
无论是特征向量,确定样品名称或者复制或样品名称,或一个数值向量给'countData'对象,形成样本答:详细的数据列的一个设置。
参数:samplesB
Either a character vector, identifying sample set B by either replicate name or sample name, or a numerical vector giving the columns of data in the 'countData' object that forms sample set B. See Details.
无论是特征向量,确定复制名称或样品名称,或给'countData'对象,形成样本集B。详细的数据列的数值向量样本集B。
参数:normaliseData
Should the data be normalised by library size before computing log-ratios? Defaults to TRUE.
如果数据被归库的大小,计算log比前?默认为true。
参数:scale
If given, defines the scale on which the log-ratios will be plotted. Defaults to NULL, implying that the scale will be calculated by the function.
如果给出定义log比率将绘制的规模。默认为null,这意味着规模将由函数的计算。
参数:xlab
Label for the X-axis. Defaults to "A".
X轴的标签。默认为“A”。
参数:ylab
Label for the Y-axis. Defaults to "M".
Y轴的标签。默认为“M”。
参数:...
Any other parameters to be passed to the plot function.
任何其他参数将被传递给plot功能。
Details
详情----------Details----------
The samples sets can be identified either by a numeric vector which specifies the columns of data from the countData object 'cD', or by a character vector. If a character vector is used, the members of the character vector will first be searched for in the @replicates slot of the 'cD' object. Any members of the vector not found in the replicates slot, will be searched for in the column names of the @data slot of the 'cD' object. Different classes of vector can be used for 'samplesA' and 'samplesB', as shown in the example below.
通过数字矢量指定countData对象CD,或由一个字符向量数据列的,可识别的样本集。如果一个特征向量,特征向量的成员将首先被搜查@replicates“CD”的对象插槽。在复制插槽,将@dataCD对象的槽列名搜查没有发现任何成员的向量。不同类别的向量,可用于“samplesA和samplesB”,在下面的例子所示。
值----------Value----------
Plotting function.
绘图功能。
作者(S)----------Author(s)----------
Thomas J. Hardcastle
参见----------See Also----------
countData
countData
举例----------Examples----------
data(simData)
replicates <- c("simA", "simA", "simA", "simA", "simA", "simB", "simB", "simB", "simB", "simB")
groups <- list(NDE = c(1,1,1,1,1,1,1,1,1,1), DE = c(1,1,1,1,1,2,2,2,2,2))
CD <- new("countData", data = simData, replicates = replicates, groups = groups)
#estimate library sizes for countData object[估计countData对象库大小]
CD@libsizes <- getLibsizes(CD)
#MA-plot comparing replicate groups[主图比较的复制组]
plotMA.CD(CD, samplesA = "simA", samplesB = 6:10)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|