def is_mapped(cigar_tuple):
    """
    Whether end of alignment segment is a mapped end

    Parameters
    -----
    cigar_tuple : tuple of cigar

    Returns
    -----
    int
        1 for linear end, 0 for ambiguous end

    """
    if cigar_tuple[0] == 0 or cigar_tuple[1] <= 10:
        return 1
    else:
        return 0
