def passes_max_percent_editing(ref_cnt, alt_cnt, max_percent_coverage):
    """ This function is intended to allow us to filter out SNVs, under the assumption that SNVs mistaken as editing
    will have an extremely high percentage of editing bases i.e. around 100%.

    :param ref_cnt: The number of reference bases overlapping a site.
    :param alt_cnt: The number of alt or edited bases at a site.
    :param max_percent_coverage: A float between 0 and 1:
    :return:
    """
    editing_ratio = alt_cnt / float(ref_cnt + alt_cnt)
    if editing_ratio <= max_percent_coverage:
        return True
    return False
