getIndex
Class: GFFAnnotation
Return index array of annotations from GFFAnnotation
object
Syntax
Idx = getIndex(AnnotObj)
Idx = getIndex(AnnotObj,StartPos,EndPos)
Idx = getIndex(___,Name,Value)
Description
returns
an index array Idx
= getIndex(AnnotObj
)Idx
, an array of integers containing
the index of each annotation in AnnotObj
.
returns
an index array Idx
= getIndex(AnnotObj
,StartPos
,EndPos
)Idx
for a subset of elements that
falls within each reference sequence range specified by StartPos
and EndPos
.
returns
an index array Idx
= getIndex(___,Name,Value
)Idx
, using any of the input arguments
from the previous syntaxes and additional options specified by one
or more Name,Value
pair arguments.
Input Arguments
|
Object of the |
|
Nonnegative integer specifying the start of a range in each
reference sequence in |
|
Nonnegative integer specifying the end of a range in each reference
sequence in |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Character vector or cell array of character vectors specifying
one or more reference sequences in |
|
Character vector or cell array of character vectors specifying
one or more features in |
|
Minimum number of base positions that an annotation must overlap
in the range, to have its index included in
Default: |
Output Arguments
|
Array of integers representing indices of elements in |
Examples
Construct a GFFAnnotation
object using
a GFF-formatted file that is provided with Bioinformatics Toolbox™.
GFFAnnotObj = GFFAnnotation('tair8_1.gff');
Extract indices of annotations or features for positions 10,000 through 20,000 from the reference sequence.
Idx = getIndex(GFFAnnotObj,10000,20000) Idx = 61 62 63 64 65 66 67 68 69