Main Content

getTranscriptNames

Retrieve unique transcript names from GTFAnnotation object

Description

Transcripts = getTranscriptNames(AnnotObj) returns Transcripts, a cell array of character vectors specifying the unique transcript names associated with annotations in AnnotObj.

example

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 transcript names from the object.

Construct a GTFAnnotation object from a GTF file.

GTFAnnotObj = GTFAnnotation('hum37_2_1M.gtf');

Get transcript names from object.

transcriptNames = getTranscriptNames(GTFAnnotObj)
transcriptNames = 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 transcript names associated with annotations in AnnotObj, specified as a cell array of character vectors.

Version History

Introduced in R2011b