getAlignment
Class: BioMap
Construct alignment represented in BioMap
object
Syntax
Alignment
= getAlignment(BioObj
, StartPos
, EndPos
)
Alignment
= getAlignment(BioObj
, StartPos
, EndPos
, R
)
Alignment
= getAlignment(...,
'ParameterName
', ParameterValue
)
[Alignment
, Indices
]
= getAlignment(...)
Description
returns Alignment
= getAlignment(BioObj
, StartPos
, EndPos
)Alignment
,
a character array containing the aligned read sequences from BioObj
,
a BioMap
object. The read sequences must align
within a specific region of the reference sequence, which is defined
by StartPos
and EndPos
,
two positive integers such that StartPos
is
less than EndPos
, and both are smaller
than the length of the reference sequence.
selects
the reference where Alignment
= getAlignment(BioObj
, StartPos
, EndPos
, R
)getAlignment
reconstructs the
alignment.
accepts
one or more comma-separated parameter name/value pairs. Specify Alignment
= getAlignment(...,
'ParameterName
', ParameterValue
)ParameterName
inside
single quotes.
[
returns Alignment
, Indices
]
= getAlignment(...)Indices
,
a vector of indices specifying the read sequences that align within
a specific region of the reference sequence.
Input Arguments
|
Object of the |
|
Positive integer that defines the start of a region of the reference
sequence. |
|
Positive integer that defines the end of a region of the reference
sequence. |
|
Positive integer indexing the |
Name-Value Arguments
|
Specifies if padding blanks are added at the beginning of each
aligned sequence to represent the offset of the start position of
each aligned sequence with respect to the reference. Choices are |
Output Arguments
|
Character array containing the aligned read sequences from |
|
Vector of indices specifying the read sequences from |
Examples
Construct a BioMap
object, and then reconstruct
the alignment between positions 10 and 25 of the reference sequence:
% Construct a BioMap object from a SAM file BMObj1 = BioMap('ex1.sam'); % Construct the alignment between positions 10 and 25 of the % reference sequence. Alignment = getAlignment(BMObj1, 10, 25)
Alignment = CTCATTGTAAATGTGT CTCATTGTAAATGTGT CTCATTGTAAATGTGT CTCATTGTAATTTTTT CTCATTGTAAATGTGT ATTGTAAATGTGT ATTGTAAATGTGT TGTAAATGTGT AAATGTGT GTGT GTGT GT
Algorithms
getAlignment
assumes the reference sequence
has no gaps. Therefore, positions in reads corresponding to insertions
(I) and padding (P) do not appear in the alignment.
Because soft clipped positions (S) are not associated with positions that align to the reference sequence, they do not appear in the alignment.
A skipped position (N) appears as a .
(period)
in the alignment.
Hard clipped positions (H) do not appear in the sequences or the alignment.