m2v(OLIN)
m2v()所属R语言包:OLIN
Converts matrix to vector based on spot layout
根据现场布局转换矩阵向量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function converts a matrix based on the spatial layout of spots to a vector. Optionally,
此功能转换矩阵的基础上,向量点的空间布局。 (可选)
用法----------Usage----------
m2v(M,Ngc,Ngr,Nsc,Nsr,visu=FALSE,color.lim=c(-1,1),xlab="Columns",ylab="Rows",...)
参数----------Arguments----------
参数:M
Matrix of real values
实际值的矩阵
参数:Ngc
number of columns for the grid matrix
网格矩阵的列数
参数:Ngr
number of rows for the grid matrix
网格矩阵的行数
参数:Nsc
number of columns for the spot matrix
点矩阵的列数
参数:Nsr
number of rows for the spot matrix
点矩阵的行数
参数:visu
If TRUE, MXY plot is generated.
如果是TRUE,MXY图产生。
参数:color.lim
limits of colour range for 2D-plot
2D图的色彩范围的限制
参数:xlab
label of x -axis of 2D-plot
二维图x轴的标签
参数:ylab
label of y-axis of 2D-plot
2D图Y轴的标签
参数:...
Further optional parameters for the image function generating the MXY plot
image功能的进一步可选参数生成MXY图
Details
详情----------Details----------
The function m2v rearranges the values of a matrix M corresponding to the intensity values on the array to a vector V. The matrix M may have been generated by e.g. v2m. The order of values in V follows the convention of marrayRaw objects. In fact, the transformation of m2v is the reverse of v2m (assuming the arguments are kept the same.) Note that these functions assume a specific mapping between the data points and the location of spot (i.e. the same mapping rule that is used for marrayRaw/marrayNorm objects.) The validity of the mappings should be carefully checked (see also the documentation of the marray package.) The option for spatial visualisation is rather restricted to logged fold-changes as the corresponding colour range is centred around zero and follows the conventional colouring (green for negative, red for positive fold-changes). The MXY plot produced by m2v does not include a colour-bar. To have a colour included, mxy.plot can be used.
功能m2v重新排列值矩阵M相应的磁盘阵列上的强度值矢量V。矩阵M可能已经产生例如v2m。的值V的顺序如下公约marrayRaw对象。事实上,转型是逆向m2vv2m(假设参数均保持不变。)请注意,这些函数假设之间的数据点与点的位置(即特定的映射相同的映射规则为用于marrayRaw / marrayNorm对象)映射的有效性应仔细检查(另见文件的marray包。)空间可视化的选项,而相应的颜色来限制记录倍的变化范围是围绕着零和遵循传统的着色(绿色为负,积极折变红色)。 MXY图m2v不包括彩条。包括有颜色,mxy.plot可以使用。
值----------Value----------
A vector V of length ((Ngc*Nsc)*(Ngr*Nsr)) is produced. The values of V represents the spatial
一个向量V长度((Ngc*Nsc)*(Ngr*Nsr))产生。 V值代表的空间
作者(S)----------Author(s)----------
Matthias E. Futschik (<a href="http://itb.biologie.hu-berlin.de/~futschik">http://itb.biologie.hu-berlin.de/~futschik</a>)
参见----------See Also----------
v2m, mxy.plot
v2m,mxy.plot
举例----------Examples----------
# LOADING DATA NOT-NORMALISED[加载数据没有,正规化]
data(sw)
# CONVERSION FROM VECTOR TO MATRIX[从向量矩阵转换]
M <- v2m(maM(sw)[,1],Ngc=maNgc(sw),Ngr=maNgr(sw),Nsc=maNsc(sw),Nsr=maNsr(sw),visu=TRUE)
# BACK-CONVERSION FROM MATRIX TO VECTOR[后从矩阵到矢量的转换]
V <- m2v(M,Ngc=maNgc(sw),Ngr=maNgr(sw),Nsc=maNsc(sw),Nsr=maNsr(sw),visu=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|