bam_cigar_type

bam_cigar_type returns a bit flag with: bit 1 set if the cigar operation consumes the query bit 2 set if the cigar operation consumes the reference

For reference, the unobfuscated truth table for this function is: BAM_CIGAR_TYPE QUERY REFERENCE

BAM_CMATCH      1      1
BAM_CINS        1      0
BAM_CDEL        0      1
BAM_CREF_SKIP   0      1
BAM_CSOFT_CLIP  1      0
BAM_CHARD_CLIP  0      0
BAM_CPAD        0      0
BAM_CEQUAL      1      1
BAM_CDIFF       1      1
BAM_CBACK       0      0
extern (C) pragma(inline, true)
bam_cigar_type
(
uint o
)

Meta