Documente Academic
Documente Profesional
Documente Cultură
2 documentation
CigarOperation
#include <pbbam/CigarOperation.h>
enum PacBio::BAM::CigarOperationType
Describes a CIGAR operation.
Warning
ALIGNMENT_MATCH (‘M’) is included in this enum to maintain consistency with htslib. However, as of PacBio BAM
spec version 3.0b7, this CIGAR operation forbidden. Any attempt to read or write a record containing this operation
will trigger a std::runtime_error. SEQUENCE_MATCH(‘=) or SEQUENCE_MISMATCH(‘X’) should be used instead.
Values:
UNKNOWN_OP = -1
unknown/invalid CIGAR operator
ALIGNMENT_MATCH = 0
alignment match (can be a sequence match or mismatch) [M]
INSERTION
insertion to the reference [I]
DELETION
deletion from the reference [D]
REFERENCE_SKIP
skipped region from the reference [N]
SOFT_CLIP
soft clipping (clipped sequences present in SEQ) [S]
HARD_CLIP = 5
hard clipping (clipped sequences NOT present in SEQ) [H]
PADDING
padding (silent deletion from padded reference) [P]
SEQUENCE_MATCH
sequence match [=]
SEQUENCE_MISMATCH
sequence mismatch [X]
class PacBio::BAM::CigarOperation
The CigarOperation class represents a single CIGAR operation (consisting of a type & length).
https://pbbam.readthedocs.io/en/latest/api/CigarOperation.html 1/3
7/29/2019 CigarOperation — pbbam 0.13.2 documentation
Return
SAM/BAM character code
Parameters
type: CigarOperationType value
Return
CigarOperationType value
Parameters
c: SAM/BAM character code
CigarOperation()
CigarOperation(const CigarOperation&)
CigarOperation(CigarOperation&&)
CigarOperation &operator=(CigarOperation&&)
~CigarOperation()
Attributes
Return
reference to this operation
Parameters
opChar: SAM/BAM character code
Return
https://pbbam.readthedocs.io/en/latest/api/CigarOperation.html 2/3
7/29/2019 CigarOperation — pbbam 0.13.2 documentation
Parameters
length:
Return
reference to this operation
Parameters
opType: CigarOperationType value
Comparison Operators
Return
true if both CIGAR operation type & length match
Return
true if either CIGAR operation type or length differ
Public Functions
Return
operation type as SAM/BAM char code
Return
operation length
Return
operation type as CigarOperationType enum value
https://pbbam.readthedocs.io/en/latest/api/CigarOperation.html 3/3