You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
a simple function that returns a colormap, C, for visualizing gene expression. C is just a N x 3 matrix [R G B] describing the range of color values.
example usage:
C = exp_colormap('blue-yellow',64);
colormap(C);
called without any arguments, it returns a [3 x 64] green-red colormap.
options for 'colors' are:
'blue-yellow'
'green-red'
'yellow'
'N' represents the number of degrees of color to use. the default is 64.
generally speaking, the two-colored maps are appropriate for visualizing expression data which is normalized to a reference condition, e.g. to show whether expression is lower (blue or green) or higher (yellow or red) than the reference.
the single-color yellow map ('yellow') is appropriate for displaying levels of gene expression which are not compared (necessarily) to a single reference, and this is similar to the colormap used in the D-chip expression analysis software.
the colormaps returned range monotonically.
Cite As
Michael Driscoll (2026). Gene Expression Colormap (https://www.mathworks.com/matlabcentral/fileexchange/6481-gene-expression-colormap), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (871 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
