agglovar.align.op
Constants and functions for working with alignment operations.
Definitions in this subpackage are borrowed from PAV 3+.
Attributes
Array of operation codes that advance the query position. |
|
Array of operation codes that advance the reference position. |
|
Set of alignment operation codes (match, sequence match, mismatch). |
|
Set of valid operation characters. |
|
Set of clipping operation codes (soft and hard clipping). |
|
Array of operation codes that consume query bases. |
|
Array of operation codes that consume reference bases. |
|
Deletion operation code. |
|
Sequence match operation code. |
|
Set of exact match/mismatch operation codes. |
|
Hard clipping operation code. |
|
Insertion operation code. |
|
Set of valid integer character strings representing operation codes. |
|
Match or mismatch operation code. |
|
Skipped region operation code. |
|
Mapping from operation codes to their character representations. |
|
Vectorized function to convert operation codes to characters. |
|
Mapping from CIGAR characters to operation codes. |
|
Padding operation code. |
|
Soft clipping operation code. |
|
Array of operation codes that introduce variation. |
|
Sequence mismatch operation code. |
Functions
|
Get a numpy array with two dimensions (dtype int). |
Module Contents
- agglovar.align.op.cigar_to_arr(cigar_str: str) numpy.ndarray
Get a numpy array with two dimensions (dtype int).
The first column is the operation codes, the second column is the operation lengths.
- Parameters:
cigar_str – CIGAR string.
- Returns:
Array of operation codes and lengths (dtype int).
- Raises:
ValueError – If the CIGAR string is not properly formatted.
- agglovar.align.op.ADV_QRY_ARR: numpy.typing.NDArray[numpy.integer]
Array of operation codes that advance the query position.
- agglovar.align.op.ADV_REF_ARR: numpy.typing.NDArray[numpy.integer]
Array of operation codes that advance the reference position.
- agglovar.align.op.ALIGN_SET: frozenset[int]
Set of alignment operation codes (match, sequence match, mismatch).
- agglovar.align.op.CLIP_SET: frozenset[int]
Set of clipping operation codes (soft and hard clipping).
- agglovar.align.op.CONSUMES_QRY_ARR: numpy.typing.NDArray[numpy.integer]
Array of operation codes that consume query bases.
- agglovar.align.op.CONSUMES_REF_ARR: numpy.typing.NDArray[numpy.integer]
Array of operation codes that consume reference bases.
- agglovar.align.op.INT_STR_SET: frozenset[str]
Set of valid integer character strings representing operation codes.
- agglovar.align.op.OP_CHAR: Mapping[int, str]
Mapping from operation codes to their character representations.
- agglovar.align.op.OP_CHAR_FUNC
Vectorized function to convert operation codes to characters.
- agglovar.align.op.VAR_ARR: numpy.typing.NDArray[numpy.integer]
Array of operation codes that introduce variation.