@param n_cigar Number of items in @p cigar
@param cigar CIGAR data
@return Reference length
CIGAR data is stored as in the BAM format, i.e. (op_len << 4) | op
where op_len is the length in bases and op is a value between 0 and 8
representing one of the operations "MIDNSHP=X" (M = 0; X = 8)
This function returns the sum of the lengths of the M, D, N, = and X
operations in @p cigar (these are the operations that "consume" reference
bases). All other operations (including invalid ones) are ignored.
@param n_cigar Number of items in @p cigar @param cigar CIGAR data @return Reference length
CIGAR data is stored as in the BAM format, i.e. (op_len << 4) | op where op_len is the length in bases and op is a value between 0 and 8 representing one of the operations "MIDNSHP=X" (M = 0; X = 8)
This function returns the sum of the lengths of the M, D, N, = and X operations in @p cigar (these are the operations that "consume" reference bases). All other operations (including invalid ones) are ignored.