from typing import OrderedDict


def filter_threshold_dict_from_args(args):
    """
    Convert names of filters from external CLI options to more
    consistent naming scheme of {min|max}_{Isovar property}.

    Returns OrderedDict
    """
    d = OrderedDict()
    d["min_ratio_alt_to_other_fragments"] = args.min_ratio_alt_to_other_fragments
    d["min_fraction_alt_fragments"] = args.min_alt_rna_fraction
    d["min_num_alt_fragments"] = args.min_alt_rna_fragments
    d["min_num_alt_reads"] = args.min_alt_rna_reads
    return d