Main Content

getgeodata

R2026b

Retrieve Gene Expression Omnibus (GEO) format data

    Description

    GEOData = getgeodata(AccessionNumber) retrieves Gene Expression Omnibus (GEO) format data for the specified accession number of a Sample (GSM), Data Set (GDS), Platform (GPL), or Series (GSE) record.

    example

    GEOData = getgeodata(AccessionNumber,Name=Value) retrieves GEO data with additional options specified by one or more name-value arguments. For example, you can save the data to a file or set a connection timeout.

    Examples

    collapse all

    Retrieve GEO data for accession number GSM1768.

    GEOdata = getgeodata("GSM1768")
    GEOdata = 
    
      struct with fields:
    
                     Scope: 'SAMPLE'
                 Accession: 'GSM1768'
                    Header: [1×1 struct]
        ColumnDescriptions: {3×1 cell}
               ColumnNames: {3×1 cell}
                      Data: {1656×3 cell}

    Input Arguments

    collapse all

    GEO record accession number, specified as a character vector or string scalar. The accession number is a unique identifier for a GEO Sample (GSM), Data Set (GDS), Platform (GPL), or Series (GSE) record in the GEO database. Next-Generation Sequencing data cannot be retrieved using this function.

    Tip

    Data Types: char | string

    Name-Value Arguments

    collapse all

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Example: GEOdata = getgeodata("GSM1768",ToFile="GSM1768.txt") specifies to save the results to a file.

    Output file name, specified as a character vector or string scalar. If you specify only a file name, that file is saved in the MATLAB current folder.

    Data Types: char | string

    Connection timeout, specified as a positive scalar in seconds. For details, see here.

    Data Types: double

    Output Arguments

    collapse all

    GEO record data, returned as a structure containing the following fields.

    FieldDescription
    ScopeType of data retrieved (SAMPLE, DATASET, PLATFORM, or SERIES)
    AccessionAccession number for record in GEO database.
    HeaderMicroarray experiment information.
    ColumnDescriptionsCell array containing descriptions of columns in the data.
    ColumnNamesCell array containing names of columns in the data.
    DataArray containing microarray data.
    Identifier (GDS files only)Cell array containing probe IDs.
    IDRef (GDS files only)Cell array containing indices to probes.

    Version History

    Introduced before R2006a