TCT.translator_metakg

TCT.translator_metakg.add_new_API_for_query(APInames, metaKG, newAPIname, newAPIurl, newAPIpredicate, newAPIsubject, newAPIobject)[source]

This function is used to add a new API beyond the current list of APIs for query

Examples

>>> APInames, metaKG = add_new_API_for_query(APInames, metaKG, "BigGIM_BMG", "http://127.0.0.1:8000/find_path_by_predicate", "Gene-physically_interacts_with-gene", "Gene", "Gene")
TCT.translator_metakg.add_plover_API(APInames, metaKG)[source]

This function is used to add the Plover APIs developed by the CATRAX team to the APInames and metaKG.

Current APIs include : CATRAX BigGIM DrugResponse Performance Phase, CATRAX Pharmacogenomics, Clinical Trials, Drug Approvals, Multiomics, Microbiome, and RTX KG2.

Examples

>>> APInames, metaKG = add_plover_API(APInames, metaKG)
TCT.translator_metakg.get_KP_metadata(APInames)[source]

This function is used to get the metadata of the KPs in the APInames dictionary.

Examples

>>> metaKG = TCT.get_KP_metadata(APInames) 
>>> All_predicates = list(set(metaKG['Predicate']))
All_categories = list((set(list(set(metaKG['Subject']))+list(set(metaKG['Object'])))))