getStart
Class: BioMap
Retrieve start positions of aligned read sequences from BioMap
object
Syntax
Start
= getStart(BioObj
)
Start
= getStart(BioObj
, Subset
)
Description
returns Start
= getStart(BioObj
)Start
,
a vector of integers specifying the start position of aligned read
sequences with respect to the position numbers in the reference sequence
from a BioMap
object.
returns
a start position for only read sequences specified by Start
= getStart(BioObj
, Subset
)Subset
.
Input Arguments
|
Object of the |
|
One of the following to specify a subset of the elements in
Note If you use a cell array of headers to specify |
Output Arguments
|
|
Examples
Construct a BioMap
object, and then retrieve
the start position for different sequences in the object:
% Construct a BioMap object from a SAM file BMObj1 = BioMap('ex1.sam'); % Retrieve the start property of the second element in the object Start_2 = getStart(BMObj1, 2)
Start_2 = 3
% Retrieve the start properties of the first and third elements in % the object Start_1_3 = getStart(BMObj1, [1 3])
Start_1_3 = 1 5
% Retrieve the start properties of all elements in the object Start_All = getStart(BMObj1);
Alternatives
An alternative to using the getStart
method
is to use dot indexing with the Start
property:
BioObj.Start(Indices)
In the previous syntax, Indices
is a vector of positive integers or
a logical vector. Indices
cannot be a cell array of character
vectors or string vector containing sequence headers.