def get_pairs_for_pssm( pairs, pssm ):
    """Returns a sequence of pairs which the given pssm is in
    """
    return [
            p
            for p
            in pairs
            if (
                    p.binder_pair[0] == pssm
            ) or (
                    p.binder_pair[1] == pssm
            )
    ]