def processUiQuery(dict_):
    query_dict = dict()
    query_dict['name'] = dict_['name']
    query_dict['evidence'] = dict_['genetic_evidence']
    query_dict['targets'] = dict_['genetic_targets']
    if (dict_['demographic_evidence'] is not None):
        query_dict['meta_evidence'] = [tuple(demo) for demo in dict_['demographic_evidence']]
    else:
        query_dict['meta_evidence'] = None
    if (dict_['demographic_targets'] is not None):
        query_dict['meta_targets'] = [tuple(demo) for demo in dict_['demographic_targets']]
    else:
        query_dict['meta_targets'] = None
    query = Query(**query_dict)
    return query
def processUiQuery(dict_):
    query_dict = dict()
    query_dict['name'] = dict_['name']
    query_dict['evidence'] = dict_['genetic_evidence']
    query_dict['targets'] = dict_['genetic_targets']
    if (dict_['demographic_evidence'] is not None):
        query_dict['meta_evidence'] = [tuple(demo) for demo in dict_['demographic_evidence']]
    else:
        query_dict['meta_evidence'] = None
    if (dict_['demographic_targets'] is not None):
        query_dict['meta_targets'] = [tuple(demo) for demo in dict_['demographic_targets']]
    else:
        query_dict['meta_targets'] = None
    query = Query(**query_dict)
    return query