def rt_difference(experimental_spectrum, pred_spectra):
    """Return the absolute differences between the experimental RT and the predicted RTs
    """
    return [abs(float(experimental_spectrum['params']['irt']) - float(pred_spectrum['params']['irt'])) for pred_spectrum
            in pred_spectra]