r2xcluster {ctc}R Documentation

Write to Xcluster file format

Description

Converting data to Xcluster format

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 cluster file)
description a logical value indicating whether we use the second column as description (DESCRIPTION column for cluster file)

Note

Xcluster is a C program made by Gavin Sherlock that performs hierarchical clustering, K-means and SOM.

Xcluster is copyrighted. To get or have information about Xcluster: http://genome-www.stanford.edu/~sherlock/cluster.html

Author(s)

Antoine Lucas, http://genopole.toulouse.inra.fr/~lucas/R

See Also

xcluster, xcluster2r, hclust

Examples

#    Create data
.Random.seed <- c(1,  416884367 ,1051235439)
m <- matrix(rep(1,3*24),ncol=3)  
m[9:16,3] <- 3 ; m[17:24,] <- 3    #create 3 groups
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:

#system('Xcluster -f xcluster.txt -e 0 -p 0 -s 0 -l 0')
#h <- xcluster2r('xcluster.gtr')
#library(mva)
#plot(h,hang=-1)

[Package ctc version 1.2.7 Index]