getFeatureNames

Class: GFFAnnotation

Retrieve unique feature names from GFFAnnotation object

Syntax

Features = getFeatureNames(AnnotObj)

Description

Features = getFeatureNames(AnnotObj) returns Features, a cell array of strings specifying the unique feature names associated with annotations in AnnotObj.

Input Arguments

AnnotObj

Object of the GFFAnnotation class.

Output Arguments

Features

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

Examples

Construct a GFFAnnotation object from a GFF-formatted file that is provided with Bioinformatics Toolbox™, and then retrieve the feature names from the annotation object:

% Construct a GFFAnnotation object from a GFF file
GFFAnnotObj = GFFAnnotation('tair8_1.gff');
% Retrieve feature names for the annotation object
featureNames = getFeatureNames(GFFAnnotObj)
featureNames = 

    'CDS'
    'exon'
    'five_prime_UTR'
    'gene'
    'mRNA'
    'miRNA'
    'ncRNA'
    'protein'
    'pseudogene'
    'pseudogenic_exon'
    'pseudogenic_transcript'
    'tRNA'
    'three_prime_UTR'
    'transposable_element_gene'
Was this topic helpful?