def get_key(chem):
    """
    Turns a chemical object into (mz, rt, intensity) tuples for equal comparison
    :param chem: A chemical object
    :return: a tuple of the three values
    """
    return tuple(chem.isotopes), chem.rt, chem.max_intensity
