CIGAR strings
Last updated 27 June 2026
CIGAR strings
The ‘CIGAR’ (Compact Idiosyncratic Gapped Alignment Report) string is how the SAM/BAM format represents spliced alignments.
CIGAR strings have a number of operators:
- Match - Exact match of x positions - Alignment gap - Next x positions on ref don’t match - Deletion - Next x positions on ref don’t match - Insertion - Next x positions on query don’t match
Example:
CIGAR=3M2I3M:
0123456789
AAGTC TAGAA (ref)
GTCGATAG (query)