Class: GTFAnnotation
Create structure containing subset of data from GTFAnnotation
object
AnnotStruct = getData(AnnotObj)
AnnotStruct = getData(AnnotObj,StartPos,EndPos)
AnnotStruct = getData(AnnotObj,Subset)
AnnotStruct = getData(___,Name,Value)
returns AnnotStruct
= getData(AnnotObj
)AnnotStruct
,
an array of structures containing data from all elements in AnnotObj
.
The fields in the return structures are the same as the elements in
the FieldNames
property of AnnotObj
.
returns AnnotStruct
= getData(AnnotObj
,StartPos
,EndPos
)AnnotStruct
,
an array of structures containing data from a subset of the elements
in AnnotObj
that falls within each reference
sequence range specified by StartPos
and EndPos
.
returns AnnotStruct
= getData(AnnotObj
,Subset
)AnnotStruct
,
an array of structures containing subset of data from AnnotObj
specified
by Subset
, a vector of integers.
returns AnnotStruct
= getData(___,Name,Value
)AnnotStruct
,
an array of structures, using any of the input arguments from the
previous syntaxes and additional options specified by one or more Name,Value
pair
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 |
|
Vector of positive integers equal or less than the number of
entries in the object. Use the vector |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Character vector, string, string vector, or cell array of character vectors specifying one or
more reference sequences in |
|
Character vector, string, string vector, or cell array of character vectors specifying one or
more features in |
|
Character vector, string, string vector, or cell array of character vectors specifying one or
more genes in |
|
Character vector, string, string vector, or cell array of character vectors specifying one or
more transcripts in |
|
Minimum number of base positions that an annotation must overlap
in the range, to be included in
Default: |
|
Array of structures containing data from elements in
|
Construct a GTFAnnotation
object using
a GTF-formatted file that is provided with Bioinformatics Toolbox™.
GTFAnnotObj = GTFAnnotation('hum37_2_1M.gtf');
Extract the annotation data for positions 668,000 through 680,000 from the reference sequence.
AnnotStruct1 = getData(GTFAnnotObj,668000,680000)
AnnotStruct1 = 18x1 struct array with fields: Reference Start Stop Feature Gene Transcript Source Score Strand Frame Attributes
Extract the first five annotations from the object.
AnnotStruct2 = getData(GTFAnnotObj,[1:5]) AnnotStruct2 = 5x1 struct array with fields: Reference Start Stop Feature Gene Transcript Source Score Strand Frame Attributes
Using getdata
creates a structure, which
provides better access to the annotation data than an object.
You can access all field values in a structure.
You can not only extract field values, but also assign and delete values.
You can use linear indexing to access field values of specific annotations. For example, you can access the start value of only the fifth annotation.
getData (GTFAnnotation)
| getFeatureNames (GTFAnnotation)
| getGeneNames (GTFAnnotation)
| getGenes (GTFAnnotation)
| getIndex (GTFAnnotation)
| getRange (GTFAnnotation)
| getReferenceNames (GTFAnnotation)
| getSegments (GTFAnnotation)
| getSubset (GTFAnnotation)
| getTranscripts (GTFAnnotation)
| GFFAnnotation
| GTFAnnotation