def get_last_base_call_in_seq(sequence):
    """
    Given a sequence, returns the position of the last base in the sequence
    that is not a deletion ('-').
    """
    last_base_pos = None
    for pos_from_end, base in enumerate(sequence[::-1]):
        if base != '-':
            last_base_pos = len(sequence) - pos_from_end
            break
    return last_base_pos