Quantcast

Documentation Center

  • Trial Software
  • Product Updates

getTranscriptNames

Class: GTFAnnotation

Retrieve unique transcript names from GTFAnnotation object

Syntax

Transcripts = getTranscriptNames(AnnotObj)

Description

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

Input Arguments

AnnotObj

Object of the GTFAnnotation class.

Output Arguments

Transcripts

Cell array of strings specifying the unique transcript names associated with annotations in AnnotObj.

Examples

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 = 

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

How To

Related Links

Was this topic helpful?