Main Content

GTFAnnotation

Contain Gene Transfer Format (GTF) annotations

Description

The GTFAnnotation object contains annotations for one or more reference sequences, conforming to the GTF file format.

Each element in the object represents an annotation. Use the object properties and methods to filter annotations by feature, reference sequence, or reference sequence position. Use object methods to extract data for a subset of annotations into an array of structures.

Creation

Construct a GTFAnnotation object from a GTF-formatted file.

Annotobj = GTFAnnotation(File) constructs a GTFAnnotation object Annotobj from File. Here, File is a character vector or string specifying a GTF-formatted file.

Properties

expand all

Names of the available data fields for each annotation in the GTFAnnotation object, returned as a cell array of character vectors. This property is read only.

Data Types: cell

Number of annotations in the GTFAnnotation object, returned as an integer. This property is read only.

Data Types: double

Object Functions

getDataCreate structure containing subset of data from GTFAnnotation or GFFAnnotation object
getExonsReturn table of exons from GTFAnnotation object
getFeatureNamesRetrieve unique feature names from GTFAnnotation or GFFAnnotation object
getGeneNamesRetrieve unique gene names from GTFAnnotation object
getGenesReturn table of unique genes in GTFAnnotation object
getIndexReturn index array of annotations from GTFAnnotation or GFFAnnotation object
getRangeRetrieve range of annotations from GTFAnnotation or GFFAnnotation object
getReferenceNamesRetrieve reference names from GTFAnnotation or GFFAnnotation object
getSegmentsReturn table of non-overlapping segments from GTFAnnotation object
getSubsetRetrieve subset of elements from GTFAnnotation or GFFAnnotation object
getTranscriptNamesRetrieve unique transcript names from GTFAnnotation object
getTranscriptsReturn table of unique transcripts in GTFAnnotation object

Examples

collapse all

Construct a GTFAnnotation object from a GTF-formatted file that is provided with Bioinformatics Toolbox™.

GTFAnnotObj = GTFAnnotation('hum37_2_1M.gtf')
GTFAnnotObj = 
  GTFAnnotation with properties:

    FieldNames: {1x11 cell}
    NumEntries: 308

Version History

Introduced in R2011b