msheatmap

Display color image for set of spectra

Syntax

msheatmap(MZ, Y, 'PropertyName', PropertyValue...)
msheatmap(..., 'Markers', MarkersValue)
msheatmap(..., 'Limits', LimitsValues)
msheatmap(..., 'Group', GroupValue)

Arguments

MZ

Mass/charge vector with the range of ions in the spectra.

Y

Ion intensity vector with the same length as the mass/charge vector (MZ). Y can also be a matrix with several spectra that share the same mass/charge (MZ) range.

Description

msheatmap(MZ, Y, 'PropertyName', PropertyValue...) shows a heatmap image of the spectra in Y.

msheatmap(..., 'Markers', MarkersValue) specifies a list of markers with positions marked along the top axis. The default value is [].

msheatmap(..., 'Limits', LimitsValues) specifies a [2x1] vector with the mass/charge range for the heatmap image.

msheatmap(..., 'Group', GroupValue) specifies the class label for every spectrum used to group the rows of the heatmap image. GroupValue can be a numeric vector or a cell array of strings with the same number of elements as there are spectra in Y.

Examples

  1. Load sample data.

    load sample_lo_res
    M = [3991.4 4598 7964 9160];
    msheatmap(MZ_lo_res,Y_lo_res,'markers',M,'limit',[3000 10000])
    


  2. Plot heatmap.

    msheatmap(MZ_lo_res,Y_lo_res,'markers',M,'group',[1 1 2 2 1 1 2 2])

See Also

The Bioinformatic Toolbox functions msalign, msbackadj, mslowess, msnorm, msresample, mssgolay, msviewer


© 1994-2005 The MathWorks, Inc.