Cluster 3.0 can also be run as a command line program. This may be useful if you want to run Cluster 3.0 on a remote server, and also allows automatic processing a large number of data files by running a batch script. Note, however, that the Python and Perl interfaces to the C Clustering Library may be better suited for this task, as they are more powerful than the command line program (see the manual for the C Clustering Library at http://bonsai.hgc.jp/~mdehoon/software/cluster/cluster.pdf).
The GUI version of Cluster 3.0 can be used as a command line program by applying the appropriate command line parameters. You can also compile Cluster 3.0 without GUI support (if you will be using it from the command line only) by downloading the source code from http://bonsai.hgc.jp/~mdehoon/software/cluster, and running 
configure --without-x 
make 
make install 
The executable is called cluster. To run this program, execute 
cluster [options] 
in which the options consist of the following command line parameters:
-f filenameFile loading
-lSpecifies to log-transform the data before clustering (default is no log-transform)
-cg a|mSpecifies whether to center each row (gene) in the data set: 
a: Subtract the mean of each row 
m: Subtract the median of each row 
(default is no centering)
-ngSpecifies to normalize each row (gene) in the data set (default is no normalization)
-ca a|mSpecifies whether to center each column (microarray) in the data set: 
a: Subtract the mean of each column 
m: Subtract the median of each column 
(default is no centering)
-naSpecifies to normalize each column (microarray) in the data set (default is no normalization)
-u jobnameAllows you to specify a different name for the output files (default is derived from the input file name)
-g [0..9]Specifies the distance measure for gene clustering. 0 means no gene clustering; for the values 1 through 9, see below (default: 0)
-e [0..9]Specifies the distance measure for microarray clustering. 0 means no microarray clustering; for the values 1 through 9, see below (default: 0)
-m [msca]Specifies which hierarchical clustering method to use: 
m: Pairwise complete- (maximum-) linkage (default) 
s: Pairwise single-linkage 
c: Pairwise centroid-linkage 
a: Pairwise average-linkage
-k numberSpecifies whether to run k-means clustering instead of hierarchical clustering, and the number of clusters k to use (default: 0, no k-means clustering)
-pgSpecifies to apply Principal Component Analysis to genes instead of clustering
-paSpecifies to apply Principal Component Analysis to arrays instead of clustering
-sSpecifies to calculate an SOM instead of hierarchical clustering
-x numberSpecifies the horizontal dimension of the SOM grid (default: 2)
-y numberSpecifies the vertical dimension of the SOM grid (default: 1)
-v, --versionDisplay version information
-h, --helpDisplay help information
For the command line options -g, -e, the following integers can be used to specify the distance measure:
0No clustering
1Uncentered correlation
2Pearson correlation
3Uncentered correlation, absolute value
4Pearson correlation, absolute value
5Spearman’s rank correlation
6Kendall’s τ
7Euclidean distance
8City-block distance
By default, no clustering is done, allowing you to use cluster for normalizing a data set only.