clustergram object - Object containing hierarchical clustering analysis data

Description

A clustergram object contains hierarchical clustering analysis data that you can view in a heat map and dendrograms.

You create a clustergram object using the object constructor function clustergram. You can view a graphical representation of the clustergram object in a heat map and dendrograms using the view method.

Method Summary

Following are methods of a clustergram object:

get (clustergram)Retrieve information about clustergram object
plot (clustergram)Render clustergram heat map and dendrograms for clustergram object
set (clustergram)Set property of clustergram object
view (clustergram)View clustergram heat map and dendrograms for clustergram object

Property Summary

Properties of a Clustergram Object

PropertyDescription
RowLabelsVector of numbers or cell array of text strings to label the rows in the dendrogram and heat map. Default is a vector of values 1 through M, where M is the number of rows in Data, the matrix of data used by the clustergram function to create the clustergram object.
ColumnLabelsVector of numbers or cell array of text strings to label the columns in the dendrogram and heat map. Default is a vector of values 1 through M, where M is the number of columns in Data, the matrix of data used by the clustergram function to create the clustergram object.
RowGroupNamesA cell array of text strings containing the names of the row groups exported to a clustergram object created using the Export Group to Workspace command in the Clustergram window.
RowNodeNamesA cell array of text strings containing the names of the row nodes exported to a clustergram object created using the Export Group to Workspace command in the Clustergram window.
ColumnGroupNamesA cell array of text strings containing the names of the column groups exported to a clustergram object created using the Export Group to Workspace command in the Clustergram window.
ColumnNodeNamesA cell array of text strings containing the names of the column nodes exported to a clustergram object created using the Export Group to Workspace command in the Clustergram window.
ExprValuesAn M by N matrix of data, where M and N are the number of row nodes and of column nodes respectively, exported to a clustergram object created using the Export Group to Workspace command in the Clustergram window. If the matrix contains gene expression data, typically each row corresponds to a gene and each column corresponds to sample.
Standardize

Numeric value that specifies the dimension for standardizing the values in the data. The standardized values are transformed so that the mean is 0 and the standard deviation is 1 in the specified dimension. Choices are:

  • 1 — Standardize along the columns of data.

  • 2 (default) — Standardize along the rows of data.

  • 3 — Do not perform standardization.

Cluster

Numeric value that specifies the dimension for clustering the values in the data. Choices are:

  • 1 — Cluster along the columns of data only, which results in clustered rows.

  • 2 — Cluster along the rows of data only, which results in clustered columns.

  • 3 (default) — Cluster along the columns of data, then cluster along the rows of row-clustered data.

RowPdist

String that specifies the distance metric to pass to the pdist function (Statistics Toolbox™ software) to use to calculate the pairwise distances between rows. For information on choices, see the pdist function. Default is 'euclidean'.

    Note   If the distance metric requires extra arguments, then RowPdistValue is a cell array. For example, to use the Minkowski distance with exponent P, you would use {'minkowski', P}.

ColumnPdist

String that specifies the distance metric to pass to the pdist function (Statistics Toolbox software) to use to calculate the pairwise distances between columns. For information on choices, see the pdist function. Default is 'euclidean'.

    Note   If the distance metric requires extra arguments, then ColumnPdistValue is a cell array. For example, to use the Minkowski distance with exponent P, you would use {'minkowski', P}.

LinkageString or two-element cell array of strings that specifies the linkage method to pass to the linkage function (Statistics Toolbox software) to use to create the hierarchical cluster tree for rows and columns. If a two-element cell array of strings, the first element is used for linkage between rows, and the second element is used for linkage between columns. For information on choices, see the linkage function. Default is 'average'.
DendrogramScalar or two-element numeric vector or cell array of stringsthat specifies the 'colorthreshold' property to pass to the dendrogram function (Statistics Toolbox software) to create the dendrogram plot. If a two-element numeric vector or cell array, the first element is for the rows, and the second element is for the columns. For more information, see the dendrogram function.
OptimalLeafOrderProperty to enable or disable the optimal leaf ordering calculation, which determines the leaf order that maximizes the similarity between neighboring leaves. Choices are true (enable) or false (disable). Default depends on the size of Data, the matrix of data used to create the clustergram object. If the number of rows or columns in Data is greater than 1000, default is false; otherwise, default is true.

    Note   Disabling the optimal leaf ordering calculation can be useful when working with large data sets because this calculation uses a large amount of memory and can be very time consuming.

ColorMap

Either of the following:

  • M-by-3 matrix of RGB values

  • Name or function handle of a function that returns a colormap, such as redgreencmap or redbluecmap

Default is redgreencmap.

DisplayRange

Positive scalar that specifies the display range of standardized values. Default is 3, which means there is a color variation for values between -3 and 3, but values >3 will be the same color as 3, and values < -3 will be the same color as -3.

For example, if you specify redgreencmap for the 'ColorMap' property, pure red represents values ≥ DisplayRangeValue, and pure green represents values ≤ –DisplayRangeValue.

SymmetricRangeProperty to force the color scale of the heat map to be symmetric around zero. Choices are true (default) or false.
LogTransControls the log2 transform of the data from natural scale. Choices are true or false (default).
Ratio

Either of the following:

  • Scalar

  • Two-element vector

It specifies the ratio of space that the row and column dendrograms occupy relative to the heat map. If RatioValue is a scalar, it is used as the ratio for both dendrograms. If RatioValue is a two-element vector, the first element is used for the ratio of the row dendrogram width to the heat map width, and the second element is used for the ratio of the column dendrogram height to the heat map height. The second element is ignored for one-dimensional clustergrams. Default is 1/5.

Impute

Any of the following:

  • Name of a function that imputes missing data.

  • Handle to a function that imputes missing data.

  • Cell array where the first element is the name of or handle to a function that imputes missing data and the remaining elements are property name/property value pairs used as inputs to the function.

RowMarker

Optional structure array for annotating the groups (clusters) of rows determined by the clustergram function. Each structure in the array represents a group of rows and contains the following fields:

  • GroupNumber — The row group number to annotate.

  • Annotation — String specifying text to annotate the row group.

  • Color — String or three-element vector of RGB values specifying a color, which is used to label the row group. For more information on specifying colors, see colorspec. If this field is empty, default is 'blue'.

ColumnMarker

Optional structure array for annotating groups (clusters) of columns determined by the clustergram function. Each structure in the array represents a group of columns and contains the following fields:

  • GroupNumber — The column group number to annotate.

  • Annotation — String specifying text to annotate the column group.

  • Color — String or three-element vector of RGB values specifying a color, which is used to label the column group. For more information on specifying colors, see colorspec. If this field is empty, default is 'blue'.

Examples

Determining Properties and Property Values of a Clustergram Object

You can display all properties and their current values of a clustergram object, CGobj, by using the following syntax:

get(CGobj)

You can return all properties and their current values of CGobj, a clustergram object, to CGstruct, a scalar structure in which each field name is a property of a clustergram object, and each field contains the value of that property, by using the following syntax:

CGstruct = get(CGobj)

You can return the value of a specific property of a clustergram object, CGobj, by using either of the following syntaxes:

PropertyValue = get(CGobj, 'PropertyName')

PropertyValue = CGobj.PropertyName

You can return the value of specific properties of a clustergram object, CGobj, by using the following syntax:

[Property1Value, Property2Value, ...] = get(CGobj, 'Property1Name', 'Property2Name', ...)

Determining Possible Values of Clustergram Object Properties

You can display possible values for all properties that have a fixed set of property values in a clustergram object, CGobj, by using the following syntax:

set(CGobj)

You can display possible values for a specific property that has a fixed set of property values in a clustergram object, CGobj, by using the following syntax:

set(CGobj, 'PropertyName')

Specifying Properties of a Clustergram Object

You can set a specific property of a clustergram object, CGobj, by using either of the following syntaxes:

set(CGobj, 'PropertyName', PropertyValue)

CGobj.PropertyName = PropertyValue

You can set multiple properties of a clustergram object, CGobj, by using the following syntax:

set(CGobj, 'PropertyName1', PropertyValue1, 'PropertyName2', PropertyValue2, ...)

See Also

Bioinformatics Toolbox™ function: clustergram (object constructor)

Bioinformatics Toolbox methods of a clustergram object: get, plot, set, view

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS