Main Content

getGeneNames

Retrieve unique gene names from GTFAnnotation object

Description

example

Genes = getGeneNames(AnnotObj) returns Genes, a cell array of character vectors specifying the unique gene names associated with annotations in AnnotObj.

Examples

collapse all

Construct a GTFAnnotation object from a GTF-formatted file that is provided with Bioinformatics Toolbox™, and then retrieve a list of the unique gene names from the object.

Construct a GTFAnnotation object from a GTF file.

GTFAnnotObj = GTFAnnotation('hum37_2_1M.gtf');

Get gene names from object.

geneNames = getGeneNames(GTFAnnotObj)
geneNames = 28x1 cell
    {'uc002qvu.2'}
    {'uc002qvv.2'}
    {'uc002qvw.2'}
    {'uc002qvx.2'}
    {'uc002qvy.2'}
    {'uc002qvz.2'}
    {'uc002qwa.2'}
    {'uc002qwb.2'}
    {'uc002qwc.1'}
    {'uc002qwd.2'}
    {'uc002qwe.3'}
    {'uc002qwf.2'}
    {'uc002qwg.2'}
    {'uc002qwh.2'}
    {'uc002qwi.3'}
    {'uc002qwk.2'}
    {'uc002qwl.2'}
    {'uc002qwm.1'}
    {'uc002qwn.1'}
    {'uc002qwo.1'}
    {'uc002qwp.2'}
    {'uc002qwq.2'}
    {'uc010ewe.2'}
    {'uc010ewf.1'}
    {'uc010ewg.2'}
    {'uc010ewh.1'}
    {'uc010ewi.2'}
    {'uc010yim.1'}

Input Arguments

collapse all

GTF annotation, specified as a GTFAnnotation object.

Output Arguments

collapse all

Unique gene names associated with annotations in AnnotObj, returned as a cell array of character vectors.

Version History

Introduced in R2011b