Exemplo n.º 1
0
def get_confounder_ac_index(overwrite: bool = False) -> bool:
    log_args(api="/confounder/ac/index", kwargs=locals())
    return index_ac_name_from_cypher(
        cypher_query=ac_mr_trait["query"],
        index_name=ac_mr_trait["index_name"],
        es_client=es_client,
        overwrite=overwrite,
    )
Exemplo n.º 2
0
def get_prs_ac_index(overwrite: bool = False) -> bool:
    log_args(api="/prs/ac/index", kwargs=locals())
    return index_ac_name_from_cypher(
        cypher_query=ac_query_trait,
        index_name=ac_index_trait,
        es_client=es_client,
        overwrite=overwrite,
    )
Exemplo n.º 3
0
def ontology_trait_disease_index_name(overwrite: bool = False) -> bool:
    index_res = [
        index_ac_name_from_cypher(
            cypher_query=configs["query"],
            index_name=configs["index_name"],
            es_client=es_client,
            indexer_fn=configs["indexer_fn"],
            overwrite=overwrite,
        ) for name, configs in ac_configs.items()
    ]
    res = sum(index_res) == len(index_res)
    return res