getStop
Class: BioMap
Compute stop positions of aligned read sequences from BioMap
object
Syntax
Stop
= getStop(BioObj
)
Stop
= getStop(BioObj
, Subset
)
Description
returns Stop
= getStop(BioObj
)Stop
,
a vector of integers specifying the stop position of aligned read
sequences with respect to the position numbers in the reference sequence
from a BioMap
object.
returns
a stop position for only read sequences specified by Stop
= getStop(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
|
Vector of integers specifying the stop position of aligned read
sequences with respect to the position numbers in the reference sequence. |
Examples
Construct a BioMap
object, and then compute
the stop position for different sequences in the object:
% Construct a BioMap object from a SAM file BMObj1 = BioMap('ex1.sam'); % Compute the stop position of the second sequence in the object Stop_2 = getStop(BMObj1, 2)
Stop_2 = 37
% Compute the stop positions of the first and third sequences in % the object Stop_1_3 = getStop(BMObj1, [1 3])
Stop_1_3 = 36 39
% Compute the stop positions of all sequences in the object Stop_All = getStop(BMObj1);