def _argify_dict(dictnry):
    """
    Used in calling scripts with --arg_name arg type args
    converts a dict, eg:
    { "criteria": "90", "database": "SILVA", "body_site": "Saliva",
    "nearest_n_samples": "7", "hmp_database": "SILVA_99", "optimize":
    "start-end", "region_dacc": "v1v3", "maxlength": "300",
    "comp_with_dacc": "False", "difference_rank": "2"} to a list, eg:
    ['--region_dacc v1v3', '--hmp_database SILVA_99', '--body_site Saliva',
    '--database SILVA', '--criteria 90', '--difference_rank 2',
    '--maxlength 300', '--optimize start-end', '--nearest_n_samples 7',
    '--comp_with_dacc False'] """
    arg_list = list()
    for key, val in dictnry.items():
        if val is True:
            arg_list.append('--' + key.lower())
        elif val is not False:
            arg_list.append('--' + key.lower())
            arg_list.append(str(val))
    return arg_list