r2xcluster(ctc)
r2xcluster()所属R语言包:ctc
Write to Xcluster file format
写Xcluster文件格式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converting data to Xcluster format
数据转换Xcluster格式
用法----------Usage----------
r2xcluster(data,labels=FALSE,description=FALSE,file="xcluster.txt")
参数----------Arguments----------
参数:file
the path of the file
该文件的路径
参数:data
a matrix (or data frame) which provides the data to put into the file
矩阵(或数据框)提供的数据放到文件
参数:labels
a logical value indicating whether we use the frist column as labels (NAME column for xcluster file)
一个逻辑值,表明我们是否使用标签的第一列(xcluster文件名称列)
参数:description
a logical value indicating whether we use the second column as description (DESCRIPTION column for cluster file)
一个逻辑值,指示是否使用(聚类文件说明列)作为第二列描述
Details
详情----------Details----------
Software Xcluster, made by G. Sherlock needs formatted input data like:
Xcluster软件,由G.福尔摩斯需要格式化的输入数据,如:
注意----------Note----------
Xcluster is a C program made by Gavin Sherlock that performs hierarchical clustering, K-means and SOM.
xcluster是一个C程序由Gavin福尔摩斯进行分层聚类,K-手段和SOM。
Xcluster is copyrighted. To get or have information about Xcluster: http://genome-www.stanford.edu/~sherlock/cluster.html
xcluster的版权。为了获得或拥有的信息关于Xcluster:http://genome-www.stanford.edu/~福尔摩斯/ cluster.html的
作者(S)----------Author(s)----------
Antoine Lucas, <a href="http://antoinelucas.free.fr/ctc">http://antoinelucas.free.fr/ctc</a>
参考文献----------References----------
for Huge Clustering, R News, 2006, vol 6, issue 5 pages 58-60.
参见----------See Also----------
xcluster, xcluster2r, hclust, hcluster
xcluster,xcluster2r,hclust,hcluster
举例----------Examples----------
## Create data[#创建数据]
set.seed(1)
m <- matrix(rep(1,3*24),ncol=3)
m[9:16,3] <- 3 ; m[17:24,] <- 3 #create 3 groups[创建3组]
m <- m+rnorm(24*3,0,0.5) #add noise[添加噪声]
m <- floor(10*m)/10 #just one digits[只是一个数字]
r2xcluster(m)
## And once you have Xcluster program:[#一旦你有Xcluster方案:]
## Not run: [#无法运行:]
system('Xcluster -f xcluster.txt -e 0 -p 0 -s 0 -l 0')
h <- xcluster2r('xcluster.gtr')
plot(h,hang=-1)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|