www.gusucode.com > bioinfo 案例源码程序 matlab代码 > bioinfo/RetrieveExonsFromAGTFformattedFileExample.m

    %% Retrieve Exons from a GTF-formatted File
% 
%%
% Create a GTFAnnotation object from a GTF-formatted file.

% Copyright 2015 The MathWorks, Inc.

obj = GTFAnnotation('hum37_2_1M.gtf');

%%
% Get the list of gene names listed in the object.
gNames = getGeneNames(obj)
%%
% Get a table of exons which belong to the first gene |uc002qvu.2|.
exons = getExons(obj,'Gene',gNames{1})