Query:
curl -X 'POST' \
'https://nodenormalization-sri.renci.org/1.3/get_normalized_nodes' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"curies": [
"CHEMBL.COMPOUND:CHEMBL1201567"
],
| import requests | |
| import os | |
| import json | |
| import glob | |
| import re | |
| query_classes = ['ameliorates','CPIC','drug_treats_rare_disease','DrugCentral_creative', | |
| 'GTRx','OOPD','RareDisease','three_hop','treats'] | |
| aras = ["aragorn", "arax", "bte", 'improving'] | |
| ara_pattern = re.compile(fr"({'|'.join(aras)})") | |
| query_pattern = re.compile(fr"({'|'.join(query_classes)})") |
| node_id node_type all_names description knowledge_source link synonyms is_pathogen | |
| Microbe:1 biolink:OrganismTaxon ['Archaea'] [('rank', 'superkingdom'), ('taxid', '2157')] ['GTDB'] ['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=2157'] ['GTDB:Archaea'] False | |
| Microbe:2 biolink:OrganismTaxon ['Halobacteriota'] [('taxid', ''), ('rank', 'phylum')] ['GTDB'] [] ['GTDB:Halobacteriota'] False | |
| Microbe:3 biolink:OrganismTaxon ['Methanosarcinia'] [('taxid', ''), ('rank', 'class')] ['GTDB'] [] ['GTDB:Methanosarcinia'] False | |
| Microbe:4 biolink:OrganismTaxon ['Methanosarcinales'] [('taxid', '94695'), ('rank', 'order')] ['GTDB'] ['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=94695'] ['GTDB:Methanosarcinales'] False | |
| Microbe:5 biolink:OrganismTaxon ['Methanosarcinaceae'] [('taxid', '2206'), ('rank', 'family')] ['GTDB'] ['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=2206'] ['GTDB:Methanosarcinaceae'] False | |
| Microbe:6 biolink:OrganismTaxon ['Methanosarcina |
| node_id,node_type,all_names,description,knowledge_source,link,synonyms,is_pathogen | |
| Microbe:1,biolink:OrganismTaxon,['Archaea'],[('rank', 'superkingdom'), ('taxid', '2157')],['GTDB'],['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=2157'],['GTDB:Archaea'],False | |
| Microbe:2,biolink:OrganismTaxon,['Halobacteriota'],[('taxid', ''), ('rank', 'phylum')],['GTDB'],[],['GTDB:Halobacteriota'],False | |
| Microbe:3,biolink:OrganismTaxon,['Methanosarcinia'],[('taxid', ''), ('rank', 'class')],['GTDB'],[],['GTDB:Methanosarcinia'],False | |
| Microbe:4,biolink:OrganismTaxon,['Methanosarcinales'],[('taxid', '94695'), ('rank', 'order')],['GTDB'],['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=94695'],['GTDB:Methanosarcinales'],False | |
| Microbe:5,biolink:OrganismTaxon,['Methanosarcinaceae'],[('taxid', '2206'), ('rank', 'family')],['GTDB'],['https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=2206'],['GTDB:Methanosarcinaceae'],False | |
| Microbe:6,biolink:OrganismTaxon,['Methanosarcina |
Query:
curl -X 'POST' \
'https://nodenormalization-sri.renci.org/1.3/get_normalized_nodes' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"curies": [
"CHEMBL.COMPOUND:CHEMBL1201567"
],
Current state
(master) a -> b -> c
|
(itrb) -> d
Idea: Create a new branch from b, merge that into (test)
1. Go to the commit
| { | |
| "message": { | |
| "query_graph": { | |
| "nodes": { | |
| "n1": { | |
| "ids": [ | |
| "UBERON:0001235", | |
| "UBERON:0001274", | |
| "UBERON:0002116", | |
| "UBERON:0034969", |
| { | |
| "message": { | |
| "query_graph": { | |
| "edges": { | |
| "e1": { | |
| "object": "n1", | |
| "predicates": [ | |
| "biolink:expressed_in" | |
| ], | |
| "subject": "n2" |
| { | |
| "message": { | |
| "query_graph": { | |
| "nodes": { | |
| "disease": { | |
| "ids": ["MONDO:0004975"] | |
| }, | |
| "chemical": { | |
| "categories": ["biolink:ChemicalEntity"] | |
| } |
| { | |
| "workflow": [ | |
| { | |
| "id": "fill", | |
| "parameters": { "allowlist": ["infores:cohd"], | |
| "qedge_keys": [ | |
| "e0" | |
| ] | |
| } | |
| }, |
| { | |
| "results": [ | |
| { | |
| "node_bindings": { | |
| "drug": [ | |
| { | |
| "id": "CHEMBL.COMPOUND:CHEMBL1337" | |
| } | |
| ], | |
| "disease": [ |