Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getFeatureNames

Class: GFFAnnotation

Retrieve unique feature names from GFFAnnotation object

Syntax

Features = getFeatureNames(AnnotObj)

Description

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

Input Arguments

AnnotObj

Object of the GFFAnnotation class.

Output Arguments

Features

Cell array of character vectors 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?