Download User's Guide - solutionmetrics.com.au
Transcript
Examples from the Command Line
Figure 8.12: Imported data from Figure 3a of Alizadeh et al. (2000). Note that this
is not the actual raw data, but rather data as summarized by Cluster (Eisen et al.,
1998) and prepared for viewing in TreeView (Eisen et al., 1998). We treat it as raw
data to show the cluster methods in S-PLUS, but the resulting output should not be
directly compared with fig3a of Alizadeh et al. (2000).
We then standardize this data frame, calculate the distances between
points in the column and row spaces, and fit the hierarchical cluster
models. Note that since the data are normalized with mean zero and
variance one prior to calling dist, the resulting matrix is equivalent to
a dissimilarity matrix produced using cor.
> module(ArrayAnalyzer)
> fileName <- file.path(getenv("SHOME"),
"module","ArrayAnalyzer","examples","figure3a.cdt")
> mat3a <- importData(fileName, rowNamesCol=1,
colNameRow=1, drop=c(2:4), startRow=3, type=”ASCII”)
> stand.norm <- function(x)
{
(x- mean(x, na.rm=T))/
sqrt(var(x,na.method="available"))
}
> aliz.cmat <- apply(mat3a,1,stand.norm)
# cluster rows
323