Main Content

getReferenceNames

Class: GFFAnnotation

Retrieve reference names from GFFAnnotation object

Syntax

References = getReferenceNames(AnnotObj)

Description

References = getReferenceNames(AnnotObj) returns References, a cell array of character vectors specifying the names of all reference sequences in AnnotObj.

Input Arguments

AnnotObj

Object of the GFFAnnotation class.

Output Arguments

References

Cell array of character vectors specifying the names of all reference sequences in AnnotObj.

Examples

Construct a GFFAnnotation object from a GFF-formatted file that is provided with Bioinformatics Toolbox™, and then return the names of the reference sequences from the annotation object:

% Construct a GFFAnnotation object from a GFF file
GFFAnnotObj = GFFAnnotation('tair8_1.gff');
% Return reference names for the annotation object
refNames = getReferenceNames(GFFAnnotObj)
refNames = 

    'Chr1'