Main Content

gprread

R2026b

Read microarray data from GenePix Results (GPR) file

    Description

    GPRData = gprread(File) reads microarray data from a GenePix® Results (GPR) file and returns the data in a MATLAB® structure.

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

    example

    GPRData = gprread(File,CleanColNames=createValidNames) additionally specifies whether to create column names that are valid MATLAB variable names.

    Examples

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

    Figure contains an axes object. The hidden axes object with title F635 Median contains 5 objects of type image, line.

    Input Arguments

    collapse all

    GenePix Results (GPR) file to read, specified as a character vector or string scalar containing the file name or a path and file name.

    Data Types: char | string

    Flag to create valid variable names, specified as a numeric or logical 1 (true) or 0 (false). When true, gprread returns names in the ColumnNames field that are valid MATLAB variable names. When false (default), the function does not update the column names, and the ColumnNames field of the output structure may contain characters that are not valid for MATLAB variable names.

    Data Types: logical | double

    Output Arguments

    collapse all

    GPR file data, returned as a structure with the following fields.

    Tip

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

    Version History

    Introduced before R2006a