def _extract_phospho_probabilities(entry):
    """
    :params entry: entry of the field "Phospho (STY) Probabilities" from a
        maxquant evidence.txt file. For exaample: "AAADAIS(1)DIEIK"
    :returns: a sorted list (best probabilities first) of tuples, containing a
        probability value and the phospho position (starting from 1).
        For example: [(1.0, 7)]
    """
    probabilities = list()
    while entry.find('(') != -1:
        mod_position = int(entry.find('('))
        mod_probability = float(entry.split('(')[1].split(')')[0])
        probabilities.append((mod_probability, mod_position))
        entry = entry.split('(', 1)[0] + entry.split(')', 1)[1]
    return sorted(probabilities, reverse=True)