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.

getRange

Class: GTFAnnotation

Retrieve range of annotations from GTFAnnotation object

Syntax

Range = getRange(AnnotObj)

Description

Range = getRange(AnnotObj) returns Range, a 1-by-2 numeric array specifying the minimum and maximum positions in the reference sequence covered by annotations in AnnotObj.

Tips

  • Use the GTFAnnotation.getSubset method with the Reference name-value pair to return a GFFAnnotation object containing only one reference sequence. Then use this subsetted object as input to the getRange method.

Input Arguments

AnnotObj

Object of the GTFAnnotation class.

Output Arguments

Range

1-by-2 numeric array specifying the minimum and maximum positions in the reference sequence covered by annotations in AnnotObj

Examples

Construct a GTFAnnotation object from a GTF-formatted file that is provided with Bioinformatics Toolbox™, and then return the range of the feature annotations:

% Construct a GTFAnnotation object from a GTF file
GTFAnnotObj = GTFAnnotation('hum37_2_1M.gtf');
% Return first and last positions of reference associated with feature annotations
range = getRange(GTFAnnotObj)
range =

       41609     1371382
Was this topic helpful?