Main Content

maimage

Spatial image for microarray data

Syntax

maimage(X, FieldName)
H = maimage(...)
[H, HLines] = maimage(...)
maimage(..., 'PropertyName', PropertyValue,...)
maimage(..., 'Title', TitleValue)
maimage(..., 'ColorBar', ColorBarValue)
maimage(..., 'HandleGraphicsPropertyName' PropertyValue)

Arguments

X A microarray data structure.
FieldName A field in the microarray data structure X.
TitleValueA character vector or string to use as the title for the plot. The default title is FieldName.
ColorBarValueProperty to control displaying a color bar in the Figure window. Enter either true or false. The default value is false.

Description

maimage(X, FieldName) displays an image of field FieldName from microarray data structure X. Microarray data can be GenPix Results (GPR) format. After creating the image, click a data point to display the value and ID, if known.

H = maimage(...) returns the handle of the image.

[H, HLines] = maimage(...) returns the handles of the lines used to separate the different blocks in the image.

maimage(..., 'PropertyName', PropertyValue,...) defines optional properties using property name/value pairs.

maimage(..., 'Title', TitleValue) allows you to specify the title of the plot. The default title is FieldName.

maimage(..., 'ColorBar', ColorBarValue), when ColorBarValue is true, a color bar is shown. If ColorBarValue is false, no color bar is shown. The default is for the color bar to be shown.

maimage(..., 'HandleGraphicsPropertyName' PropertyValue) allows you to pass optional Handle Graphics® property name/value pairs to the function. For example, a name/value pair for color could be maimage(..., 'color' 'r').

Examples

collapse all

Read in a sample GPR file.

madata = gprread('mouse_a1wt.gpr');

Plot the median foreground intensity for the 635 nm channel.

maimage(madata,'F635 Median')

Figure contains an axes object. The axes object with title F635 Median contains 5 objects of type image, line.

Alternatively, create a similar plot using more basic graphics commands.

F635Median = magetfield(madata,'F635 Median');
figure
imagesc(F635Median(madata.Indices));

Figure contains an axes object. The axes object contains an object of type image.

Change the colormap to one of the preset colors (for details, see map) and add a color bar.

colormap('bone')
colorbar 

Figure contains an axes object. The axes object contains an object of type image.

Change the colormap to red and green.

colormap(redgreencmap)

Figure contains an axes object. The axes object contains an object of type image.

You can also change the color interpolation method.

colormap(redgreencmap(256,'Interpolation','cubic'))

Figure contains an axes object. The axes object contains an object of type image.

Reset the colormap to the default value.

colormap('default')

Figure contains an axes object. The axes object contains an object of type image.

Introduced before R2006a