def get_encodings_in_range(rmin, rmax):
valid_encodings = []<EOL>valid_phred = []<EOL>for encoding, (phred, (emin, emax)) in RANGES.items():<EOL><INDENT>if rmin >= emin and rmax <= emax:<EOL><INDENT>valid_encodings.append(encoding)<EOL>valid_phred.append(phred)<EOL><DEDENT><DEDENT>return valid_encodings, valid_phred<EOL>
Returns the valid encodings for a given encoding range.

    The encoding ranges are stored in the :py:data:`RANGES` dictionary, with
    the encoding name as a string and a list as a value containing the
    phred score and a tuple with the encoding range. For a given encoding
    range provided via the two first arguments, this function will return
    all possible encodings and phred scores.

    Parameters
    ----------
    rmin : int
        Minimum Unicode code in range.
    rmax : int
        Maximum Unicode code in range.

    Returns
    -------
    valid_encodings : list
        List of all possible encodings for the provided range.
    valid_phred : list
        List of all possible phred scores.