def _is_intraprotein(protein_col_a, protein_col_b, decoy_prefix):
    """Determine if the cross-link is between the same protein or it's decoy"""
    protein_col_a = protein_col_a.str.replace(decoy_prefix, "").str.split(";")
    protein_col_b = protein_col_b.str.replace(decoy_prefix, "").str.split(";")
    return [int(set(a) == set(b)) for a, b in zip(protein_col_a, protein_col_b)]