This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Read microarray data from GenePix Results (GPR) file


GPRData = gprread(File)
gprread(..., 'PropertyName', PropertyValue,...)
gprread(..., 'CleanColNames', CleanColNamesValue)



GenePix® Results (GPR) formatted file. Enter a character vector specifying a file name, or a path and file name.


Controls the creation of column names that can be used as variable names.


GPRData = gprread(File) reads GenePix results data from File and creates a MATLAB® structure (GPRData).

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

gprread(..., 'CleanColNames', CleanColNamesValue) controls the creation of column names that can be used as variable names. A GPR file may contain column names with spaces and some characters that the MATLAB software cannot use in MATLAB variable names. If CleanColNamesValue is true, gprread returns names in the field ColumnNames that are valid MATLAB variable names and names that you can use in functions. By default, CleanColNamesValue is false and the field ColumnNames may contain characters that are invalid for MATLAB variable names.

The field Indices of the structure contains indices that can be used for plotting heat maps of the data.

For more details on the GPR format, see

The function supports versions 3, 4, and 5 of the GenePix Results Format.


collapse all

This example shows how to read and display data from a GenePix® result (GPR) file.

Read in a sample GPR file.

gprStruct = gprread('mouse_a1pd.gpr')
gprStruct = 

  struct with fields:

         Header: [1x1 struct]
           Data: [9504x38 double]
         Blocks: [9504x1 double]
        Columns: [9504x1 double]
           Rows: [9504x1 double]
          Names: {9504x1 cell}
            IDs: {9504x1 cell}
    ColumnNames: {38x1 cell}
        Indices: [132x72 double]
          Shape: [1x1 struct]

Plot the median foreground intensity for the 635 nm channel.

maimage(gprStruct,'F635 Median')

Introduced before R2006a

Was this topic helpful?