def filter_duplicates(donors, acceptors):
    """
    Filter out duplicate donor acceptor atom pairs
    """

    pairs = sorted(list(set([(d, acceptors[idx]) for idx, d in enumerate(donors)])))

    new_donors, new_acceptors = [], []
    for d, a in pairs:
        new_donors.append(d)
        new_acceptors.append(a)

    return new_donors, new_acceptors