pub enum CigarOp {
Match(usize),
Mismatch(usize),
Insertion(usize),
Deletion(usize),
AlnMatch(usize),
Skip(usize),
SoftClip(usize),
HardClip(usize),
Padding(usize),
}Expand description
A single CIGAR operation describing how aligned sequences relate.
The four core variants (Match/=, Mismatch/X, Insertion/I,
Deletion/D) are produced by alignment algorithms. The five SAM-spec
variants (AlnMatch/M, Skip/N, SoftClip/S, HardClip/H,
Padding/P) support round-tripping SAM/BAM CIGAR strings.
Variants§
Match(usize)
Matching bases (identical in query and target). SAM op =.
Mismatch(usize)
Mismatching bases (different in query and target). SAM op X.
Insertion(usize)
Insertion in the query (gap in target). SAM op I.
Deletion(usize)
Deletion from the query (gap in query). SAM op D.
AlnMatch(usize)
Alignment match — may be match or mismatch (ambiguous). SAM op M.
Skip(usize)
Skipped region on the reference (e.g. intron in RNA-seq). SAM op N.
SoftClip(usize)
Soft clipping — bases present in SEQ but not aligned. SAM op S.
HardClip(usize)
Hard clipping — bases NOT present in SEQ. SAM op H.
Padding(usize)
Silent deletion from padded reference. SAM op P.
Implementations§
Source§impl CigarOp
impl CigarOp
Sourcepub fn consumes_reference(&self) -> bool
pub fn consumes_reference(&self) -> bool
Whether this operation consumes bases on the reference.
Sourcepub fn consumes_query(&self) -> bool
pub fn consumes_query(&self) -> bool
Whether this operation consumes bases on the query.