def annotate_by_id(row, d):
    """Annotate indels by equivalence id
    
    Args:
        row (pandas.Series)
        d (dict): {chr:pos:ins/del:indel_seq: ID(int)}
    Returns:
        ID (int)
    """
    chr = row["chr"]
    pos = str(row["pos"])
    idl_type = str(row["is_ins"])
    idl_seq = row["indel_seq"]
    key = chr + ":" + pos + ":" + idl_type + ":" + idl_seq
    return d[key]