getRange
Class: GFFAnnotation
Retrieve range of annotations from GFFAnnotation
object
Syntax
Range = getRange(AnnotObj)
Description
returns Range
= getRange(AnnotObj
)Range
,
a 1-by-2 numeric array specifying the minimum and maximum positions
in the reference sequence covered by annotations in AnnotObj
.
Input Arguments
|
Object of the |
Output Arguments
|
1-by-2 numeric array specifying the minimum and maximum positions
in the reference sequence covered by annotations in |
Examples
Construct a GFFAnnotation
object from a
GFF-formatted file that is provided with Bioinformatics Toolbox™,
and then return the range of the feature annotations:
% Construct a GFFAnnotation object from a GFF file GFFAnnotObj = GFFAnnotation('tair8_1.gff'); % Return first and last positions of reference associated with feature annotations range = getRange(GFFAnnotObj)
range = 3631 498516
Tips
Use the
getSubset
method with theReference
name-value pair to return aGFFAnnotation
object containing only one reference sequence. Then use this subsetted object as input to thegetRange
method.