| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Bioinformatics Toolbox |
| Contents | Index |
| Learn more about Bioinformatics Toolbox |
SPOTData = sptread(File)
SPOTData = sptread(File,
'CleanColNames', CleanColNamesValue)
| File | Either of the following:
|
| CleanColNamesValue | Controls the use of valid MATLAB variable names. |
SPOTData = sptread(File) reads File, a SPOT-formatted file, and creates SPOTData, a MATLAB structure containing the following fields:
Header Data Blocks Columns Rows IDs ColumnNames Indices Shape
SPOTData = sptread(File,
'CleanColNames', CleanColNamesValue) controls
the use of valid MATLAB variable names. The column names in the
SPOT-formatted file contain periods and some characters that cannot
be used in MATLAB variable names. If you plan to use the column
names as variable names in a function, use this option with CleanColNames set
to true and the function will return the field ColumnNames with
valid variable names.
The Indices field of the structure includes the indices that you can use for plotting heat maps of the data.
Read in a sample SPOT file and plot the median foreground intensity for the 635 nm channel. Note that the example file spotdata.txt is not provided with the Bioinformatics Toolbox software.
spotStruct = sptread('spotdata.txt')
maimage(spotStruct,'Rmedian');Alternately, create a similar plot using more basic graphics commands.
Rmedian = magetfield(spotStruct,'Rmedian'); imagesc(Rmedian(spotStruct.Indices)); colormap bone colorbar
Bioinformatics Toolbox functions: affyread, agferead, celintensityread, geoseriesread, geosoftread, gprread, ilmnbsread, imageneread, maboxplot, magetfield
![]() | sortrows (DataMatrix) | std (DataMatrix) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |