Skip to content

Instantly share code, notes, and snippets.

@dkoslicki
Created May 31, 2023 17:26
Show Gist options
  • Save dkoslicki/48d58822106c4410c7a0903b54cfd7cb to your computer and use it in GitHub Desktop.
Save dkoslicki/48d58822106c4410c7a0903b54cfd7cb to your computer and use it in GitHub Desktop.
Example SRI NN

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"
  ],
  "conflate": true
}'

Response:

{
  "CHEMBL.COMPOUND:CHEMBL1201567": {
    "id": {
      "identifier": "MESH:D000069585",
      "label": "Filgrastim"
    },
    "equivalent_identifiers": [
      {
        "identifier": "MESH:D000069585",
        "label": "Filgrastim"
      },
      {
        "identifier": "UMLS:C0210630",
        "label": "filgrastim"
      },
      {
        "identifier": "UMLS:C3892863",
        "label": "filgrastim-sndz"
      },
      {
        "identifier": "CHEMBL.COMPOUND:CHEMBL1201567",
        "label": "FILGRASTIM"
      },
      {
        "identifier": "DRUGBANK:DB00099"
      },
      {
        "identifier": "DrugCentral:4987",
        "label": "filgrastim"
      }
    ],
    "type": [
      "biolink:NamedThing",
      "biolink:Entity",
      "biolink:PhysicalEssence",
      "biolink:ChemicalOrDrugOrTreatment",
      "biolink:ChemicalEntityOrGeneOrGeneProduct",
      "biolink:ChemicalEntityOrProteinOrPolypeptide",
      "biolink:PhysicalEssenceOrOccurrent",
      "biolink:ChemicalEntity"
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment