This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the 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 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: [1×1 struct]
           Data: [9504×38 double]
         Blocks: [9504×1 double]
        Columns: [9504×1 double]
           Rows: [9504×1 double]
          Names: {9504×1 cell}
            IDs: {9504×1 cell}
    ColumnNames: {38×1 cell}
        Indices: [132×72 double]
          Shape: [1×1 struct]

Plot the median foreground intensity for the 635 nm channel.

maimage(gprStruct,'F635 Median')

Introduced before R2006a

Was this topic helpful?