Skip to Main Content Skip to Search
Product Documentation

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

XA microarray data structure.
FieldName A field in the microarray data structure X.
TitleValueA 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

% 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')

% Create another plot, add a title, and change the colormap
figure
maimage(madata,'F635 Median - B635', 'Title','Cy5 Channel FG - BG')
colormap hot

% Alternatively, create a similar plot using more basic
% graphics commands.
F635Median = magetfield(madata,'F635 Median');
figure
imagesc(F635Median(madata.Indices));
% Change the colormap and add a color bar
colormap bone
colorbar

See Also

imagesc | maboxplot | magetfield | mairplot | maloglog | malowess

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS