def is_fully_meth(methfreq, eps=1e-5, cutoff_fully_meth=1.0):
    """
    Check if the freq is fully-methylated, can be 1.0, or 0.9
    :param methfreq:
    :param eps:
    :param cutoff_fully_meth:
    :return:
    """
    if methfreq > 1.0 + eps or methfreq < 0:
        raise Exception(f'detect error value for freq={methfreq}')

    if methfreq > cutoff_fully_meth - eps:  # near 1
        return True
    return False