def get_insertion_excess(cigar):
    """Return excess insertions over deletions.

    Using pysam cigartuples
    sum all insertions (operation 1)
    minus sum of all deletions (operation 2)
    """
    return sum([l for o, l in cigar if o == 1]) - sum([l for o, l in cigar if o == 2])