diff --git a/documentation/NameResolution.ipynb b/documentation/NameResolution.ipynb
index 658415b0..0776c2bf 100644
--- a/documentation/NameResolution.ipynb
+++ b/documentation/NameResolution.ipynb
@@ -4,274 +4,3836 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "# Name Resolution\n",
+ "# Name Resolver (NameRes)\n",
"\n",
- "Translator tools use strong identifiers for concepts, such as compact URIs (curies) from an ontology. The [NameResolution sevice](https://nameresolution-sri.renci.org) allows lookup of these curies based on a lexical name. The identifiers retrieved may then be used as input to various Translator tools."
+ "The [Babel pipelines](https://github.com/NCATSTranslator/Babel) generates sets of equivalent identifiers to be used by the [Node Normalizer](https://github.com/NCATSTranslator/NodeNormalization) to harmonize identifiers from different sources, but it also collects all known synonyms for these identifiers. The Name Resolver can be used to search through those synonyms."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "## Basic Use\n",
+ "### Instances of NodeNorm\n",
+ "\n",
+ "For the examples in this document, we will use the _development_ version of the Node Normalization Service, hosted at https://nodenormalization-sri.renci.org/ by the [Renaissance Computing Institute](https://renci.org/) (RENCI) at the University of North Carolina. This version is updated more frequently than the production instance listed below.\n",
+ "\n",
+ "The production instance of NodeNorm is hosted by the NCATS Translator project at https://nodenorm.transltr.io/docs, and may be older than the development version hosted below. As with other NCATS Translator tools, a [CI instance](https://nodenorm.ci.transltr.io/docs) and a [Test instance](https://nodenorm.test.transltr.io/docs) have also been deployed, but are not likely to be useful for non-Translator users."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Searching\n",
"\n",
"Suppose that a user has the text string \"diabetes\" and we want to turn it into an identifier. There are many concepts that might be appropriate. Perhaps they are looking for the identifier for the disease \"Diabetes Mellitus\". Or perhaps they are looking for a subtype such as \"Type 2 Diabetes Mellitus\". Or perhaps they are looking for \"diabetes drugs\". This service searches the lexical synonyms of concepts and returns those identifiers as well as the full set of synonyms for each of the returned identifiers."
]
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
"import requests\n",
"import json\n",
- "nr_url = 'https://name-resolution-sri.renci.org/lookup'"
+ "nameres_lookup_url = 'https://name-resolution-sri.renci.org/lookup'"
]
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": 43,
+ "metadata": {
+ "scrolled": true
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0011847\",\n",
+ " \"label\": \"Diabetes\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diabetes\",\n",
+ " \"diabetes NOS\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 741.0644,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005015\",\n",
+ " \"label\": \"diabetes mellitus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"dm\",\n",
+ " \"DM\",\n",
+ " \"Diabetes\",\n",
+ " \"diabetes\",\n",
+ " \"Diabetes NOS\",\n",
+ " \"diabetes (DM)\",\n",
+ " \"diabete mellitus\",\n",
+ " \"DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus\",\n",
+ " \"diabetes mellitus\",\n",
+ " \"Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus NOS\",\n",
+ " \"DIABETES MELLITUS NOS\",\n",
+ " \"DM - Diabetes mellitus\",\n",
+ " \"diabetes mellitus (DM)\",\n",
+ " \"Diabetes mellitus, NOS\",\n",
+ " \"Diabetes mellitus (DM)\",\n",
+ " \"disorder diabetes mellitus\",\n",
+ " \"diabetes mellitus (disease)\",\n",
+ " \"Diabetes mellitus (E08-E13)\",\n",
+ " \"Diabetes mellitus (disorder)\",\n",
+ " \"Unspecified diabetes mellitus\",\n",
+ " \"diabetes mellitus (diagnosis)\",\n",
+ " \"DIABETES MELLITUS NOS DIAGNOSED\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 535.44995,\n",
+ " \"clique_identifier_count\": 15\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0004782\",\n",
+ " \"label\": \"diabetes insipidus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"DI\",\n",
+ " \"diabete insipidus\",\n",
+ " \"Diabetes Insipidus\",\n",
+ " \"diabetes insipidus\",\n",
+ " \"Diabetes insipidus\",\n",
+ " \"DIABETES INSIPIDUS\",\n",
+ " \"diabetes; insipidus\",\n",
+ " \"DI - Diabetes insipidus\",\n",
+ " \"Diabetes insipidus, NOS\",\n",
+ " \"Vasopressin-related polyuria\",\n",
+ " \"Arginine vasopressin-related polyuria\",\n",
+ " \"AVP (arginine vasopressin)-related polyuria\",\n",
+ " \"Arginine vasopressin-related polyuria (disorder)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 495.3501,\n",
+ " \"clique_identifier_count\": 12\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0011073\",\n",
+ " \"label\": \"diabetes mellitus, transient neonatal, 1\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Dmtn\",\n",
+ " \"Tndm\",\n",
+ " \"TNDM\",\n",
+ " \"DMTN\",\n",
+ " \"Tndm1\",\n",
+ " \"TNDM1\",\n",
+ " \"6q24-RELATED DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus, transient neonatal 1\",\n",
+ " \"diabetes mellitus, transient neonatal 1\",\n",
+ " \"diabetes mellitus, transient neonatal, 1\",\n",
+ " \"DIABETES MELLITUS, TRANSIENT NEONATAL, 1\",\n",
+ " \"Diabetes Mellitus, Transient Neonatal, 1\",\n",
+ " \"diabetes mellitus, transient neonatal, type 1\",\n",
+ " \"Diabetes mellitus, transient neonatal 1 (disorder)\",\n",
+ " \"K ATP Associated Transient Neonatal Diabetes Mellitus\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 390.2686,\n",
+ " \"clique_identifier_count\": 8\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005148\",\n",
+ " \"label\": \"type 2 diabetes mellitus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"T2D\",\n",
+ " \"MOD\",\n",
+ " \"AODM\",\n",
+ " \"MODY\",\n",
+ " \"aodm\",\n",
+ " \"T2DM\",\n",
+ " \"niddm\",\n",
+ " \"NIDDM\",\n",
+ " \"NCDMM\",\n",
+ " \"diabetes\",\n",
+ " \"diabete type 2\",\n",
+ " \"Diabetes;Type 2\",\n",
+ " \"type 2 diabetes\",\n",
+ " \"Type 2 Diabetes\",\n",
+ " \"diabetes type 2\",\n",
+ " \"NIDDM; diabetes\",\n",
+ " \"Type 2 diabetes\",\n",
+ " \"diabetes; NIDDM\",\n",
+ " \"Diabetes Type 2\",\n",
+ " \"Type II Diabetes\",\n",
+ " \"type II diabetes\",\n",
+ " \"Type II diabetes\",\n",
+ " \"diabetes type ii\",\n",
+ " \"Diabetes, Type 2\",\n",
+ " \"diabetes, type 2\",\n",
+ " \"Diabetes Type II\",\n",
+ " \"Diabetes, Type II\",\n",
+ " \"type II; diabetes\",\n",
+ " \"diabetes, type ii\",\n",
+ " \"diabetes; type II\",\n",
+ " \"insulin resistance\",\n",
+ " \"late onset diabetes\",\n",
+ " \"adult onset diabetes\",\n",
+ " \"nonketotic; diabetes\",\n",
+ " \"Diabetes;adult onset\",\n",
+ " \"adult-onset diabetes\",\n",
+ " \"diabetes; nonketotic\",\n",
+ " \"Adult Onset Diabetes\",\n",
+ " \"Adult-Onset Diabetes\",\n",
+ " \"adult-onset; diabetes\",\n",
+ " \"DIABETES, ADULT ONSET\",\n",
+ " \"diabetes; adult-onset\",\n",
+ " \"Maturity Onset Diabetes\",\n",
+ " \"Maturity onset diabetes\",\n",
+ " \"MATURITY-ONSET DIABETES\",\n",
+ " \"maturity onset diabetes\",\n",
+ " \"Maturity-Onset Diabetes\",\n",
+ " \"NIDDM diabetes mellitus\",\n",
+ " \"maturity-onset diabetes\",\n",
+ " \"type 2 diabetes mellitus\",\n",
+ " \"DIABETES, MATURITY ONSET\",\n",
+ " \"Type 2 Diabetes Mellitus\",\n",
+ " \"Diabetes, Maturity-Onset\",\n",
+ " \"maturity-onset; diabetes\",\n",
+ " \"TYPE 2 DIABETES MELLITUS\",\n",
+ " \"Stable Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus type 2\",\n",
+ " \"Type 2 diabetes mellitus\",\n",
+ " \"diabetes mellitis type 2\",\n",
+ " \"diabetes mellitus type 2\",\n",
+ " \"diabetes; maturity-onset\",\n",
+ " \"diabetes mellitus type ii\",\n",
+ " \"diabetes mellitis type II\",\n",
+ " \"Type II Diabetes mellitus\",\n",
+ " \"Type II Diabetes Mellitus\",\n",
+ " \"Diabetes Mellitus, Stable\",\n",
+ " \"Diabetes Mellitus, Type 2\",\n",
+ " \"Diabetes mellitus Type II\",\n",
+ " \"type ii diabetes mellitus\",\n",
+ " \"Diabetes mellitus type II\",\n",
+ " \"type II diabetes mellitus\",\n",
+ " \"Type II diabetes mellitus\",\n",
+ " \"DIABETES MELLITUS, TYPE 2\",\n",
+ " \"Diabetes mellitus, type 2\",\n",
+ " \"diabetes mellitus, type 2\",\n",
+ " \"Diabetes mellitus (NIDDM)\",\n",
+ " \"Diabetes mellitus, Type 2\",\n",
+ " \"diabetes mellitus, type II\",\n",
+ " \"Diabetes Mellitus, Type II\",\n",
+ " \"Diabetes mellitus, type II\",\n",
+ " \"DIABETES MELLITUS, TYPE II\",\n",
+ " \"ketosis resistant diabetes\",\n",
+ " \"Diabetes;non insulin depend\",\n",
+ " \"DIABETES, KETOSIS RESISTANT\",\n",
+ " \"Slow-Onset Diabetes Mellitus\",\n",
+ " \"Diabetes Mellitus, Slow-Onset\",\n",
+ " \"noninsulin dependent diabetes\",\n",
+ " \"Noninsulin Dependent Diabetes\",\n",
+ " \"Non-ins-dep diabetes mellitus\",\n",
+ " \"ADULT ONSET DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus - adult ons\",\n",
+ " \"adult onset diabetes mellitus\",\n",
+ " \"Adult-Onset Diabetes Mellitus\",\n",
+ " \"Noninsulin-dependent diabetes\",\n",
+ " \"Diabetes Mellitus, Slow Onset\",\n",
+ " \"Diabetes Mellitus, Adult-Onset\",\n",
+ " \"Maturity onset diabetes mellit\",\n",
+ " \"non insulin dependent diabetes\",\n",
+ " \"Non-insulin dependent diabetes\",\n",
+ " \"Non-Insulin Dependent Diabetes\",\n",
+ " \"Diabetes Mellitus, Adult Onset\",\n",
+ " \"Diabetes non-insulin dependent\",\n",
+ " \"Non-insulin-dependent diabetes\",\n",
+ " \"NIDDM-Non-ins dep diabetes mel\",\n",
+ " \"non-insulin dependent diabetes\",\n",
+ " \"T2DM - Type 2 Diabetes mellitus\",\n",
+ " \"DIABETES MELLITUS (ADULT ONSET)\",\n",
+ " \"non-insulin-dependent; diabetes\",\n",
+ " \"T2DM - diabetes mellitus type 2\",\n",
+ " \"T2DM - type 2 diabetes mellitus\",\n",
+ " \"diabetes; non-insulin-dependent\",\n",
+ " \"Diabetes mellitus - adult onset\",\n",
+ " \"Diabetes mellitus maturity onset\",\n",
+ " \"Maturity onset diabetes mellitus\",\n",
+ " \"Maturity Onset Diabetes Mellitus\",\n",
+ " \"Maturity-Onset Diabetes Mellitus\",\n",
+ " \"DIABETES MELLITUS NOS LATE ONSET\",\n",
+ " \"insulin resistance susceptibility\",\n",
+ " \"DIABETES MELLITUS NON INSULIN-DEP\",\n",
+ " \"Diabetes Mellitus, Maturity Onset\",\n",
+ " \"Diabetes Mellitus, Maturity-Onset\",\n",
+ " \"Diabetes mellitus, adult onset type\",\n",
+ " \"Diabetes mellitus type 2 (disorder)\",\n",
+ " \"insulin resistance, severe, digenic\",\n",
+ " \"Ketosis-Resistant Diabetes Mellitus\",\n",
+ " \"Type 2 diabetes mellitus (diagnosis)\",\n",
+ " \"Diabetes Mellitus, Ketosis Resistant\",\n",
+ " \"Diabetes Mellitus, Ketosis-Resistant\",\n",
+ " \"INSULIN RESISTANCE, SUSCEPTIBILITY TO\",\n",
+ " \"insulin resistance, susceptibility to\",\n",
+ " \"noninsulin-dependent diabetes mellitus\",\n",
+ " \"Noninsulin-dependent diabetes mellitus\",\n",
+ " \"NONINSULIN-DEPENDENT DIABETES MELLITUS\",\n",
+ " \"Noninsulin-Dependent Diabetes Mellitus\",\n",
+ " \"noninsulin dependent diabetes mellitus\",\n",
+ " \"Noninsulin dependent diabetes mellitus\",\n",
+ " \"Noninsulin Dependent Diabetes Mellitus\",\n",
+ " \"DIABETES MELLITUS NON INSULIN DEPENDENT\",\n",
+ " \"Diabetes Mellitus, Noninsulin-Dependent\",\n",
+ " \"Non-Insulin-Dependent Diabetes Mellitus\",\n",
+ " \"non-insulin dependent diabetes mellitus\",\n",
+ " \"non-insulin-dependent diabetes mellitus\",\n",
+ " \"Diabetes Mellitus, Noninsulin Dependent\",\n",
+ " \"Non-insulin-dependent diabetes mellitus\",\n",
+ " \"Non-insulin dependent diabetes mellitus\",\n",
+ " \"diabetes mellitus, noninsulin-dependent\",\n",
+ " \"Diabetes mellitus non-insulin-dependent\",\n",
+ " \"DIABETES MELLITUS, NONINSULIN-DEPENDENT\",\n",
+ " \"Non-Insulin Dependent Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus, noninsulin-dependent\",\n",
+ " \"Diabetes Mellitus, Non Insulin Dependent\",\n",
+ " \"Diabetes Mellitus, Non-Insulin-Dependent\",\n",
+ " \"DIABETES MELLITUS, NON-INSULIN DEPENDENT\",\n",
+ " \"diabetes mellitus, noninsulin-dependent, 2\",\n",
+ " \"type 2 diabetes mellitus, susceptibility to\",\n",
+ " \"diabetes mellitus, type 2, susceptibility to\",\n",
+ " \"TYPE 2 DIABETES MELLITUS, PROTECTION AGAINST\",\n",
+ " \"DIABETES MELLITUS, TYPE 2, PROTECTION AGAINST\",\n",
+ " \"diabetes mellitus, type II, susceptibility to\",\n",
+ " \"diabetes mellitus, type 2, protection against\",\n",
+ " \"insulin resistance susceptibility (diagnosis)\",\n",
+ " \"type 2 diabetes mellitus non-insulin dependent\",\n",
+ " \"Type 2 Diabetes Mellitus Non-Insulin Dependent\",\n",
+ " \"NIDDM - Non-insulin dependent diabetes mellitus\",\n",
+ " \"diabetes mellitus, noninsulin-dependent, late onset\",\n",
+ " \"diabetes mellitus, noninsulin-dependent, association with\",\n",
+ " \"diabetes mellitus, noninsulin-dependent, susceptibility to\",\n",
+ " \"hypertension, insulin resistance-related, susceptibility to\",\n",
+ " \"diabetes mellitus, non-insulin-dependent, susceptibility to\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 361.55853,\n",
+ " \"clique_identifier_count\": 21\n",
+ " }\n",
+ "]\n"
+ ]
+ }
+ ],
+ "source": [
+ "response = requests.post(nameres_lookup_url, params={'string':'diabetes', 'limit': 5})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Note also that we returned 5 results. The `limit` parameter, which defaults to 10, sets the maximum number of results that come back."
+ ]
+ },
+ {
+ "cell_type": "markdown",
"metadata": {},
+ "source": [
+ "Results can be batched using the `offset` parameter. Here we'll get the first two results by setting `limit=2` and then show that we can get only the second result by setting `limit=1` and `offset=1`"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 44,
+ "metadata": {
+ "scrolled": true
+ },
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "{\n",
- " \"MONDO:0005147\": [\n",
- " \"Type 1 diabetes\",\n",
- " \"type 1 diabetes\",\n",
- " \"diabetes mellitis type 1\",\n",
- " \"IDDM\",\n",
- " \"Type I diabetes\",\n",
- " \"type I diabetes\",\n",
- " \"juvenile diabetes\",\n",
- " \"Diabetes mellitus Type I\",\n",
- " \"diabetes mellitis type I\",\n",
- " \"immune mediated diabetes\",\n",
- " \"type I diabetes mellitus\",\n",
- " \"Juvenile diabetes mellitus\",\n",
- " \"insulin dependent diabetes\",\n",
- " \"Insulin-dependent diabetes mellitus\",\n",
- " \"insulin dependent diabetes mellitus\",\n",
- " \"insulin-dependent diabetes mellitus\"\n",
- " ],\n",
- " \"MONDO:0009100\": [\n",
- " \"diabetes mellitus, type 1\",\n",
- " \"IDDM\",\n",
- " \"IDDM1\",\n",
- " \"juvenile-onset diabetes\",\n",
- " \"diabetes mellitus, insulin-dependent\",\n",
- " \"insulin-dependent diabetes mellitus 1\",\n",
- " \"diabetes mellitus, insulin-dependent, 1\",\n",
- " \"diabetes mellitus, insulin-dependent; IDDM\"\n",
- " ],\n",
- " \"MONDO:0007454\": [\n",
- " \"INS type 1 diabetes mellitus\",\n",
- " \"type 1 diabetes mellitus caused by mutation in INS\",\n",
- " \"IDDM2\",\n",
- " \"insulin-dependent diabetes mellitus 2\",\n",
- " \"diabetes mellitus, insulin-dependent, 2\",\n",
- " \"diabetes mellitus, insulin-dependent, type 2\"\n",
- " ],\n",
- " \"MONDO:0007452\": [\n",
- " \"diabetes mellitus MODY type 1\",\n",
- " \"type 1 maturity-onset diabetes of the young\",\n",
- " \"maturity onset diabetes of the Young, type 1\",\n",
- " \"maturity-onset diabetes of the young, type 1\",\n",
- " \"maturity-onset diabetes of the young, type 1; MODY1\",\n",
- " \"MODY1\",\n",
- " \"MODY type 1\",\n",
- " \"MODY, type 1\",\n",
- " \"MODY HNF4A related\",\n",
- " \"diabetes mellitus type 2\",\n",
- " \"mild juvenile diabetes mellitus\",\n",
- " \"HNF4A-associated monogenic diabetes\",\n",
- " \"hepatocyte nuclear Factor 4-Alpha associated monogenic diabetes\"\n",
- " ],\n",
- " \"MONDO:0012921\": [\n",
- " \"CCR5 type 1 diabetes mellitus\",\n",
- " \"type 1 diabetes mellitus caused by mutation in CCR5\",\n",
- " \"IDDM22\",\n",
- " \"insulin-dependent diabetes mellitus 22\",\n",
- " \"diabetes mellitus, insulin-dependent, 22\",\n",
- " \"diabetes mellitus, insulin-dependent, type 22\",\n",
- " \"diabetes mellitus, insulin-dependent, 22; IDDM22\"\n",
- " ],\n",
- " \"MONDO:0010863\": [\n",
- " \"SUMO4 type 1 diabetes mellitus\",\n",
- " \"type 1 diabetes mellitus caused by mutation in SUMO4\",\n",
- " \"IDDM5\",\n",
- " \"insulin-dependent diabetes mellitus 5\",\n",
- " \"diabetes mellitus, insulin-dependent, 5\",\n",
- " \"diabetes mellitus, insulin-dependent, type 5\",\n",
- " \"diabetes mellitus, insulin-dependent, 5; IDDM5\"\n",
- " ],\n",
- " \"MONDO:0011068\": [\n",
- " \"CTLA4 type 1 diabetes mellitus\",\n",
- " \"diabetes mellitus, insulin-dependent, type 12\",\n",
- " \"type 1 diabetes mellitus caused by mutation in CTLA4\",\n",
- " \"IDDM12\",\n",
- " \"insulin-dependent diabetes mellitus 12\",\n",
- " \"diabetes mellitus, insulin-dependent, 12\",\n",
- " \"diabetes mellitus, insulin-dependent, 12; IDDM12\"\n",
- " ],\n",
- " \"MONDO:0011168\": [\n",
- " \"IL2RA type 1 diabetes mellitus\",\n",
- " \"diabetes mellitus, insulin-dependent, type 10\",\n",
- " \"type 1 diabetes mellitus caused by mutation in IL2RA\",\n",
- " \"IDDM10\",\n",
- " \"insulin-dependent diabetes mellitus 10\",\n",
- " \"diabetes mellitus, insulin-dependent, 10\",\n",
- " \"diabetes mellitus, insulin-dependent, 10; IDDM10\"\n",
- " ],\n",
- " \"MONDO:0012919\": [\n",
- " \"HNF1A type 1 diabetes mellitus\",\n",
- " \"type 1 diabetes mellitus caused by mutation in HNF1A\",\n",
- " \"IDDM20\",\n",
- " \"insulin-dependent diabetes mellitus 20\",\n",
- " \"diabetes mellitus, insulin-dependent, 20\",\n",
- " \"diabetes mellitus, insulin-dependent, type 20\",\n",
- " \"diabetes mellitus, insulin-dependent, 20; IDDM20\"\n",
- " ],\n",
- " \"MONDO:0014488\": [\n",
- " \"TBC1D4 type 2 diabetes mellitus\",\n",
- " \"type 2 diabetes mellitus caused by mutation in TBC1D4\",\n",
- " \"NIDDM5\",\n",
- " \"diabetes mellitus, noninsulin-dependent, 5\",\n",
- " \"diabetes mellitus, noninsulin-dependent, type 5\",\n",
- " \"diabetes mellitus, noninsulin-dependent, 5; NIDDM5\"\n",
- " ]\n",
- "}\n"
+ "These are the first two results:\n",
+ "[\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0011847\",\n",
+ " \"label\": \"Diabetes\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diabetes\",\n",
+ " \"diabetes NOS\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 741.0644,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005015\",\n",
+ " \"label\": \"diabetes mellitus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"dm\",\n",
+ " \"DM\",\n",
+ " \"Diabetes\",\n",
+ " \"diabetes\",\n",
+ " \"Diabetes NOS\",\n",
+ " \"diabetes (DM)\",\n",
+ " \"diabete mellitus\",\n",
+ " \"DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus\",\n",
+ " \"diabetes mellitus\",\n",
+ " \"Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus NOS\",\n",
+ " \"DIABETES MELLITUS NOS\",\n",
+ " \"DM - Diabetes mellitus\",\n",
+ " \"diabetes mellitus (DM)\",\n",
+ " \"Diabetes mellitus, NOS\",\n",
+ " \"Diabetes mellitus (DM)\",\n",
+ " \"disorder diabetes mellitus\",\n",
+ " \"diabetes mellitus (disease)\",\n",
+ " \"Diabetes mellitus (E08-E13)\",\n",
+ " \"Diabetes mellitus (disorder)\",\n",
+ " \"Unspecified diabetes mellitus\",\n",
+ " \"diabetes mellitus (diagnosis)\",\n",
+ " \"DIABETES MELLITUS NOS DIAGNOSED\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 535.44995,\n",
+ " \"clique_identifier_count\": 15\n",
+ " }\n",
+ "]\n",
+ "\n",
+ "And this is just the second result:\n",
+ "[\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005015\",\n",
+ " \"label\": \"diabetes mellitus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"dm\",\n",
+ " \"DM\",\n",
+ " \"Diabetes\",\n",
+ " \"diabetes\",\n",
+ " \"Diabetes NOS\",\n",
+ " \"diabetes (DM)\",\n",
+ " \"diabete mellitus\",\n",
+ " \"DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus\",\n",
+ " \"diabetes mellitus\",\n",
+ " \"Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus NOS\",\n",
+ " \"DIABETES MELLITUS NOS\",\n",
+ " \"DM - Diabetes mellitus\",\n",
+ " \"diabetes mellitus (DM)\",\n",
+ " \"Diabetes mellitus, NOS\",\n",
+ " \"Diabetes mellitus (DM)\",\n",
+ " \"disorder diabetes mellitus\",\n",
+ " \"diabetes mellitus (disease)\",\n",
+ " \"Diabetes mellitus (E08-E13)\",\n",
+ " \"Diabetes mellitus (disorder)\",\n",
+ " \"Unspecified diabetes mellitus\",\n",
+ " \"diabetes mellitus (diagnosis)\",\n",
+ " \"DIABETES MELLITUS NOS DIAGNOSED\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 535.44995,\n",
+ " \"clique_identifier_count\": 15\n",
+ " }\n",
+ "]\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(\"These are the first two results:\")\n",
+ "response = requests.post(nameres_lookup_url, params={'string':'diabetes','limit':2})\n",
+ "print(json.dumps(response.json(),indent=2))\n",
+ "\n",
+ "print('\\nAnd this is just the second result:')\n",
+ "response = requests.post(nameres_lookup_url, params={'string':'diabetes','limit':1, 'offset':1})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "If you're unsure about which part of the search query matched the search result, you can use the `highlighting` flag to check."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 45,
+ "metadata": {
+ "scrolled": true
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[\n",
+ " {\n",
+ " \"curie\": \"CHEBI:15379\",\n",
+ " \"label\": \"Oxygen\",\n",
+ " \"highlighting\": {\n",
+ " \"labels\": [\n",
+ " \"Oxygen\"\n",
+ " ],\n",
+ " \"synonyms\": [\n",
+ " \"OXYGEN\"\n",
+ " ]\n",
+ " },\n",
+ " \"synonyms\": [\n",
+ " \"O\",\n",
+ " \"O2\",\n",
+ " \"sO2\",\n",
+ " \"1O2\",\n",
+ " \"o 2\",\n",
+ " \"[OO]\",\n",
+ " \"e948\",\n",
+ " \"E948\",\n",
+ " \"O>2<\",\n",
+ " \"e-948\",\n",
+ " \"(1)O2\",\n",
+ " \"E 948\",\n",
+ " \"E-948\",\n",
+ " \"1[O2]\",\n",
+ " \"e 948\",\n",
+ " \"OXYGEN\",\n",
+ " \"O2(2.)\",\n",
+ " \"oxygen\",\n",
+ " \"Oxygen\",\n",
+ " \"Dioxygen\",\n",
+ " \"O2 therp\",\n",
+ " \"(O2)(2.)\",\n",
+ " \"dioxygen\",\n",
+ " \"(O2)(..)\",\n",
+ " \"O element\",\n",
+ " \"On oxygen\",\n",
+ " \"Dioxidene\",\n",
+ " \"Dioxygene\",\n",
+ " \"dioxygene\",\n",
+ " \"Oxygen-16\",\n",
+ " \"Oxygen 16\",\n",
+ " \"Oxygen USP\",\n",
+ " \"O2 element\",\n",
+ " \"O2 therapy\",\n",
+ " \"o2 therapy\",\n",
+ " \"O2 - Oxygen\",\n",
+ " \"Oxygen, NOS\",\n",
+ " \"O2 - oxygen\",\n",
+ " \"Pure oxygen\",\n",
+ " \"Disauerstoff\",\n",
+ " \"dioxidanediyl\",\n",
+ " \"O2\",\n",
+ " \"singlet oxygen\",\n",
+ " \"Oxygen Therapy\",\n",
+ " \"Singlet oxygen\",\n",
+ " \"oxygen therapy\",\n",
+ " \"Singlet Oxygen\",\n",
+ " \"Oxygen therapy\",\n",
+ " \"Chemical oxygen\",\n",
+ " \"OXYGEN molecule\",\n",
+ " \"Oxigeno gaseoso\",\n",
+ " \"Oxygen, Singlet\",\n",
+ " \"OXYGEN MOLECULE\",\n",
+ " \"molecular oxygen\",\n",
+ " \"triplet dioxygen\",\n",
+ " \"singlet dioxygen\",\n",
+ " \"Elemental oxygen\",\n",
+ " \"oxygen therapies\",\n",
+ " \"Molecular oxygen\",\n",
+ " \"Singlet Dioxygen\",\n",
+ " \"Dioxygen, Singlet\",\n",
+ " \"oxygen (treatment)\",\n",
+ " \"Oxygen (substance)\",\n",
+ " \"Oxygen Therapy Care\",\n",
+ " \"Oxygen therapy, NOS\",\n",
+ " \"oxygenation therapy\",\n",
+ " \"Oxygen therapy care\",\n",
+ " \"oxygen administration\",\n",
+ " \"dioxygen(2.) (triplet)\",\n",
+ " \"INHALATION THER OXYGEN\",\n",
+ " \"OXYGEN INHALATION THER\",\n",
+ " \"THER OXYGEN INHALATION\",\n",
+ " \"RNIx oxygen therapy care\",\n",
+ " \"triplet molecular oxygen\",\n",
+ " \"singlet molecular oxygen\",\n",
+ " \"Singlet Molecular Oxygen\",\n",
+ " \"oxygen inhalation therapy\",\n",
+ " \"Oxygen-containing product\",\n",
+ " \"Oxygen Inhalation Therapy\",\n",
+ " \"Singlet oxygen (substance)\",\n",
+ " \"Inhalation Therapy, Oxygen\",\n",
+ " \"Oxygen therapy (procedure)\",\n",
+ " \"Therapy, Oxygen Inhalation\",\n",
+ " \"Oxygen Inhalation Therapies\",\n",
+ " \"Therapies, Oxygen Inhalation\",\n",
+ " \"Inhalation Therapies, Oxygen\",\n",
+ " \"RNAx perform oxygen therapy care\",\n",
+ " \"RNIx oxygen therapy care (treatment)\",\n",
+ " \"Breathing management each 15 minutes\",\n",
+ " \"RNAx perform oxygen therapy care (treatment)\",\n",
+ " \"Product containing oxygen (medicinal product)\",\n",
+ " \"oxygen 99 % Gas for Inhalation\",\n",
+ " \"OXYGEN 99 L in 100 L NASAL GAS\",\n",
+ " \"OXYGEN 99 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 990 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 990 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99 L in 99 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 990 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 990 mL in 1 L RESPIRATORY (INHALATION) Gas\",\n",
+ " \"Oxygen 990 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 990 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 99 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99 in 100 L RESPIRATORY (INHALATION) LIQUID\",\n",
+ " \"OXYGEN 99 L in 100 L RESPIRATORY (INHALATION) GAS [OXYGEN]\",\n",
+ " \"OXYGEN 0.99 kg in 1 kg RESPIRATORY (INHALATION) GAS [Oxygen Refrigerated Liquid]\",\n",
+ " \"Oxygen 99.5% gas for inhalation\",\n",
+ " \"oxygen 99.5 % Gas for Inhalation\",\n",
+ " \"Oxygen 995,000 ppm gas for inhalation\",\n",
+ " \"Oxygen 0.995 mL/mL gas for inhalation\",\n",
+ " \"OXYGEN 995 L in 1 L RESPIRATORY (INHALATION) Gas\",\n",
+ " \"OXYGEN .995 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 995 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99.5 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 995 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 995 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99.5 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 0.995 mL in 1 L RESPIRATORY (INHALATION) GAS [Oxygen Compressed U.S.P]\",\n",
+ " \"OXYGEN 0.995 mL in 1 L RESPIRATORY (INHALATION) GAS [Oxygen Refrigerated Liquid U.S.P]\",\n",
+ " \"Product containing precisely oxygen 0.995 milliliter/1 milliliter conventional release gas for inhalation (clinical drug)\",\n",
+ " \"oxygen 99.6 % Gas for Inhalation\",\n",
+ " \"OXYGEN 996 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99.6 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 99.9 % Gas for Inhalation\",\n",
+ " \"OXYGEN 999 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 999 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 999 L in 1000 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99.9 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 99 L in 100 L RESPIRATORY (INHALATION) GAS [Oxygen 64889-0001]\",\n",
+ " \"oxygen 99.7 % Gas for Inhalation\",\n",
+ " \"Oxygen 997 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 997 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 21 % Gas for Inhalation\",\n",
+ " \"Oxygen 210 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 210 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 210 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 210 mg in 1 kg RESPIRATORY (INHALATION) LIQUID\",\n",
+ " \"OXYGEN 21 kg in 100 L RESPIRATORY (INHALATION) INHALANT\",\n",
+ " \"OXYGEN 210 mL in 1 L RESPIRATORY (INHALATION) GAS [Oxygen]\",\n",
+ " \"OXYGEN 21 L in 100 L RESPIRATORY (INHALATION) GAS [MEDICAL AIR]\",\n",
+ " \"Oxygen 21 L in 100 L RESPIRATORY (INHALATION) GAS [Air, Compressed]\",\n",
+ " \"oxygen 99.1 % Gas for Inhalation\",\n",
+ " \"OXYGEN 991 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 991 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 97 % Gas for Inhalation\",\n",
+ " \"OXYGEN 97 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 99.8 % Gas for Inhalation\",\n",
+ " \"OXYGEN 998 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 998 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"nitrogen 70 % / oxygen 30 % Gas for Inhalation\",\n",
+ " \"OXYGEN 300 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"nitrogen 60 % / oxygen 40 % Gas for Inhalation\",\n",
+ " \"Oxygen 400 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 400 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"helium 75 % / oxygen 25 % Gas for Inhalation\",\n",
+ " \"OXYGEN 250 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 992mL/1L Inhalation gas\",\n",
+ " \"oxygen 99.2 % Gas for Inhalation\",\n",
+ " \"Oxygen 992 mL in 1 L CUTANEOUS GAS\",\n",
+ " \"OXYGEN 992 in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 992 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 992 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 992 L in 1000 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 992 L in 1000 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 1.13835106 kg in 1 L RESPIRATORY (INHALATION) LIQUID\",\n",
+ " \"OXYGEN 992 mL in 100 mL RESPIRATORY (INHALATION) GAS [Oxygen Compressed]\",\n",
+ " \"oxygen Gas for Inhalation\",\n",
+ " \"oxygen 99.9 %\",\n",
+ " \"oxygen 90 %\",\n",
+ " \"oxygen 97 %\",\n",
+ " \"oxygen 95 %\",\n",
+ " \"oxygen 99 %\",\n",
+ " \"oxygen 99.5 %\",\n",
+ " \"oxygen 99.6 %\",\n",
+ " \"oxygen 21 %\",\n",
+ " \"oxygen 99.8 %\",\n",
+ " \"oxygen 99.2 %\",\n",
+ " \"oxygen 80 %\",\n",
+ " \"oxygen 20 %\",\n",
+ " \"oxygen 35 %\",\n",
+ " \"oxygen 50 %\",\n",
+ " \"oxygen 40 %\",\n",
+ " \"oxygen 30 %\",\n",
+ " \"oxygen 85 %\",\n",
+ " \"oxygen 70 %\",\n",
+ " \"oxygen 5 %\",\n",
+ " \"oxygen 99.7 %\",\n",
+ " \"oxygen 60 %\",\n",
+ " \"oxygen 25 %\",\n",
+ " \"oxygen 93 %\",\n",
+ " \"oxygen 99.1 %\",\n",
+ " \"oxygen 20 % Gas for Inhalation\",\n",
+ " \"OXYGEN 20 L in 100 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 200 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"Oxygen 200 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"nitrogen (inactive) 80 % / oxygen 20 % Gas for Inhalation\",\n",
+ " \"helium 50 % / oxygen 50 % Gas for Inhalation\",\n",
+ " \"OXYGEN 500 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 88 %\",\n",
+ " \"100% oxygen\",\n",
+ " \"oxygen 100 %\",\n",
+ " \"Oxygen 100% gas for inhalation\",\n",
+ " \"oxygen 100 % Gas for Inhalation\",\n",
+ " \"Oxygen 1 mL/mL gas for inhalation\",\n",
+ " \"Oxygen 1,000,000 ppm gas for inhalation\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Oxygen]\",\n",
+ " \"OXYGEN 1000 g in 1 L RESPIRATORY (INHALATION) LIQUID [Oxygen]\",\n",
+ " \"OXYGEN 659 L in 659 L RESPIRATORY (INHALATION) GAS [Oxygen Size E]\",\n",
+ " \"OXYGEN 396 L in 396 L RESPIRATORY (INHALATION) GAS [Oxygen Size D]\",\n",
+ " \"OXYGEN 240 L in 240 L RESPIRATORY (INHALATION) GAS [Oxygen Size C]\",\n",
+ " \"OXYGEN 196 L in 196 L RESPIRATORY (INHALATION) GAS [Oxygen Size B]\",\n",
+ " \"OXYGEN 8688 L in 8688 L RESPIRATORY (INHALATION) GAS [Oxygen Size T]\",\n",
+ " \"OXYGEN 1567 L in 1567 L RESPIRATORY (INHALATION) GAS [Oxygen Size F]\",\n",
+ " \"OXYGEN 6931 L in 6931 L RESPIRATORY (INHALATION) GAS [Oxygen Size H]\",\n",
+ " \"OXYGEN 3453 L in 3453 L RESPIRATORY (INHALATION) GAS [Oxygen Size M]\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Oxygen Compressed Gas]\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Oxygen, Compressed Gas]\",\n",
+ " \"OXYGEN 11321 L in 11321 L RESPIRATORY (INHALATION) GAS [Oxygen Size 400]\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Medical Oxygen Compressed]\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Medical Gasseous Oxygen Cylinders]\",\n",
+ " \"OXYGEN 1 L in 1 L RESPIRATORY (INHALATION) GAS [Oxygen Compressed UN 1072 Refrigerated UN 1073]\",\n",
+ " \"Product containing precisely oxygen 1 milliliter/1 milliliter conventional release gas for inhalation (clinical drug)\",\n",
+ " \"nitrogen 10 % / oxygen 90 % Gas for Inhalation\",\n",
+ " \"oxygen 90 % / nitrogen 10 % Gas for Inhalation\",\n",
+ " \"OXYGEN 900 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"nitrogen (inactive) 10 % / oxygen 90 % Gas for Inhalation\",\n",
+ " \"nitrogen 20 % / oxygen 80 % Gas for Inhalation\",\n",
+ " \"oxygen 80 % / nitrogen 20 % Gas for Inhalation\",\n",
+ " \"OXYGEN 800 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"nitrogen (inactive) 20 % / oxygen 80 % Gas for Inhalation\",\n",
+ " \"nitrogen 75 % / oxygen 25 % Gas for Inhalation\",\n",
+ " \"oxygen 33 %\",\n",
+ " \"helium 67 % / oxygen 33 % Gas for Inhalation\",\n",
+ " \"OXYGEN 330 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 60 % Gas for Inhalation\",\n",
+ " \"OXYGEN 600 mL in 1 L RESPIRATORY (INHALATION) GAS\",\n",
+ " \"oxygen 45 %\",\n",
+ " \"oxygen Inhalant Product\",\n",
+ " \"Oxygen-containing product in gas for inhalation\",\n",
+ " \"Product containing oxygen in conventional release gas for inhalation (medicinal product form)\",\n",
+ " \"oxygen 20.4 %\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:Drug\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:MolecularMixture\",\n",
+ " \"biolink:ChemicalMixture\"\n",
+ " ],\n",
+ " \"score\": 5419.3174,\n",
+ " \"clique_identifier_count\": 158\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"CHEBI:25805\",\n",
+ " \"label\": \"oxygen atom\",\n",
+ " \"highlighting\": {\n",
+ " \"labels\": [\n",
+ " \"oxygen atom\"\n",
+ " ],\n",
+ " \"synonyms\": [\n",
+ " \"oxygen\"\n",
+ " ]\n",
+ " },\n",
+ " \"synonyms\": [\n",
+ " \"O\",\n",
+ " \"8O\",\n",
+ " \"O(2.)\",\n",
+ " \"oxygen\",\n",
+ " \"Oxygen\",\n",
+ " \"oxigeno\",\n",
+ " \"oxygene\",\n",
+ " \"monooxygen\",\n",
+ " \"Sauerstoff\",\n",
+ " \"oxidanediyl\",\n",
+ " \"oxygen atom\",\n",
+ " \"Atomic oxygen\",\n",
+ " \"atomic oxygen\",\n",
+ " \"monooxygen(2.) (triplet)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 459.23196,\n",
+ " \"clique_identifier_count\": 6\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"CHEBI:30494\",\n",
+ " \"label\": \"OXYGEN FLUORIDE\",\n",
+ " \"highlighting\": {\n",
+ " \"labels\": [\n",
+ " \"OXYGEN FLUORIDE\"\n",
+ " ],\n",
+ " \"synonyms\": [\n",
+ " \"OXYGEN FLUORIDE\",\n",
+ " \"OXYGEN FLUORIDE\"\n",
+ " ]\n",
+ " },\n",
+ " \"synonyms\": [\n",
+ " \"OF2\",\n",
+ " \"[OF2]\",\n",
+ " \"oxyfluoride\",\n",
+ " \"OXYGEN FLUORIDE\",\n",
+ " \"Oxygen fluoride\",\n",
+ " \"difluoridooxygen\",\n",
+ " \"Fluorine monoxide\",\n",
+ " \"fluorine monoxide\",\n",
+ " \"Oxygen difluoride\",\n",
+ " \"oxygen difluoride\",\n",
+ " \"Difluorine monoxide\",\n",
+ " \"Fluorine monoxide (substance)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 374.27283,\n",
+ " \"clique_identifier_count\": 8\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"CHEBI:36932\",\n",
+ " \"label\": \"oxygen-15 atom\",\n",
+ " \"highlighting\": {\n",
+ " \"labels\": [\n",
+ " \"oxygen-15 atom\"\n",
+ " ],\n",
+ " \"synonyms\": [\n",
+ " \"oxygen-15\",\n",
+ " \"oxygen-15\"\n",
+ " ]\n",
+ " },\n",
+ " \"synonyms\": [\n",
+ " \"15-O\",\n",
+ " \"(15)O\",\n",
+ " \"(15)8O\",\n",
+ " \"oxygen-15\",\n",
+ " \"Oxygen-15\",\n",
+ " \"oxygen-15 atom\",\n",
+ " \"15O radioisotope\",\n",
+ " \"O-15 radioisotope\",\n",
+ " \"Oxygen-15 (substance)\",\n",
+ " \"oxygen, isotope of mass 15\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 323.09457,\n",
+ " \"clique_identifier_count\": 6\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UMLS:C1547125\",\n",
+ " \"label\": \"Oxygen Equipment Location\",\n",
+ " \"highlighting\": {\n",
+ " \"labels\": [\n",
+ " \"Oxygen Equipment Location\"\n",
+ " ],\n",
+ " \"synonyms\": [\n",
+ " \"Oxygen\"\n",
+ " ]\n",
+ " },\n",
+ " \"synonyms\": [\n",
+ " \"Oxygen\",\n",
+ " \"Oxygen Equipment Location\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:InformationContentEntity\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 276.53452,\n",
+ " \"clique_identifier_count\": 1\n",
+ " }\n",
+ "]\n"
]
}
],
"source": [
- "params = {'string':'type 1 diabetes'}\n",
- "response = requests.post(nr_url,params=params)\n",
- "print(json.dumps(response.json(),indent=1))"
+ "response = requests.post(nameres_lookup_url, params={'string':'oxygen', 'highlighting':True, 'limit': 5})\n",
+ "print(json.dumps(response.json(),indent=2))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "Note that the string matches include partial matches. For instance CHEBI:76916 does not have a synonym of \"diabetes\", \"diabetes\" is a substring of one of its synonyms. \n",
+ "## Filtering options\n",
"\n",
- "Note also that we returned 10 results. The `limit` parameter, which defaults to 10, sets the maximum number of results that come back. Setting `limit` to -1 brings back all results."
+ "NameRes allows you to filter search results in several ways:\n",
+ "1. You can use `biolink_type` to filter to a particular set of Biolink types. This can be provided as a list.\n",
+ "2. You can use `only_prefixes` to only return CURIEs with a particular prefix, or `exclude_prefixes` to exclude CURIEs with a particular prefix. Currently, this can only be provided as a pipe-delimited list.\n",
+ "3. You can provide a list of taxa to `only_taxa` to filter to those taxa. Taxa should be specified as NCBI taxonomy identifiers with a `NCBITaxon:` prefix, such as `NCBITaxon:9606` (for _Homo sapiens_) or `NCBITaxon:10090` (_Mus musculus_). Currently, this can only be provided as a pipe-delimited list.\n",
+ "\n",
+ "You can apply multiple filters to the same query if you want."
]
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "{\n",
- " \"MONDO:0005015\": [\n",
- " \"diabetes\",\n",
- " \"diabetes mellitus\",\n",
- " \"DM\"\n",
- " ]\n",
- "}\n"
+ "[\n",
+ " {\n",
+ " \"curie\": \"MONDO:0022799\",\n",
+ " \"label\": \"cold urticaria\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"cold urticaria\",\n",
+ " \"Urticaria cold\",\n",
+ " \"URTICARIA COLD\",\n",
+ " \"urticaria cold\",\n",
+ " \"COLD URTICARIA\",\n",
+ " \"Cold Urticaria\",\n",
+ " \"Cold urticaria\",\n",
+ " \"Cold Urticarias\",\n",
+ " \"Urticaria, Cold\",\n",
+ " \"Urticaria due to cold\",\n",
+ " \"cold induced urticaria\",\n",
+ " \"cold contact urticaria\",\n",
+ " \"Cold-induced urticaria\",\n",
+ " \"cold-induced urticaria\",\n",
+ " \"Urticaria, cold-induced\",\n",
+ " \"Urticaria caused by cold\",\n",
+ " \"urticaria idiopathic cold\",\n",
+ " \"cold urticaria (diagnosis)\",\n",
+ " \"Cold-ind angio-edema-urticar\",\n",
+ " \"Cold-ind angio-oedema-urticar\",\n",
+ " \"Cold-induced angioedema-urticaria\",\n",
+ " \"primary idiopathic cold urticaria\",\n",
+ " \"Cold-induced angio-edema-urticaria\",\n",
+ " \"Urticaria caused by cold (disorder)\",\n",
+ " \"Cold-induced angio-oedema-urticaria\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 414.7304,\n",
+ " \"clique_identifier_count\": 11\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0010091\",\n",
+ " \"label\": \"Cold-induced sweating syndrome 1\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"CISS1\",\n",
+ " \"Crisponi syndrome\",\n",
+ " \"Crisponi Syndrome\",\n",
+ " \"Sweating, cold-induced\",\n",
+ " \"Sohar-Crisponi Syndrome\",\n",
+ " \"Sohar-Crisponi syndrome\",\n",
+ " \"Cold-induced sweating syndrome 1\",\n",
+ " \"COLD-INDUCED SWEATING SYNDROME 1\",\n",
+ " \"Cold-Induced Sweating Syndrome 1\",\n",
+ " \"cold-induced sweating syndrome 1\",\n",
+ " \"cold-induced sweating syndrome type 1\",\n",
+ " \"Crisponi/Cold-Induced Sweating Syndrome-1\",\n",
+ " \"CRISPONI/COLD-INDUCED SWEATING SYNDROME 1\",\n",
+ " \"CRISPONI/cold-induced sweating syndrome 1\",\n",
+ " \"Crisponi/cold-induced sweating syndrome 1\",\n",
+ " \"muscle contractions, Tetanoform, with characteristic face, camptodactyly, hyperthermia, and sudden death\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 359.67407,\n",
+ " \"clique_identifier_count\": 9\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0015526\",\n",
+ " \"label\": \"cold-induced sweating syndrome\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"CISS\",\n",
+ " \"Crisponi syndrome\",\n",
+ " \"CRISPONI SYNDROME\",\n",
+ " \"Sohar-Crisponi syndrome\",\n",
+ " \"SOHAR-CRISPONI SYNDROME\",\n",
+ " \"Crisponi syndrome (disorder)\",\n",
+ " \"Cold-induced sweating syndrome\",\n",
+ " \"cold-induced sweating syndrome\",\n",
+ " \"CNTF receptor-related disorders\",\n",
+ " \"Cold-induced sweating syndrome (disorder)\",\n",
+ " \"Ciliary neurotrophic factor receptor-related disorder\",\n",
+ " \"MUSCLE CONTRACTIONS, TETANOFORM, WITH CHARACTERISTIC FACE, CAMPTODACTYLY, HYPERTHERMIA, AND SUDDEN DEATH\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 350.0297,\n",
+ " \"clique_identifier_count\": 8\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0012467\",\n",
+ " \"label\": \"cold-induced sweating syndrome 2\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"CISS2\",\n",
+ " \"cold-induced sweating syndrome 2\",\n",
+ " \"COLD-INDUCED SWEATING SYNDROME 2\",\n",
+ " \"Cold-induced sweating syndrome 2\",\n",
+ " \"CLCF1 cold-induced sweating syndrome\",\n",
+ " \"cold-induced sweating syndrome type 2\",\n",
+ " \"CRISPONI/COLD-INDUCED SWEATING SYNDROME 2\",\n",
+ " \"CRISPONI/cold-induced sweating syndrome 2\",\n",
+ " \"Crisponi/cold-induced sweating syndrome 2\",\n",
+ " \"Crisponi/Cold-Induced Sweating Syndrome-2\",\n",
+ " \"[OBSOLETE] Cold-Induced Sweating Syndrome 1\",\n",
+ " \"cold-induced sweating syndrome caused by mutation in CLCF1\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 324.81805,\n",
+ " \"clique_identifier_count\": 7\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005709\",\n",
+ " \"label\": \"common cold\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Cold\",\n",
+ " \"cold\",\n",
+ " \"COLD\",\n",
+ " \"colds\",\n",
+ " \"Coryza\",\n",
+ " \"CORYZA\",\n",
+ " \"Head cold\",\n",
+ " \"head cold\",\n",
+ " \"Common cold\",\n",
+ " \"Common Cold\",\n",
+ " \"COMMON COLD\",\n",
+ " \"common cold\",\n",
+ " \"Acute coryza\",\n",
+ " \"Cold, Common\",\n",
+ " \"Common Colds\",\n",
+ " \"acute coryza\",\n",
+ " \"cold; common\",\n",
+ " \"Cold, common\",\n",
+ " \"common; cold\",\n",
+ " \"common colds\",\n",
+ " \"Colds, Common\",\n",
+ " \"Coryza, acute\",\n",
+ " \"RHINITIS ACUTE\",\n",
+ " \"Rhinitis;acute\",\n",
+ " \"rhinitis acute\",\n",
+ " \"Coryza (acute)\",\n",
+ " \"Head cold, NOS\",\n",
+ " \"Cold (Disease)\",\n",
+ " \"acute rhinitis\",\n",
+ " \"Acute rhinitis\",\n",
+ " \"URI (head cold)\",\n",
+ " \"rhino-sinusitis\",\n",
+ " \"Rhinitis, acute\",\n",
+ " \"RHINITIS, ACUTE\",\n",
+ " \"acute; rhinitis\",\n",
+ " \"rhinitis; acute\",\n",
+ " \"Infective rhinitis\",\n",
+ " \"Rhinitis infective\",\n",
+ " \"RHINITIS INFECTIOUS\",\n",
+ " \"Acute nasal catarrh\",\n",
+ " \"Rhinitis, infective\",\n",
+ " \"infective; rhinitis\",\n",
+ " \"rhinitis; infective\",\n",
+ " \"Infectious Rhinitis\",\n",
+ " \"Rhinitis (infective)\",\n",
+ " \"Nasal catarrh, acute\",\n",
+ " \"Common cold syndrome\",\n",
+ " \"Non-Allergic Rhinitis\",\n",
+ " \"catarrh; nasal, acute\",\n",
+ " \"Acute nasopharyngitis\",\n",
+ " \"acute nasopharyngitis\",\n",
+ " \"Nasopharyngitis;acute\",\n",
+ " \"nasal; catarrh, acute\",\n",
+ " \"Acute Nasopharyngitis\",\n",
+ " \"Common cold (disorder)\",\n",
+ " \"Nasopharyngitis, acute\",\n",
+ " \"nasopharyngitis, acute\",\n",
+ " \"common cold (diagnosis)\",\n",
+ " \"Nasopharyngitis - acute\",\n",
+ " \"nasopharyngitis - acute\",\n",
+ " \"Acute infective rhinitis\",\n",
+ " \"Infective nasopharyngitis\",\n",
+ " \"Acute rhinitis (disorder)\",\n",
+ " \"Acute nasopharyngitis, NOS\",\n",
+ " \"acute rhinitis (diagnosis)\",\n",
+ " \"Acute viral rhinopharyngitis\",\n",
+ " \"acute viral rhinopharyngitis\",\n",
+ " \"Infective nasopharyngitis NOS\",\n",
+ " \"Infective rhinitis (diagnosis)\",\n",
+ " \"catarrh; nasopharyngeal, acute\",\n",
+ " \"nasopharyngeal; catarrh, acute\",\n",
+ " \"Infective nasopharyngitis, NOS\",\n",
+ " \"upper respiratory infection viral\",\n",
+ " \"Upper respiratory infection acute\",\n",
+ " \"VIRAL UPPER RESPIRATORY INFECTION\",\n",
+ " \"viral upper respiratory infection\",\n",
+ " \"UPPER RESPIRATORY INFECTION VIRAL\",\n",
+ " \"acute nasopharyngitis (diagnosis)\",\n",
+ " \"Acute nasopharyngitis [common cold]\",\n",
+ " \"acute nasopharyngitis [common cold]\",\n",
+ " \"Acute nasopharyngitis (common cold)\",\n",
+ " \"viral upper respiratory infection (diagnosis)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 314.5309,\n",
+ " \"clique_identifier_count\": 21\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0277925\",\n",
+ " \"label\": \"Cold extremity\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Cold limb\",\n",
+ " \"limb coldness\",\n",
+ " \"cold extremity\",\n",
+ " \"extremity cold\",\n",
+ " \"Cold extremity\",\n",
+ " \"COLD EXTREMITY\",\n",
+ " \"extremities cold\",\n",
+ " \"cold extremities\",\n",
+ " \"COLD EXTREMITIES\",\n",
+ " \"Cold extremities\",\n",
+ " \"Coldness of limbs\",\n",
+ " \"Peripheral coldness\",\n",
+ " \"PERIPHERAL COLDNESS\",\n",
+ " \"Periphery feels cold\",\n",
+ " \"coolness extremities\",\n",
+ " \"coldness extremities\",\n",
+ " \"Coldness of extremities\",\n",
+ " \"Coolness of extremities\",\n",
+ " \"Cold extremity (finding)\",\n",
+ " \"cold extremities (physical finding)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:PhenotypicFeature\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 299.04428,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0018922\",\n",
+ " \"label\": \"cold agglutinin disease\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"CAS\",\n",
+ " \"CAD\",\n",
+ " \"cold antibody disease\",\n",
+ " \"cold agglutinin disease\",\n",
+ " \"cold agglutinin syndrome\",\n",
+ " \"cold antibody hemolytic anemia\",\n",
+ " \"Chronic cold agglutinin disease\",\n",
+ " \"chronic cold agglutinin disease\",\n",
+ " \"cold antibody hemolytic anaemia\",\n",
+ " \"anemia, hemolytic, cold antibody\",\n",
+ " \"Chronic cold agglutinin disease (disorder)\",\n",
+ " \"disease (or disorder); cold, hemagglutinin (chronic)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 291.76678,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"HP:6000855\",\n",
+ " \"label\": \"Cold intolerance\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"feel cold\",\n",
+ " \"cold feel\",\n",
+ " \"Chilly person\",\n",
+ " \"cold feelings\",\n",
+ " \"sensitive cold\",\n",
+ " \"cold sensitive\",\n",
+ " \"Feels the cold\",\n",
+ " \"intolerance cold\",\n",
+ " \"COLD INTOLERANCE\",\n",
+ " \"Cold sensitivity\",\n",
+ " \"Cold intolerance\",\n",
+ " \"sensitivity cold\",\n",
+ " \"cold sensitivity\",\n",
+ " \"cold intolerance\",\n",
+ " \"COLD SENSITIVITY\",\n",
+ " \"sensitive to cold\",\n",
+ " \"Sensitive to cold\",\n",
+ " \"Intolerant of cold\",\n",
+ " \"Intolerant of cold (finding)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:PhenotypicFeature\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 268.61484,\n",
+ " \"clique_identifier_count\": 4\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0235943\",\n",
+ " \"label\": \"Cold agglutinins detected\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Cold agglutinins present\",\n",
+ " \"COLD AGGLUTININS ELEVATED\",\n",
+ " \"COLD AGGLUTININS POSITIVE\",\n",
+ " \"Cold agglutinins detected\",\n",
+ " \"Cold agglutinins positive\",\n",
+ " \"Cold agglutinins detected (finding)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:PhenotypicFeature\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 262.07788,\n",
+ " \"clique_identifier_count\": 4\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"HP:0033850\",\n",
+ " \"label\": \"Coldness\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"coldness\",\n",
+ " \"Coldness\",\n",
+ " \"feel cold\",\n",
+ " \"cold feel\",\n",
+ " \"Cool skin\",\n",
+ " \"Chilliness\",\n",
+ " \"cold feels\",\n",
+ " \"cold touch\",\n",
+ " \"feels cold\",\n",
+ " \"Feels cold\",\n",
+ " \"CHILLINESS\",\n",
+ " \"cold to touch\",\n",
+ " \"Cold to touch\",\n",
+ " \"cold feelings\",\n",
+ " \"COLDNESS GENERAL\",\n",
+ " \"Coldness general\",\n",
+ " \"Cool skin (finding)\",\n",
+ " \"Cool skin temperature\",\n",
+ " \"Coolness to palpation\",\n",
+ " \"Cold skin temperature\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:PhenotypicFeature\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 258.05197,\n",
+ " \"clique_identifier_count\": 6\n",
+ " }\n",
+ "]\n"
]
}
],
"source": [
- "params = {'string':'diabetes','limit':1}\n",
- "response = requests.post(nr_url,params=params)\n",
- "print(json.dumps(response.json(),indent=1))"
+ "response = requests.post(nameres_lookup_url, params={'string':'cold', 'biolink_type': ['Disease', 'PhenotypicFeature']})\n",
+ "print(json.dumps(response.json(),indent=2))"
]
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": 47,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "129\n"
+ "[\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:837177\",\n",
+ " \"label\": \"NIH\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH\",\n",
+ " \"F12K11.4\",\n",
+ " \"F12K11_4\",\n",
+ " \"nuclear DEIH-boxhelicase\",\n",
+ " \"DEIH-BOX RNA/DNA HELICASE\",\n",
+ " \"A0A1P8ASP8_ARATH Nuclear DEIH-boxhelicase (trembl)\",\n",
+ " \"At-NIH\",\n",
+ " \"At1g06670\",\n",
+ " \"DEIH-box RNA/DNA helicase (Arabidopsis thaliana)\",\n",
+ " \"NIH_ARATH DExH-box ATP-dependent RNA helicase DExH2 (sprot)\",\n",
+ " \"DExH-box ATP-dependent RNA helicase DExH2 (Arabidopsis thaliana)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:3702\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 1720.6982,\n",
+ " \"clique_identifier_count\": 4\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:146875\",\n",
+ " \"label\": \"NIH 10358\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH-10358\",\n",
+ " \"NIH 10358\",\n",
+ " \"Nih 10358\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 381.31543,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:3035642\",\n",
+ " \"label\": \"NIH 10366\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Nih 10366\",\n",
+ " \"NIH-10366\",\n",
+ " \"NIH 10366\",\n",
+ " \"Spiro(morphinan-6,2'-oxirane)-3'-carboxylic acid, 4,5-epoxy-3,14-dihydroxy-17-methyl-, ethyl ester, (3'S,5alpha,6beta)-\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 381.31543,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:3035643\",\n",
+ " \"label\": \"NIH 10367\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Nih 10367\",\n",
+ " \"NIH-10367\",\n",
+ " \"NIH 10367\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 381.31543,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:6438604\",\n",
+ " \"label\": \"NIH 10364\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH-10364\",\n",
+ " \"NIH 10364\",\n",
+ " \"Nih 10364\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 381.31543,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:20839392\",\n",
+ " \"label\": \"NIH 10236\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Nih 10236\",\n",
+ " \"NIH-10236\",\n",
+ " \"NIH 10236\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 381.31543,\n",
+ " \"clique_identifier_count\": 5\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UNII:5NI6UU2WRT\",\n",
+ " \"label\": \"NIH-8251\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH-8251\",\n",
+ " \"3-Formamido-N-isopropyl-N-methyl-1-pyrazole carboxamide\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 342.51447,\n",
+ " \"clique_identifier_count\": 4\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UNII:8BS3E41XVP\",\n",
+ " \"label\": \"nihydrazone\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIHYDRAZONE\",\n",
+ " \"nihydrazone\",\n",
+ " \"Nihydrazone\",\n",
+ " \"(5-nitrofurfurylidene)hydrazide acetic acid\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 238.56062,\n",
+ " \"clique_identifier_count\": 8\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MESH:C000596980\",\n",
+ " \"label\": \"NIH-12848\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH-12848\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 233.80249,\n",
+ " \"clique_identifier_count\": 2\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"PUBCHEM.COMPOUND:146156558\",\n",
+ " \"label\": \"NIH-10443 mesylate; NIH10443 mesylate; NIH 10443 mesylate\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"NIH-10443 mesylate; NIH10443 mesylate; NIH 10443 mesylate\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:MolecularMixture\",\n",
+ " \"biolink:ChemicalMixture\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 228.18459,\n",
+ " \"clique_identifier_count\": 2\n",
+ " }\n",
+ "]\n"
]
}
],
"source": [
- "params = {'string':'diabetes','limit':-1}\n",
- "response = requests.post(nr_url,params=params)\n",
- "print(len(response.json()))"
+ "response = requests.post(nameres_lookup_url, params={'string':'NIH', 'exclude_prefixes': 'UMLS'})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 48,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:11816\",\n",
+ " \"label\": \"Apoe\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Apoe\",\n",
+ " \"Apo-E\",\n",
+ " \"apolipoprotein E\",\n",
+ " \"mAPOE\",\n",
+ " \"apo-E (mouse)\",\n",
+ " \"apolipoprotein E (mouse)\",\n",
+ " \"APOE_MOUSE Apolipoprotein E (sprot)\",\n",
+ " \"Q3TXU4_MOUSE Apolipoprotein E (trembl)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:10090\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 2181.2722,\n",
+ " \"clique_identifier_count\": 14\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:16975\",\n",
+ " \"label\": \"Lrp8\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Lr8b\",\n",
+ " \"Lrp8\",\n",
+ " \"ApoER2\",\n",
+ " \"4932703M08Rik\",\n",
+ " \"apolipoprotein E receptor 2\",\n",
+ " \"low-density lipoprotein receptor-related protein 8\",\n",
+ " \"low density lipoprotein receptor relative, 8 ligand binding repeats, brain\",\n",
+ " \"low density lipoprotein receptor-related protein 8, apolipoprotein e receptor\",\n",
+ " \"A0A571BE60_MOUSE Low density lipoprotein receptor-related protein 8, apolipoprotein e receptor (trembl)\",\n",
+ " \"B1AXJ4_MOUSE Low-density lipoprotein receptor-related protein 8 (trembl)\",\n",
+ " \"B1AXJ5_MOUSE Low-density lipoprotein receptor-related protein 8 (trembl)\",\n",
+ " \"F6YZZ8_MOUSE Low density lipoprotein receptor-related protein 8, apolipoprotein e receptor (trembl)\",\n",
+ " \"mLRP8\",\n",
+ " \"Apoer2\",\n",
+ " \"LRP-8 (mouse)\",\n",
+ " \"apolipoprotein E receptor 2 (mouse)\",\n",
+ " \"low-density lipoprotein receptor-related protein 8 (mouse)\",\n",
+ " \"LRP8_MOUSE Low-density lipoprotein receptor-related protein 8 (sprot)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:10090\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 125.52725,\n",
+ " \"clique_identifier_count\": 17\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UniProtKB:Q921B5\",\n",
+ " \"label\": \"Q921B5_MOUSE ApoE receptor-2 (Fragment) (trembl)\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Q921B5_MOUSE ApoE receptor-2 (Fragment) (trembl)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:10090\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:MacromolecularMachineMixin\"\n",
+ " ],\n",
+ " \"score\": 59.605045,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:320865\",\n",
+ " \"label\": \"Cdh18\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Cdh18\",\n",
+ " \"Cdh14l\",\n",
+ " \"cadherin 18\",\n",
+ " \"cadherin-18\",\n",
+ " \"B230220E17Rik\",\n",
+ " \"GFAP-apoE4 line1\",\n",
+ " \"Tg(GFAP-APOE4)1Hol\",\n",
+ " \"Tg(GFAP-APOE*4)1Hol\",\n",
+ " \"Tg(GFAP-APOE_i4)1Hol\",\n",
+ " \"A0A2I3BPS8_MOUSE Cadherin 18 (trembl)\",\n",
+ " \"E9Q941_MOUSE Cadherin 18 (trembl)\",\n",
+ " \"E9Q9Q6_MOUSE Cadherin 18 (trembl)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:10090\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 42.325344,\n",
+ " \"clique_identifier_count\": 12\n",
+ " }\n",
+ "]\n"
+ ]
+ }
+ ],
+ "source": [
+ "response = requests.post(nameres_lookup_url, params={'string':'APOE', 'limit': 5, 'only_taxa': ['NCBITaxon:10090']})\n",
+ "print(json.dumps(response.json(),indent=2))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "Results can be batched using the `offset` parameter. Here we'll get the first two results by setting `limit=2` and then show that we can get only the second result by setting `limit=1` and `offset=1`"
+ "## Autocomplete mode\n",
+ "\n",
+ "An important use of NameRes on Translator is to support autocomplete functionality on websites. To support this, NameRes includes an `autocomplete` flag which expands your search to assume the final word in your search is incomplete. For example, if you search for \"diab\" without autocomplete, you get results such as the \"DiaB Klenz wound & skin cleanser\", \"Diab Gel\" and Wolfram syndrome (which includes \"Diab ins,diab mell,opt at,deaf\" as a synonym). However, with autocomplete turned on, results including diabetes are moved higher up in the search."
]
},
{
"cell_type": "code",
- "execution_count": 11,
- "metadata": {
- "scrolled": true
- },
+ "execution_count": 49,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0719857\",\n",
+ " \"label\": \"Diab\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diab\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 1331.6138,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UMLS:C1330194\",\n",
+ " \"label\": \"Diab Gel\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diab Gel\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Drug\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:MolecularMixture\",\n",
+ " \"biolink:ChemicalMixture\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 183.2742,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"UMLS:C1815118\",\n",
+ " \"label\": \"DiaB Klenz Wound & Skin Cleanser\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"DiaB Klenz Wound & Skin Cleanser\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Drug\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:MolecularMixture\",\n",
+ " \"biolink:ChemicalMixture\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 149.66705,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0018105\",\n",
+ " \"label\": \"Wolfram syndrome\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"WFS\",\n",
+ " \"didmoad\",\n",
+ " \"DIDMOAD\",\n",
+ " \"DIDMOADUD\",\n",
+ " \"DIDMOAD Syndrome\",\n",
+ " \"didmoad syndrome\",\n",
+ " \"Wolfram Syndrome\",\n",
+ " \"DIDMOAD syndrome\",\n",
+ " \"Wolfram syndrome\",\n",
+ " \"wolfram syndrome\",\n",
+ " \"Syndrome, Wolfram\",\n",
+ " \"Marquardt-Loriaux syndrome\",\n",
+ " \"Wolfram syndrome (disorder)\",\n",
+ " \"Diab ins,diab mell,opt at,deaf\",\n",
+ " \"DIDMOAD-Diab insip,diab mel,optic atroph+deafness\",\n",
+ " \"Diab insipidus,diab mell,optic atrophy and deafness\",\n",
+ " \"diabetes insipidus-diabetes mellitus-optic atrophy syndrome\",\n",
+ " \"Diabetes Insipidus and Mellitus with Optic Atrophy and Deafness\",\n",
+ " \"diabetes insipidus and mellitus with optic atrophy and deafness\",\n",
+ " \"Diabetes mellitus and insipidus with optic atrophy and deafness\",\n",
+ " \"DIABETES INSIPIDUS AND MELLITUS WITH OPTIC ATROPHY AND DEAFNESS\",\n",
+ " \"diabetes mellitus and insipidus with optic atrophy and deafness\",\n",
+ " \"Diabetes insipidus,diabetes mellitus, optic atrophy and deafness\",\n",
+ " \"Diabetes Insipidus, Diabetes Mellitus, Optic Atrophy, and Deafness\",\n",
+ " \"diabetes insipidus-diabetes mellitus-optic atrophy (DIDMO) syndrome\",\n",
+ " \"diabetes insipidus-diabetes mellitus-optic atrophy-deafness syndrome\",\n",
+ " \"Diabetes insipidus-diabetes mellitus-optic atrophy-deafness syndrome\",\n",
+ " \"Diabetes insipidus-diabetes mellitus-optic atrophy-hearing loss syndrome\",\n",
+ " \"diabetes insipidus and mellitus with optic atrophy and deafness (DIDMOAD)\",\n",
+ " \"DIDMOAD - Diabetes insipidus,diabetes mellitus, optic atrophy and deafness\",\n",
+ " \"diabetes mellitus and insipidus with optic atrophy and deafness (diagnosis)\",\n",
+ " \"diabetes insipidus, diabetes mellitus, optic atrophy, and deafness syndrome\",\n",
+ " \"Diabetes Insipidus, Diabetes Mellitus, Optic Atrophy, and Deafness Syndrome\",\n",
+ " \"DIDMOAD (diabetes insipidus, diabetes mellitus, optic atrophy, deafness) syndrome\",\n",
+ " \"Arginine vasopressin deficiency- diabetes mellitus-optic atrophy-deafness syndrome\",\n",
+ " \"Arginine vasopressin deficiency- diabetes mellitus-optic atrophy-hearing loss syndrome\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 64.25965,\n",
+ " \"clique_identifier_count\": 11\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0018911\",\n",
+ " \"label\": \"maturity-onset diabetes of the young\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"MODY\",\n",
+ " \"modi\",\n",
+ " \"mody\",\n",
+ " \"NIDDY\",\n",
+ " \"Diab mell aut dom\",\n",
+ " \"Mason-type diabetes\",\n",
+ " \"MASON-TYPE DIABETES\",\n",
+ " \"Mason-Type Diabetes\",\n",
+ " \"Mason type diabetes\",\n",
+ " \"Matur ons diab in youth\",\n",
+ " \"diabetes maturity onset youth\",\n",
+ " \"diabetes maturity onset young\",\n",
+ " \"MODY-Mat onset diab in youth I\",\n",
+ " \"MODY-Mat onset diab in youth 1\",\n",
+ " \"Maturity onset diabetes in youth\",\n",
+ " \"maturity onset diabetes in youth\",\n",
+ " \"Maturity Onset Diabetes of the Young\",\n",
+ " \"Maturity-onset diabetes of the young\",\n",
+ " \"Diabetes mellitus autosomal dominant\",\n",
+ " \"MATURITY-ONSET DIABETES OF THE YOUNG\",\n",
+ " \"Maturity-Onset Diabetes of the Young\",\n",
+ " \"maturity onset diabetes of the young\",\n",
+ " \"Maturity onset diabetes of the young\",\n",
+ " \"Autosomal dominant diabetes mellitus\",\n",
+ " \"maturity-onset diabetes of the young\",\n",
+ " \"MODY - maturity onset diabetes of young\",\n",
+ " \"Maturity onset diabetes mellitus in young\",\n",
+ " \"Maturity-onset diabetes of the young (MODY)\",\n",
+ " \"Diabetes, maturity-onset, of the young (MODY)\",\n",
+ " \"MODY - Maturity onset diabetes in youth type I\",\n",
+ " \"MODY - Maturity onset diabetes in youth type 1\",\n",
+ " \"maturity-onset diabetes of the young (disease)\",\n",
+ " \"Maturity-onset diabetes of the young (disorder)\",\n",
+ " \"maturity-onset diabetes of the young (diagnosis)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 60.133423,\n",
+ " \"clique_identifier_count\": 13\n",
+ " }\n",
+ "]\n"
+ ]
+ }
+ ],
+ "source": [
+ "response = requests.post(nameres_lookup_url, params={'string':'diab','limit':5,'autocomplete':False})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 50,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "[\n",
+ " {\n",
+ " \"curie\": \"UMLS:C0719857\",\n",
+ " \"label\": \"Diab\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diab\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 741.0644,\n",
+ " \"clique_identifier_count\": 1\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0012819\",\n",
+ " \"label\": \"diabetic ketoacidosis\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"DKA\",\n",
+ " \"KPD\",\n",
+ " \"Diabetic Ketoses\",\n",
+ " \"diabetic ketosis\",\n",
+ " \"Diabetic ketosis\",\n",
+ " \"Diabetic Ketosis\",\n",
+ " \"diabetic ketoses\",\n",
+ " \"Diabetic Acidosis\",\n",
+ " \"Diabetic acidosis\",\n",
+ " \"DIABETIC ACIDOSIS\",\n",
+ " \"Diabetic Acidoses\",\n",
+ " \"Ketosis, Diabetic\",\n",
+ " \"diabetic acidosis\",\n",
+ " \"ACIDOSIS DIABETIC\",\n",
+ " \"Acidosis diabetic\",\n",
+ " \"Ketoses, Diabetic\",\n",
+ " \"ACIDOSIS, DIABETIC\",\n",
+ " \"Acidosis, Diabetic\",\n",
+ " \"Acidoses, Diabetic\",\n",
+ " \"diabetic ketoacidosis\",\n",
+ " \"Diabetic Ketoacidosis\",\n",
+ " \"diabetic ketoacidoses\",\n",
+ " \"Diabetic Ketoacidoses\",\n",
+ " \"KETOACIDOSIS DIABETIC\",\n",
+ " \"DIABETIC KETOACIDOSIS\",\n",
+ " \"Diabetic ketoacidosis\",\n",
+ " \"Diabetic acidosis, NOS\",\n",
+ " \"Ketoacidosis, Diabetic\",\n",
+ " \"Ketoacidoses, Diabetic\",\n",
+ " \"KETOACIDOSIS, DIABETIC\",\n",
+ " \"Diabetic keto-acidosis\",\n",
+ " \"Ketoacidosis (diabetic)\",\n",
+ " \"DKA Diabetic Ketoacidoses\",\n",
+ " \"DKA Diabetic Ketoacidosis\",\n",
+ " \"Ketoacidosis, DKA Diabetic\",\n",
+ " \"Diabetic Ketoacidosis, DKA\",\n",
+ " \"Diabetes with ketoacidosis\",\n",
+ " \"diabetes with ketoacidosis\",\n",
+ " \"DKA - Diabetic ketoacidosis\",\n",
+ " \"DKA - diabetic ketoacidosis\",\n",
+ " \"Diab.mell.with ketoacidosis\",\n",
+ " \"Diabetic ketosis without coma\",\n",
+ " \"Diabetic acidosis without coma\",\n",
+ " \"ketosis-prone diabetes mellitus\",\n",
+ " \"DIABETES MELLITUS, KETOSIS-PRONE\",\n",
+ " \"Ketoacidosis in diabetes mellitus\",\n",
+ " \"Diabetes Mellitus with Ketoacidosis\",\n",
+ " \"Diabetes mellitus with ketoacidosis\",\n",
+ " \"diabetes mellitus with ketoacidosis\",\n",
+ " \"Ketoacidosis due to diabetes mellitus\",\n",
+ " \"Elevated Ketones/Diabetic Ketoacidosis\",\n",
+ " \"diabetes mellitus with ketoacidosis (diagnosis)\",\n",
+ " \"Ketoacidosis due to diabetes mellitus (disorder)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 313.8181,\n",
+ " \"clique_identifier_count\": 17\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0000960\",\n",
+ " \"label\": \"diabetic peripheral angiopathy\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Diabetic angiopathy\",\n",
+ " \"diabetic angiopathy\",\n",
+ " \"Diabetic Angiopathy\",\n",
+ " \"Angiopathy, Diabetic\",\n",
+ " \"Diabetic Angiopathies\",\n",
+ " \"Diabetic angiopathies\",\n",
+ " \"diabetic angiopathies\",\n",
+ " \"Angiopathies, Diabetic\",\n",
+ " \"Diabetic Vascular Disease\",\n",
+ " \"Diabetic vascular disorder\",\n",
+ " \"Diabetic Vascular Diseases\",\n",
+ " \"Vascular Disease, Diabetic\",\n",
+ " \"Diabetic Vascular Disorder\",\n",
+ " \"diabetic vascular disorder\",\n",
+ " \"Vascular Diseases, Diabetic\",\n",
+ " \"Diabetic peripheral angiopathy\",\n",
+ " \"Diabetic vascular disorder NOS\",\n",
+ " \"diabetic peripheral angiopathy\",\n",
+ " \"Diabetic Vascular Complication\",\n",
+ " \"Diabetic Vascular Complications\",\n",
+ " \"Vascular Complication, Diabetic\",\n",
+ " \"Vascular Complications, Diabetic\",\n",
+ " \"angiopathy; diabetes (manifestation)\",\n",
+ " \"diabetes; angiopathy (manifestation)\",\n",
+ " \"Diabetic peripheral vascular disease\",\n",
+ " \"Diabetic peripheral vascular disorder\",\n",
+ " \"Diabetes with peripheral circulatory disorder\",\n",
+ " \"diabetes with peripheral circulatory disorder\",\n",
+ " \"Peripheral angiopathy due to diabetes mellitus\",\n",
+ " \"Diabetes with peripheral circulatory disorders\",\n",
+ " \"diabetes mellitus with peripheral circulatory disorder\",\n",
+ " \"Peripheral angiopathy due to diabetes mellitus (disorder)\",\n",
+ " \"diabetes mellitus with peripheral circulatory disorder (diagnosis)\",\n",
+ " \"Unspecified diabetes mellitus with peripheral circulatory complications\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 301.03,\n",
+ " \"clique_identifier_count\": 15\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005015\",\n",
+ " \"label\": \"diabetes mellitus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"dm\",\n",
+ " \"DM\",\n",
+ " \"Diabetes\",\n",
+ " \"diabetes\",\n",
+ " \"Diabetes NOS\",\n",
+ " \"diabetes (DM)\",\n",
+ " \"diabete mellitus\",\n",
+ " \"DIABETES MELLITUS\",\n",
+ " \"Diabetes mellitus\",\n",
+ " \"diabetes mellitus\",\n",
+ " \"Diabetes Mellitus\",\n",
+ " \"Diabetes mellitus NOS\",\n",
+ " \"DIABETES MELLITUS NOS\",\n",
+ " \"DM - Diabetes mellitus\",\n",
+ " \"diabetes mellitus (DM)\",\n",
+ " \"Diabetes mellitus, NOS\",\n",
+ " \"Diabetes mellitus (DM)\",\n",
+ " \"disorder diabetes mellitus\",\n",
+ " \"diabetes mellitus (disease)\",\n",
+ " \"Diabetes mellitus (E08-E13)\",\n",
+ " \"Diabetes mellitus (disorder)\",\n",
+ " \"Unspecified diabetes mellitus\",\n",
+ " \"diabetes mellitus (diagnosis)\",\n",
+ " \"DIABETES MELLITUS NOS DIAGNOSED\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 301.03,\n",
+ " \"clique_identifier_count\": 15\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"MONDO:0005016\",\n",
+ " \"label\": \"diabetic kidney disease\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"DKD\",\n",
+ " \"Nephropathy;diabetic\",\n",
+ " \"DIABETIC NEPHROPATHY\",\n",
+ " \"diabetic nephropathy\",\n",
+ " \"Diabetic nephropathy\",\n",
+ " \"nephropathy diabetic\",\n",
+ " \"NEPHROPATHY DIABETIC\",\n",
+ " \"Diabetic Nephropathy\",\n",
+ " \"Nephropathy, Diabetic\",\n",
+ " \"Diabetic nephropathies\",\n",
+ " \"diabetic nephropathies\",\n",
+ " \"Diabetic renal disease\",\n",
+ " \"Diabetic Nephropathies\",\n",
+ " \"diabetic renal disease\",\n",
+ " \"Diabetic kidney disease\",\n",
+ " \"Diabetic Kidney Disease\",\n",
+ " \"diabetic kidney disease\",\n",
+ " \"Nephropathies, Diabetic\",\n",
+ " \"Kidney Disease, Diabetic\",\n",
+ " \"Diabetic nephropathy NOS\",\n",
+ " \"Diabetic Kidney Diseases\",\n",
+ " \"Diabetic Kidney Problems\",\n",
+ " \"Kidney Diseases, Diabetic\",\n",
+ " \"type 2 diabetes nephropathy\",\n",
+ " \"type 1 diabetes nephropathy\",\n",
+ " \"DIABETIC RENAL MANIFESTATION\",\n",
+ " \"Diabetic nephropathy syndrome\",\n",
+ " \"diabetic nephropathy (diagnosis)\",\n",
+ " \"diabetes with renal manifestations\",\n",
+ " \"Diabetes with renal manifestations\",\n",
+ " \"diabetes; nephropathy (manifestation)\",\n",
+ " \"nephropathy; diabetes (manifestation)\",\n",
+ " \"Kidney disorder due to diabetes mellitus\",\n",
+ " \"Disorder of kidney due to diabetes mellitus\",\n",
+ " \"diabetes with renal manifestations (diagnosis)\",\n",
+ " \"Renal disorder associated with diabetes mellitus\",\n",
+ " \"Disorder of kidney due to diabetes mellitus (disorder)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:Disease\",\n",
+ " \"biolink:DiseaseOrPhenotypicFeature\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\"\n",
+ " ],\n",
+ " \"score\": 286.532,\n",
+ " \"clique_identifier_count\": 13\n",
+ " }\n",
+ "]\n"
+ ]
+ }
+ ],
+ "source": [
+ "response = requests.post(nameres_lookup_url, params={'string':'diab','limit':5,'autocomplete':True})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Bulk lookup\n",
+ "\n",
+ "The [bulk lookup endpoint](https://name-resolution-sri.renci.org/docs#/lookup/bulk_lookup_bulk_lookup_post) can be used to send a POST request with multiple strings to query at once. It returns a JSON dictionary, where each key is one of the search queries and the value is the response."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 51,
+ "metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
- "These are the first two results:\n",
- "{\n",
- " \"MONDO:0005015\": [\n",
- " \"diabetes\",\n",
- " \"diabetes mellitus\",\n",
- " \"DM\"\n",
- " ],\n",
- " \"MONDO:0006920\": [\n",
- " \"prediabetes\",\n",
- " \"borderline diabetes\",\n",
- " \"prediabetic state\"\n",
- " ]\n",
- "}\n",
- "\n",
- "And this is just the second result:\n",
"{\n",
- " \"MONDO:0006920\": [\n",
- " \"prediabetes\",\n",
- " \"borderline diabetes\",\n",
- " \"prediabetic state\"\n",
- " ]\n",
+ " \"cox1\": [\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:5183112\",\n",
+ " \"label\": \"cox1\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"cox1\",\n",
+ " \"GIY endonuclease\",\n",
+ " \"LAGLIDADG endonuclease\",\n",
+ " \"A0A0E3SX49_GIBZA Cytochrome c oxidase subunit 1 (trembl)\",\n",
+ " \"A5J056_GIBZE Cytochrome c oxidase subunit 1 (trembl)\",\n",
+ " \"A5J057_GIBZE GIY endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J058_GIBZE LAGLIDADG endonuclease (trembl)\",\n",
+ " \"A5J059_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J060_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J061_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J062_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J063_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J064_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J065_GIBZE LAGLIDADG endonuclease (Fragment) (trembl)\",\n",
+ " \"A5J066_GIBZE LAGLIDADG endonuclease (trembl)\",\n",
+ " \"A5J067_GIBZE GIY endonuclease (trembl)\",\n",
+ " \"A5J068_GIBZE LAGLIDADG endonuclease (trembl)\",\n",
+ " \"A5J069_GIBZE GIY endonuclease (Fragment) (trembl)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:229533\",\n",
+ " \"NCBITaxon:5518\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 2823.1055,\n",
+ " \"clique_identifier_count\": 16\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"NCBIGene:808251\",\n",
+ " \"label\": \"COX1\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"COI\",\n",
+ " \"COX1\",\n",
+ " \"cytochrome c oxidase subunit I\",\n",
+ " \"COXI\",\n",
+ " \"MTCO1\",\n",
+ " \"MT-CO1\",\n",
+ " \"sheep-MT-CO1\",\n",
+ " \"cytochrome c oxidase subunit 1 (sheep)\",\n",
+ " \"cytochrome c oxidase polypeptide I (sheep)\",\n",
+ " \"COX1_SHEEP Cytochrome c oxidase subunit 1 (sprot)\",\n",
+ " \"Q5MA75_SHEEP Cytochrome c oxidase subunit 1 (trembl)\"\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9940\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"score\": 2555.7986,\n",
+ " \"clique_identifier_count\": 12\n",
+ " }\n",
+ " ],\n",
+ " \"prednisolone\": [\n",
+ " {\n",
+ " \"curie\": \"CHEBI:8378\",\n",
+ " \"label\": \"Prednisolone\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"PRDL\",\n",
+ " \"Predate\",\n",
+ " \"\\u0394-cortef\",\n",
+ " \"Predonine\",\n",
+ " \"DiAdresonF\",\n",
+ " \"prednisolone\",\n",
+ " \"Prednisolona\",\n",
+ " \"PREDNISOLONE\",\n",
+ " \"prednisoLONE\",\n",
+ " \"Prednisolone\",\n",
+ " \"PrednisoLONE\",\n",
+ " \"Di adreson F\",\n",
+ " \"Delta-Cortef\",\n",
+ " \"Di-adreson-F\",\n",
+ " \"prednisolona\",\n",
+ " \"Prednisolonum\",\n",
+ " \"prednisolonum\",\n",
+ " \"Hydroretrocortine\",\n",
+ " \"Metacortandralone\",\n",
+ " \"metacortandralone\",\n",
+ " \"hydroretrocortine\",\n",
+ " \"Deltahydrocortisone\",\n",
+ " \"\\u0394(1)-hydrocortisone\",\n",
+ " \"deltahydrocortisone\",\n",
+ " \"Prednisolone acetate\",\n",
+ " \"Prednisolone product\",\n",
+ " \"delta-hydrocortisone\",\n",
+ " \"\\u0394(1)-dehydrocortisol\",\n",
+ " \"Prednisolone tebutate\",\n",
+ " \"delta-dehydrocortisol\",\n",
+ " \"delta(1)hydrocortisone\",\n",
+ " \"Delta(1)Hydrocortisone\",\n",
+ " \"Delta(1)-Hydrocortisone\",\n",
+ " \"delta(1)-Hydrocortisone\",\n",
+ " \"Delta(1)-hydrocortisone\",\n",
+ " \"Delta(1)-Dehydrocortisol\",\n",
+ " \"Prednisolone (substance)\",\n",
+ " \"Prednisolone preparation\",\n",
+ " \"Delta(1)-dehydrocortisol\",\n",
+ " \"delta(1)-Dehydrocortisol\",\n",
+ " \"prednisolone (medication)\",\n",
+ " \"1,2-Dehydrohydrocortisone\",\n",
+ " \"1,2-dehydrohydrocortisone\",\n",
+ " \"Methylprednisolone acetate\",\n",
+ " \"\\u0394(1)-dehydrohydrocortisone\",\n",
+ " \"delta-dehydrohydrocortisone\",\n",
+ " \"Predisolone sodium phosphate\",\n",
+ " \"Delta1-dehydro-hydrocortisone\",\n",
+ " \"Prednisolone sodium phosphate\",\n",
+ " \"delta1-dehydro-hydrocortisone\",\n",
+ " \"Metacortandralone preparation\",\n",
+ " \"Delta(1)-Dehydrohydrocortisone\",\n",
+ " \"Delta(1)-dehydrohydrocortisone\",\n",
+ " \"delta(1)-Dehydrohydrocortisone\",\n",
+ " \"Deltahydrocortisone preparation\",\n",
+ " \"Prednisolone-containing product\",\n",
+ " \"1,4-Pregnadiene-11b,17a,21-triol-3,20-dione\",\n",
+ " \"1,4-Pregnadiene-3,20-dione-11b,17a,21-triol\",\n",
+ " \"1,4-pregnadiene-11\\u03b2,17\\u03b1,21-triol-3,20-dione\",\n",
+ " \"1,4-Pregnadiene-3,20-dione-11\\u03b2,17\\u03b1,21-triol\",\n",
+ " \"1,4-Pregnadiene-11\\u03b2,17\\u03b1,21-triol-3,20-dione\",\n",
+ " \"1,4-pregnadiene-3,20-dione-11\\u03b2,17\\u03b1,21-triol\",\n",
+ " \"3,20-dioxo-11\\u03b2,17\\u03b1,21-trihydroxy-1,4-pregnadiene\",\n",
+ " \"3,20-Dioxo-11b,17a,21-trihydroxy-1,4-pregnadiene\",\n",
+ " \"3,20-Dioxo-11\\u03b2,17\\u03b1,21-trihydroxy-1,4-pregnadiene\",\n",
+ " \"1,4-pregnadiene-11beta,17alpha,21-triol-3,20-dione\",\n",
+ " \"1,4-Pregnadiene-11beta,17alpha,21-triol-3,20-dione\",\n",
+ " \"11beta,17,21-trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"1,4-pregnadiene-3,20-dione-11beta,17alpha,21-triol\",\n",
+ " \"1,4-Pregnadiene-3,20-dione-11beta,17alpha,21-triol\",\n",
+ " \"Product containing prednisolone (medicinal product)\",\n",
+ " \"(11\\u03b2)-11,17,21-trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"(11b)-11,17,21-Trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"(11\\u0392)-11,17,21-trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"(11beta)-11,17,21-Trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"3,20-Dioxo-11beta,17alpha,21-trihydroxy-1,4-pregnadiene\",\n",
+ " \"(11beta)-11,17,21-trihydroxypregna-1,4-diene-3,20-dione\",\n",
+ " \"3,20-dioxo-11beta,17alpha,21-trihydroxy-1,4-pregnadiene\",\n",
+ " \"Pregna-1,4-diene-3,20-dione, 11,17,21-trihydroxy-, (11beta)-\",\n",
+ " \"Prednisolone Phosphate\",\n",
+ " \"Prednisolone phosphate\",\n",
+ " \"prednisolone phosphate\",\n",
+ " \"prednisoLONE phosphate\",\n",
+ " \"Prednisolone 21-phosphate\",\n",
+ " \"prednisolone 21-phosphate\",\n",
+ " \"PREDNISOLONE 21-PHOSPHATE\",\n",
+ " \"PREDNISOLONE PHOSPHORIC ACID\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE\",\n",
+ " \"prednisolone 21-monophosphate\",\n",
+ " \"Prednisolone 21-monophosphate\",\n",
+ " \"PrednisoLONE Sodium Phosphate\",\n",
+ " \"prednisolone sodium phosphate\",\n",
+ " \"prednisoLONE sodium phosphate\",\n",
+ " \"prednisolone phosphate sodium\",\n",
+ " \"Prednisolone Sodium Phosphate\",\n",
+ " \"prednisolone 21-phosphate sodium\",\n",
+ " \"prednisolone (as sodium phosphate)\",\n",
+ " \"prednisolone 21-(dihydrogen phosphate)\",\n",
+ " \"Prednisolone 21-(dihydrogen phosphate)\",\n",
+ " \"Prednisolone sodium phosphate (substance)\",\n",
+ " \"prednisolone sodium phosphate (medication)\",\n",
+ " \"prednisolone phosphate, sodium salt, (11beta)-isomer\",\n",
+ " \"11beta,17-dihydroxy-3,20-dioxopregna-1,4-dien-21-yl dihydrogen phosphate\",\n",
+ " \"Pricortin\",\n",
+ " \"prednisolone acetate\",\n",
+ " \"meticotelone acetate\",\n",
+ " \"prednisoLONE acetate\",\n",
+ " \"Prednisolone Acetate\",\n",
+ " \"PrednisoLONE Acetate\",\n",
+ " \"PREDNISOLONE ACETATE\",\n",
+ " \"meticortelone acetate\",\n",
+ " \"Prednisolone 21-acetate\",\n",
+ " \"prednisolone 21-acetate\",\n",
+ " \"hydroprednisone acetate\",\n",
+ " \"prednisolone (as acetate)\",\n",
+ " \"Prednisolone acetate (substance)\",\n",
+ " \"prednisolone acetate (medication)\",\n",
+ " \"corticosteroids prednisolone acetate\",\n",
+ " \"HYDELTRA-TBA\",\n",
+ " \"codelcortone-TBA\",\n",
+ " \"Prednisolone TBA\",\n",
+ " \"Prednisolone Tebutate\",\n",
+ " \"PREDNISOLONE TEBUTATE\",\n",
+ " \"prednisolone tebutate\",\n",
+ " \"prednisoLONE tebutate\",\n",
+ " \"prednisolone butylacetate\",\n",
+ " \"Prednisolone butylacetate\",\n",
+ " \"Prednisolone butyl acetete\",\n",
+ " \"prednisolone tert-butylacetate\",\n",
+ " \"Anhydrous prednisolone tebutate\",\n",
+ " \"Prednisolone 21-tert-butylacetate\",\n",
+ " \"prednisolone tebutate (medication)\",\n",
+ " \"Prednisolone tertiary butylacetate\",\n",
+ " \"prednisolone tertiary butyl acetate\",\n",
+ " \"Prednisolone tertiary butylacetate (substance)\",\n",
+ " \"11 beta,17 alpha,21-trihydroxypregna-1,4-diene-3,20-dione 21-tert-butyl acetate\",\n",
+ " \"pregna-1,4-diene-3,20-dione, 21-(3,3-dimethyl-1-oxobutoxy)-11,17-dihydroxy-, (11 beta)-\",\n",
+ " \"prednisolone metazoate\",\n",
+ " \"PREDNISOLONE METAZOATE\",\n",
+ " \"prednisolone sulfobenzoate\",\n",
+ " \"prednisolone sodium metazoate\",\n",
+ " \"Prednisolone sodium metazoate\",\n",
+ " \"prednisolone metasulfobenzoate\",\n",
+ " \"Prednisolone metasulfobenzoate\",\n",
+ " \"prednisolone 21-3-sulfobenzoate\",\n",
+ " \"prednisolone 21-m-sulfobenzoate\",\n",
+ " \"Prednisolone Methylsulfobenzoate\",\n",
+ " \"prednisolone methylsulfobenzoate\",\n",
+ " \"Prednisolone Sodium Metasulfobenzoate\",\n",
+ " \"prednisolone metasulfobenzoate sodium\",\n",
+ " \"prednisolone sodium metasulfobenzoate\",\n",
+ " \"Prednisolone metasulfobenzoate sodium\",\n",
+ " \"Prednisolone Sodium 21-M-Sulfobenzoate\",\n",
+ " \"prednisolone sodium metasulphobenzoate\",\n",
+ " \"Prednisolone Sodium Metasulphobenzoate\",\n",
+ " \"prednisoLONE sodium metasulphobenzoate\",\n",
+ " \"Prednisolone metasulfobenzoate sodium (substance)\",\n",
+ " \"Pregna-1,4-diene-3,20-dione, 11beta,17,21-trihydroxy-, 21-(M-sulfobenzoate), Monosodium Salt\",\n",
+ " \"Minims\",\n",
+ " \"Orapred\",\n",
+ " \"Predsol\",\n",
+ " \"Predair\",\n",
+ " \"Optival\",\n",
+ " \"Prozorin\",\n",
+ " \"Solucort\",\n",
+ " \"Codelsol\",\n",
+ " \"Metreton\",\n",
+ " \"Inflamase\",\n",
+ " \"Prednesol\",\n",
+ " \"Predsolan\",\n",
+ " \"Millipred\",\n",
+ " \"Pediapred\",\n",
+ " \"Predonema\",\n",
+ " \"Veripred 20\",\n",
+ " \"Hydeltrasol\",\n",
+ " \"Cortisate-20\",\n",
+ " \"Phortisolone\",\n",
+ " \"Predair Forte\",\n",
+ " \"Inflamase Forte\",\n",
+ " \"sodium prednisolone phosphate\",\n",
+ " \"prednisolone disodium phosphate\",\n",
+ " \"Prednisolone (disodium phosphate)\",\n",
+ " \"prednisolone 21-disodium phosphate\",\n",
+ " \"prednisolone 21-phosphate disodium\",\n",
+ " \"disodium prednisolone 21-phosphate\",\n",
+ " \"disodium 11beta,17-dihydroxy-3,20-dioxopregna-1,4-dien-21-yl phosphate\",\n",
+ " \"11beta,17alpha-dihydroxy-3,20-dioxopregna-1,4-dien-21-yl phosphate disodium\",\n",
+ " \"PREDNISOLONE SODIUM SUCCINATE\",\n",
+ " \"Prednisolone sodium succinate\",\n",
+ " \"Prednisolone Sodium Succinate\",\n",
+ " \"prednisoLONE sodium succinate\",\n",
+ " \"prednisolone sodium succinate\",\n",
+ " \"Prednisolone sodium succinate (substance)\",\n",
+ " \"prednisolone sodium succinate (medication)\",\n",
+ " \"Pediapred Oral Liquid\",\n",
+ " \"prednisoLONE Oral Solution [Pediapred]\",\n",
+ " \"prednisolone Oral Solution [Pediapred]\",\n",
+ " \"Prednisolone 2.5mg tablet\",\n",
+ " \"Prednisolone 2.5mg e/c tablet\",\n",
+ " \"prednisoLONE 2.5 MG Delayed Release Oral Tablet\",\n",
+ " \"prednisolone 2.5 MG Delayed Release Oral Tablet\",\n",
+ " \"Prednisolone 2.5 mg gastro-resistant oral tablet\",\n",
+ " \"Product containing precisely prednisolone 2.5 milligram/1 each gastro-resistant oral tablet (clinical drug)\",\n",
+ " \"Prednisolone 5mg e/c tablet\",\n",
+ " \"prednisolone 5 MG Delayed Release Oral Tablet\",\n",
+ " \"prednisoLONE 5 MG Delayed Release Oral Tablet\",\n",
+ " \"Prednisolone 5 mg gastro-resistant oral tablet\",\n",
+ " \"Product containing precisely prednisolone 5 milligram/1 each gastro-resistant oral tablet (clinical drug)\",\n",
+ " \"Prednisolone 5mg sol tab\",\n",
+ " \"Prednisolone 5mg soluble tablet\",\n",
+ " \"prednisoLONE 5 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisolone 5 MG Disintegrating Oral Tablet\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 5 mg orodispersible tablet\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 5 milligram/1 each conventional release orodispersible tablet (clinical drug)\",\n",
+ " \"Prednisolone 0.003% eye drops\",\n",
+ " \"prednisolone 0.003 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.003 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.03 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone 0.03 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 30 microgram/mL eye solution\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 0.03 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 0.03 MG/ML Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 30 microgram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"Prednisolone 0.01% eye drops\",\n",
+ " \"Prednisolone 0.01% pres fr e/d\",\n",
+ " \"prednisolone 0.01 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.01 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.1 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone 0.1 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone 0.01% preservative-free eye drops\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 0.1 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 100 microgram/mL eye solution\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 0.1 MG/ML Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 100 microgram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"Prednisolone 0.03% eye drops\",\n",
+ " \"Prednisolone 0.03% pres fr e/d\",\n",
+ " \"prednisolone 0.03 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.03 % Ophthalmic Solution\",\n",
+ " \"prednisolone 0.3 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.3 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone 0.03% preservative-free eye drops\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 300 microgram/mL eye solution\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 0.3 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 0.3 MG/ML Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 300 microgram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"Prednisolone 0.1% eye drops\",\n",
+ " \"Prednisolone 0.1% pres fr e/d\",\n",
+ " \"prednisoLONE 0.1 % Ophthalmic Solution\",\n",
+ " \"prednisolone 0.1 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 1 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone 1 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone 0.1% preservative-free eye drops\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 1 mg/mL eye solution\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 1 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 1 MG/ML Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 1 milligram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"Prednisolone 0.3% eye drops\",\n",
+ " \"Prednisolone 0.3% pres fr e/d\",\n",
+ " \"prednisolone 0.3 % Ophthalmic Solution\",\n",
+ " \"prednisoLONE 0.3 % Ophthalmic Solution\",\n",
+ " \"prednisolone 3 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE 3 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone 0.3% preservative-free eye drops\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 3 mg/mL eye solution\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 3 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 3 MG/ML Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 3 milligram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"PREDNISOLONE 5MG TAB\",\n",
+ " \"prednisolone tab 5mg\",\n",
+ " \"Prednisolone 5mg tablet\",\n",
+ " \"5mg prednisolone tablets\",\n",
+ " \"Prednisolone 5mg Oral tablet\",\n",
+ " \"prednisolone 5 mg ORAL TABLET\",\n",
+ " \"Prednisolone 5 mg oral tablet\",\n",
+ " \"Prednisolone 5 MG Oral Tablet\",\n",
+ " \"prednisoLONE 5 mg oral tablet\",\n",
+ " \"prednisolone 5 MG Oral Tablet\",\n",
+ " \"prednisoLONE 5 MG Oral Tablet\",\n",
+ " \"prednisolone 5 mg oral tablet\",\n",
+ " \"prednisolone@5 mg@ORAL@TABLET\",\n",
+ " \"PREDNISOLONE 5 mg ORAL TABLET\",\n",
+ " \"PrednisoLONE, 5 mg oral tablet\",\n",
+ " \"Product containing precisely prednisolone 5 milligram/1 each conventional release oral tablet (clinical drug)\",\n",
+ " \"Prednisolone 1mg tablet\",\n",
+ " \"Prednisolone 1 mg oral tablet\",\n",
+ " \"prednisolone 1 MG Oral Tablet\",\n",
+ " \"prednisoLONE 1 MG Oral Tablet\",\n",
+ " \"Product containing precisely prednisolone 1 milligram/1 each conventional release oral tablet (clinical drug)\",\n",
+ " \"Prednisolone 25mg tablet\",\n",
+ " \"prednisoLONE 25 MG Oral Tablet\",\n",
+ " \"Prednisolone 25 mg oral tablet\",\n",
+ " \"prednisolone 25 MG Oral Tablet\",\n",
+ " \"Product containing precisely prednisolone 25 milligram/1 each conventional release oral tablet (clinical drug)\",\n",
+ " \"forte pred\",\n",
+ " \"pred forte\",\n",
+ " \"Pred Forte\",\n",
+ " \"Pred Mild\",\n",
+ " \"Pred Mild 0.12% Ophthalmic Suspension\",\n",
+ " \"Pred Mild 0.12 % Ophthalmic Suspension\",\n",
+ " \"PRED MILD 0.12 % Ophthalmic Suspension\",\n",
+ " \"Pred Mild 1.2 MG/ML Ophthalmic Suspension\",\n",
+ " \"Pred Mild, acetate 0.12% ophthalmic suspension\",\n",
+ " \"prednisoLONE 1.2 MG/ML Ophthalmic Suspension [Pred Mild]\",\n",
+ " \"prednisolone 1.2 MG/ML Ophthalmic Suspension [Pred Mild]\",\n",
+ " \"Prednisolone Acetate 0.12% Ophthalmic Suspension [PRED MILD]\",\n",
+ " \"PREDNISOLONE ACETATE 1.2 mg in 1 mL OPHTHALMIC SUSPENSION/ DROPS [PRED MILD]\",\n",
+ " \"pediapred\",\n",
+ " \"Pred-G\",\n",
+ " \"prednisolone 5 MG/ML Oral Solution\",\n",
+ " \"prednisoLONE 5 MG/ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PH 25MG/5ML A/F ORAL SOL\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 25MG/5ML (A/F) SOLN,ORAL\",\n",
+ " \"Prednisolone Sodium Phosphate 25 MG/5 ML Oral Solution\",\n",
+ " \"Prednisolone Sodium Phosphate 33.6mg/5mL Oral solution\",\n",
+ " \"prednisoLONE (as sodium phosphate) 25 mg/5 mL oral liquid\",\n",
+ " \"prednisoLONE sodium phosphate 25 MG in 5 mL Oral Solution\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 25 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 5 mg/mL oral solution\",\n",
+ " \"prednisolone sodium phosphate@25 mg/5 mL (5 mg/mL)@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate 25 mg/5 mL (5 mg/mL) ORAL SOLUTION, ORAL\",\n",
+ " \"PrednisoLONE Sodium Phosphate, (as sodium phosphate) 25 mg/5 mL oral liquid\",\n",
+ " \"prednisoLONE 25 MG (prednisoLONE sodium phosphate 33.6 MG) per 5 ML Oral Solution\",\n",
+ " \"prednisolone 25 MG (prednisolone sodium phosphate 33.6 MG) per 5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 25 mg in 5 mL ORAL SOLUTION [Prednisolone Sodium Phosphate Oral Solution]\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 5 milligram/1 milliliter conventional release oral solution (clinical drug)\",\n",
+ " \"Prednisolone 5mg suppository\",\n",
+ " \"prednisolone 5 MG Rectal Suppository\",\n",
+ " \"prednisoLONE 5 MG Rectal Suppository\",\n",
+ " \"prednisolone (as prednisolone sodium phosphate) 5 MG Rectal Suppository\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 5 mg rectal suppository\",\n",
+ " \"prednisoLONE (as prednisoLONE sodium phosphate) 5 MG Rectal Suppository\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 5 milligram/1 each conventional release rectal suppository (clinical drug)\",\n",
+ " \"Prednisolone 125mg/5mL inj\",\n",
+ " \"Prednisol acet 25mg/1mL inj\",\n",
+ " \"Prednisolone 125mg/5mL injection\",\n",
+ " \"Prednisolone acetate 25mg/1mL injection\",\n",
+ " \"prednisoLONE 25 MG/ML Injectable Suspension\",\n",
+ " \"prednisolone 25 MG/ML Injectable Suspension\",\n",
+ " \"Prednisolone acetate 25 mg/mL suspension for injection\",\n",
+ " \"Product containing precisely prednisolone acetate 25 milligram/1 milliliter conventional release suspension for injection (clinical drug)\",\n",
+ " \"Pediapred 5mg/5ml Solution\",\n",
+ " \"Pediapred 1 MG/ML Oral Solution\",\n",
+ " \"Pediapred 5 MG in 5 mL Oral Solution\",\n",
+ " \"prednisoLONE 1 MG/ML Oral Solution [Pediapred]\",\n",
+ " \"prednisolone 1 MG/ML Oral Solution [Pediapred]\",\n",
+ " \"Prednisolone Sodium Phosphate 5 MG/5 ML Oral Solution [PEDIAPRED]\",\n",
+ " \"Prednisolone Sodium Phosphate 5 mg in 5 mL ORAL SOLUTION [PEDIAPRED]\",\n",
+ " \"Pediapred 5 MG (as prednisolone sodium phosphate 6.7 MG) per 5 ML Oral Solution\",\n",
+ " \"Pediapred 5 MG (as prednisoLONE sodium phosphate 6.7 MG) per 5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE 3MG/ML ORAL SOLN\",\n",
+ " \"PREDNISOLONE 3MG/ML SOLN,ORAL\",\n",
+ " \"prednisoLONE 3 MG/ML Oral Solution\",\n",
+ " \"prednisoLONE 15 mg/5 mL oral syrup\",\n",
+ " \"Prednisolone 15 MG/5 ML Oral Syrup\",\n",
+ " \"prednisolone 3 MG/ML Oral Solution\",\n",
+ " \"Prednisolone 3 mg/mL oral solution\",\n",
+ " \"PrednisoLONE, 15 mg/5 mL oral syrup\",\n",
+ " \"Prednisolone 15mg/5mL Oral solution\",\n",
+ " \"Prednisolone 15 MG/5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PHOS 15MG/5ML ORAL SOLN\",\n",
+ " \"PREDNISOLONE 15 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisoLONE 15 MG per 5 ML Oral Solution\",\n",
+ " \"prednisolone 15 MG per 5 ML Oral Solution\",\n",
+ " \"prednisolone@15 mg/5 mL@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone 15 mg/5 mL ORAL SOLUTION, ORAL\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 15MG/5ML SOLN,ORAL\",\n",
+ " \"PREDNISOLONE 15 mg in 5 mL ORAL SYRUP [PrednisoLONE]\",\n",
+ " \"prednisoLONE sodium phosphate 15 mg/5 mL oral liquid\",\n",
+ " \"Prednisolone Sodium Phosphate 20.2mg/5mL Oral solution\",\n",
+ " \"Prednisolone Sodium Phosphate 15 MG/5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE 15 mg in 5 mL ORAL SOLUTION [Prednisolone]\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 15 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisoLONE sodium phosphate 15 MG in 5 mL Oral Solution\",\n",
+ " \"Prednisolone Sodium Phosphate 15 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisolone sodium phosphate@15 mg/5 mL@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate 15 mg/5 mL ORAL SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate@15 mg/5 mL (5 mL)@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate 15 mg/5 mL (5 mL) ORAL SOLUTION, ORAL\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 3 mg/mL oral solution\",\n",
+ " \"PrednisoLONE Sodium Phosphate, sodium phosphate 15 mg/5 mL oral liquid\",\n",
+ " \"prednisolone 15 MG (as prednisolone sodium phosphate 20.2 MG) per 5 ML Oral Solution\",\n",
+ " \"prednisoLONE 15 MG (as prednisoLONE sodium phosphate 20.2 MG) per 5 ML Oral Solution\",\n",
+ " \"Product containing precisely prednisolone 3 milligram/1 milliliter conventional release oral solution (clinical drug)\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 3 milligram/1 milliliter conventional release oral solution (clinical drug)\",\n",
+ " \"orapred\",\n",
+ " \"Prednisolone 5 MG/5 ML Oral Syrup\",\n",
+ " \"prednisoLONE 1 MG/ML Oral Solution\",\n",
+ " \"prednisolone 1 MG/ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 5MG/5ML LIQUID\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 5MG/5ML LIQUID,ORAL\",\n",
+ " \"Prednisolone Sodium Phosphate 6.7mg/5mL Oral solution\",\n",
+ " \"Prednisolone Sodium Phosphate 5 MG/5 ML Oral Solution\",\n",
+ " \"prednisoLONE (as sodium phosphate) 5 mg/5 mL oral liquid\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 5 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisoLONE sodium phosphate 5 MG in 5 mL Oral Solution\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 1 mg/mL oral solution\",\n",
+ " \"PrednisoLONE Sodium Phosphate, (as sodium phosphate) 5 mg/5 mL oral liquid\",\n",
+ " \"prednisolone sodium phosphate@5 mg base/5 mL (6.7 mg/5 mL)@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate 5 mg base/5 mL (6.7 mg/5 mL) ORAL SOLUTION, ORAL\",\n",
+ " \"prednisolone 5 MG (as prednisolone sodium phosphate 6.7 MG) per 5 ML Oral Solution\",\n",
+ " \"prednisoLONE 5 MG (as prednisoLONE sodium phosphate 6.7 MG) per 5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 5 mg in 5 mL ORAL SOLUTION [Prednisolone Sodium Phosphate]\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 1 milligram/1 milliliter conventional release oral solution (clinical drug)\",\n",
+ " \"Prednisolone acetate 1% e/d\",\n",
+ " \"Prednisolone acetate 1% eye drops\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 1% OPH SOLN\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 1% SOLN,OPH\",\n",
+ " \"Prednisolone acetate 10 mg/mL eye drops\",\n",
+ " \"prednisoLONE 10 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone 10 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone sodium phosphate 10 mg/mL eye drops\",\n",
+ " \"prednisolone sodium phosphate 1 % OPHTHALMIC DROPS\",\n",
+ " \"prednisolone sodium phosphate@1 %@OPHTHALMIC@DROPS\",\n",
+ " \"Prednisolone Sodium Phosphate 1% Ophthalmic Solution\",\n",
+ " \"prednisoLONE sodium phosphate 1 % Ophthalmic Solution\",\n",
+ " \"prednisolone sodium phosphate 1 % Ophthalmic Solution\",\n",
+ " \"Prednisolone Sodium Phosphate 1% Ophthalmic drops, solution\",\n",
+ " \"prednisoLONE ophthalmic sodium phosphate 1% ophthalmic solution\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 10 mg in 1 mL OPHTHALMIC SOLUTION/ DROPS\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 10 microgram/mL eye solution\",\n",
+ " \"PrednisoLONE Sodium Phosphate Ophthalmic, sodium phosphate 1% ophthalmic solution\",\n",
+ " \"Product containing precisely prednisolone acetate 10 milligram/1 milliliter conventional release eye drops (clinical drug)\",\n",
+ " \"Product containing precisely prednisolone sodium phosphate 10 milligram/1 milliliter conventional release eye drops (clinical drug)\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 10 microgram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"prednisolone 5 MG\",\n",
+ " \"prednisoLONE 5 MG\",\n",
+ " \"prednisolone 3 MG/ML\",\n",
+ " \"prednisoLONE 3 MG/ML\",\n",
+ " \"prednisolone 10 MG/ML\",\n",
+ " \"prednisoLONE 10 MG/ML\",\n",
+ " \"prednisolone 1 MG/ML\",\n",
+ " \"prednisoLONE 1 MG/ML\",\n",
+ " \"prednisolone 2 MG/ML\",\n",
+ " \"prednisoLONE 2 MG/ML\",\n",
+ " \"prednisolone 5 MG/ML\",\n",
+ " \"prednisoLONE 5 MG/ML\",\n",
+ " \"prednisolone 1.2 MG/ML\",\n",
+ " \"prednisoLONE 1.2 MG/ML\",\n",
+ " \"prednisoLONE 1.25 MG/ML\",\n",
+ " \"prednisolone 1.25 MG/ML\",\n",
+ " \"prednisolone 1 MG\",\n",
+ " \"prednisoLONE 1 MG\",\n",
+ " \"prednisolone 25 MG\",\n",
+ " \"prednisoLONE 25 MG\",\n",
+ " \"prednisolone 0.005 MG/MG\",\n",
+ " \"prednisoLONE 0.005 MG/MG\",\n",
+ " \"prednisolone 0.3 MG/ML\",\n",
+ " \"prednisoLONE 0.3 MG/ML\",\n",
+ " \"prednisoLONE 2.5 MG\",\n",
+ " \"prednisolone 2.5 MG\",\n",
+ " \"prednisolone 1.3 MG\",\n",
+ " \"prednisoLONE 1.3 MG\",\n",
+ " \"prednisolone 20 MG\",\n",
+ " \"prednisoLONE 20 MG\",\n",
+ " \"prednisolone 25 MG/ML\",\n",
+ " \"prednisoLONE 25 MG/ML\",\n",
+ " \"prednisoLONE 0.03 MG/ML\",\n",
+ " \"prednisolone 0.03 MG/ML\",\n",
+ " \"prednisolone 0.1 MG/ML\",\n",
+ " \"prednisoLONE 0.1 MG/ML\",\n",
+ " \"Prednisolone 1.25 mg/mL eye solution\",\n",
+ " \"prednisoLONE 1.25 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisolone 1.25 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE sodium phosphate 0.125 % Ophthalmic Solution\",\n",
+ " \"prednisolone sodium phosphate 0.125 % Ophthalmic Solution\",\n",
+ " \"Product containing precisely prednisolone 1.25 milligram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"Prednisolone 50mg tablet\",\n",
+ " \"Prednisolone 50 mg oral tablet\",\n",
+ " \"prednisoLONE 50 MG Oral Tablet\",\n",
+ " \"prednisolone 50 MG Oral Tablet\",\n",
+ " \"Product containing precisely prednisolone 50 milligram/1 each conventional release oral tablet (clinical drug)\",\n",
+ " \"prednisolone 50 MG\",\n",
+ " \"prednisoLONE 50 MG\",\n",
+ " \"prednisoLONE Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"prednisolone Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"prednisolone Ophthalmic Suspension [Pred Mild]\",\n",
+ " \"prednisoLONE Ophthalmic Suspension [Pred Mild]\",\n",
+ " \"prednisolone Injectable Suspension\",\n",
+ " \"prednisoLONE Injectable Suspension\",\n",
+ " \"prednisoLONE Ophthalmic Suspension\",\n",
+ " \"prednisolone Ophthalmic Suspension\",\n",
+ " \"prednisoLONE Delayed Release Oral Tablet\",\n",
+ " \"prednisolone Delayed Release Oral Tablet\",\n",
+ " \"Prednisolone Oral Solution\",\n",
+ " \"prednisoLONE Oral Solution\",\n",
+ " \"prednisolone Oral Solution\",\n",
+ " \"prednisoLONE Ophthalmic Solution\",\n",
+ " \"prednisolone Ophthalmic Solution\",\n",
+ " \"prednisolone Rectal Suppository\",\n",
+ " \"prednisoLONE Rectal Suppository\",\n",
+ " \"Prednisolone Tablets\",\n",
+ " \"prednisolone Oral Tablet\",\n",
+ " \"prednisoLONE Oral Tablet\",\n",
+ " \"prednisolone Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE Disintegrating Oral Tablet\",\n",
+ " \"Prednisolone 25 mg/mL eye suspension\",\n",
+ " \"prednisoLONE 2.5 % Ophthalmic Suspension\",\n",
+ " \"prednisolone 2.5 % Ophthalmic Suspension\",\n",
+ " \"prednisolone 25 MG/ML Ophthalmic Suspension\",\n",
+ " \"prednisoLONE 25 MG/ML Ophthalmic Suspension\",\n",
+ " \"Product containing precisely prednisolone 25 milligram/1 milliliter conventional release eye suspension (clinical drug)\",\n",
+ " \"prednisoLONE 0.005 MG/MG Paste\",\n",
+ " \"prednisolone 0.005 MG/MG Paste\",\n",
+ " \"Prednisolone (as prednisolone acetate) 5 mg/g oromucosal paste\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone acetate) 5 milligram/1 gram conventional release oromucosal paste (clinical drug)\",\n",
+ " \"prednisoLONE 20 MG Oral Tablet\",\n",
+ " \"prednisolone 20 MG Oral Tablet\",\n",
+ " \"prednisoLONE acetate 20 MG Oral Tablet\",\n",
+ " \"prednisoLONE 4 MG/ML\",\n",
+ " \"prednisolone 4 MG/ML\",\n",
+ " \"prednisoLONE 2 MG\",\n",
+ " \"prednisolone 2 MG\",\n",
+ " \"Prednisolone Cream\",\n",
+ " \"prednisoLONE Topical Cream\",\n",
+ " \"prednisolone Topical Cream\",\n",
+ " \"prednisolone Paste\",\n",
+ " \"prednisoLONE Paste\",\n",
+ " \"prednisoLONE 10 MG\",\n",
+ " \"prednisolone 10 MG\",\n",
+ " \"PREDNISOLONE ACETATE 0.12% SUSP,OPH\",\n",
+ " \"PREDNISOLONE ACETATE 0.12% OPH SUSP\",\n",
+ " \"prednisolone 0.12 % Ophthalmic Suspension\",\n",
+ " \"prednisoLONE 0.12 % Ophthalmic Suspension\",\n",
+ " \"prednisolone 1.2 MG/ML Ophthalmic Suspension\",\n",
+ " \"prednisoLONE 1.2 MG/ML Ophthalmic Suspension\",\n",
+ " \"Prednisolone acetate 1.2 mg/mL eye suspension\",\n",
+ " \"Prednisolone Acetate 0.12% Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate 0.12 % Ophthalmic Suspension\",\n",
+ " \"prednisoLONE ophthalmic acetate 0.12% ophthalmic suspension\",\n",
+ " \"prednisolone acetate@0.12 %@OPHTHALMIC@SUSPENSION, DROPS(FINAL DOSAGE FORM)(ML)\",\n",
+ " \"prednisolone acetate 0.12 % OPHTHALMIC SUSPENSION, DROPS(FINAL DOSAGE FORM)(ML)\",\n",
+ " \"Product containing precisely prednisolone acetate 1.2 milligram/1 milliliter conventional release eye suspension (clinical drug)\",\n",
+ " \"prednisoLONE 1.2 MG/ML [Pred Mild]\",\n",
+ " \"prednisolone 1.2 MG/ML [Pred Mild]\",\n",
+ " \"prednisolone 1 MG/ML [Pediapred]\",\n",
+ " \"prednisoLONE 1 MG/ML [Pediapred]\",\n",
+ " \"PREDNISOLONE NA PHOS 10MG DISINTEGR TAB\",\n",
+ " \"prednisoLONE 10 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisolone 10 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE 10 mg oral tablet, disintegrating\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 10MG TAB,ORAL,DISINTEGRATING\",\n",
+ " \"prednisolone sodium phosphate 10 mg ORAL TABLET,DISINTEGRATING\",\n",
+ " \"prednisoLONE sodium phosphate 10 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisolone sodium phosphate@10 mg@ORAL@TABLET,DISINTEGRATING\",\n",
+ " \"Prednisolone Sodium Phosphate 13.4mg Oral disintegrating tablet\",\n",
+ " \"Prednisolone Sodium Phosphate 10 MG Oral Tablet, Disintegrating\",\n",
+ " \"PrednisoLONE Sodium Phosphate ODT, 10 mg oral tablet, disintegrating\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 10 mg orodispersible tablet\",\n",
+ " \"prednisoLONE 10 MG (prednisoLONE sodium phosphate 13.4 MG) Disintegrating Oral Tablet\",\n",
+ " \"prednisolone 10 MG (prednisolone sodium phosphate 13.4 MG) Disintegrating Oral Tablet\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 10 mg ORAL TABLET, ORALLY DISINTEGRATING [Prednisolone Sodium Phosphate ODT]\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 10 milligram/1 each conventional release orodispersible tablet (clinical drug)\",\n",
+ " \"prednisoLONE 15 MG\",\n",
+ " \"prednisolone 15 MG\",\n",
+ " \"PREDNISOLONE NA PHOS 15MG DISINTEGR TAB\",\n",
+ " \"prednisolone 15 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE 15 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE 15 mg oral tablet, disintegrating\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 15MG TAB,ORAL DISINTEGRATING\",\n",
+ " \"prednisolone sodium phosphate 15 mg ORAL TABLET,DISINTEGRATING\",\n",
+ " \"prednisolone sodium phosphate@15 mg@ORAL@TABLET,DISINTEGRATING\",\n",
+ " \"prednisoLONE sodium phosphate 15 MG Disintegrating Oral Tablet\",\n",
+ " \"Prednisolone Sodium Phosphate 15 MG Oral Tablet, Disintegrating\",\n",
+ " \"Prednisolone Sodium Phosphate 20.2mg Oral disintegrating tablet\",\n",
+ " \"PrednisoLONE Sodium Phosphate ODT, 15 mg oral tablet, disintegrating\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 15 mg orodispersible tablet\",\n",
+ " \"prednisoLONE 15 MG (prednisoLONE sodium phosphate 20.2 MG) Disintegrating Oral Tablet\",\n",
+ " \"prednisolone 15 MG (prednisolone sodium phosphate 20.2 MG) Disintegrating Oral Tablet\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 15 mg ORAL TABLET, ORALLY DISINTEGRATING [Prednisolone Sodium Phosphate ODT]\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 15 milligram/1 each conventional release orodispersible tablet (clinical drug)\",\n",
+ " \"prednisolone 30 MG\",\n",
+ " \"prednisoLONE 30 MG\",\n",
+ " \"PREDNISOLONE NA PHOS 30MG DISINTEGR TAB\",\n",
+ " \"prednisolone 30 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE 30 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisoLONE 30 mg oral tablet, disintegrating\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 30MG TAB,ORAL DISINTEGRATING\",\n",
+ " \"prednisolone sodium phosphate 30 mg ORAL TABLET,DISINTEGRATING\",\n",
+ " \"prednisoLONE sodium phosphate 30 MG Disintegrating Oral Tablet\",\n",
+ " \"prednisolone sodium phosphate@30 mg@ORAL@TABLET,DISINTEGRATING\",\n",
+ " \"Prednisolone Sodium Phosphate 40.3mg Oral disintegrating tablet\",\n",
+ " \"Prednisolone Sodium Phosphate 30 MG Oral Tablet, Disintegrating\",\n",
+ " \"PrednisoLONE Sodium Phosphate ODT, 30 mg oral tablet, disintegrating\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 30 mg orodispersible tablet\",\n",
+ " \"prednisoLONE 30 MG (as prednisoLONE sodium phosphate 40.3 MG) Disintegrating Oral Tablet\",\n",
+ " \"prednisolone 30 MG (as prednisolone sodium phosphate 40.3 MG) Disintegrating Oral Tablet\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 30 mg ORAL TABLET, ORALLY DISINTEGRATING [Prednisolone Sodium Phosphate]\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 30 milligram/1 each conventional release orodispersible tablet (clinical drug)\",\n",
+ " \"prednisoLONE 15 MG [Orapred]\",\n",
+ " \"prednisolone 15 MG [Orapred]\",\n",
+ " \"prednisolone Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"prednisoLONE Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"Orapred 15 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 15 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 15mg Orally Disintegrating Tablet\",\n",
+ " \"Orapred ODT, 15 mg oral tablet, disintegrating\",\n",
+ " \"prednisolone 15 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"prednisoLONE 15 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"Prednisolone Sodium Phosphate 15 MG Oral Tablet, Disintegrating [ORAPRED ODT]\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 15 mg ORAL TABLET, ORALLY DISINTEGRATING [Orapred ODT]\",\n",
+ " \"prednisolone 10 MG [Orapred]\",\n",
+ " \"prednisoLONE 10 MG [Orapred]\",\n",
+ " \"Orapred 10 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 10 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 10mg Orally Disintegrating Tablet\",\n",
+ " \"Orapred ODT, 10 mg oral tablet, disintegrating\",\n",
+ " \"prednisolone 10 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"prednisoLONE 10 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"Prednisolone Sodium Phosphate 10 MG Oral Tablet, Disintegrating [ORAPRED ODT]\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 10 mg ORAL TABLET, ORALLY DISINTEGRATING [Orapred ODT]\",\n",
+ " \"prednisoLONE 30 MG [Orapred]\",\n",
+ " \"prednisolone 30 MG [Orapred]\",\n",
+ " \"Orapred 30 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 30 MG Disintegrating Oral Tablet\",\n",
+ " \"Orapred ODT 30mg Orally Disintegrating Tablet\",\n",
+ " \"Orapred ODT, 30 mg oral tablet, disintegrating\",\n",
+ " \"prednisoLONE 30 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"prednisolone 30 MG Disintegrating Oral Tablet [Orapred]\",\n",
+ " \"Prednisolone Sodium Phosphate 30 MG Oral Tablet, Disintegrating [ORAPRED ODT]\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 30 mg ORAL TABLET, ORALLY DISINTEGRATING [Orapred ODT]\",\n",
+ " \"prednisoLONE 4 MG/ML Oral Solution\",\n",
+ " \"prednisolone 4 MG/ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PHOS 20MG/5ML SOLN ORAL\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 20MG/5ML SOLN,ORAL\",\n",
+ " \"Prednisolone Sodium Phosphate 26.9mg/5mL Oral solution\",\n",
+ " \"Prednisolone Sodium Phosphate 20 MG/5 ML Oral Solution\",\n",
+ " \"prednisoLONE sodium phosphate 20 MG in 5 mL Oral Solution\",\n",
+ " \"prednisoLONE (as sodium phosphate) 20 mg/5 mL oral liquid\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 20 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisolone sodium phosphate 20 mg/5 mL (4 mg/mL) ORAL SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate@20 mg/5 mL (4 mg/mL)@ORAL@SOLUTION, ORAL\",\n",
+ " \"PrednisoLONE Sodium Phosphate, (as sodium phosphate) 20 mg/5 mL oral liquid\",\n",
+ " \"prednisolone 20 MG (as prednisolone sodium phosphate 26.9 MG) per 5 ML Oral Solution\",\n",
+ " \"prednisoLONE 20 MG (as prednisoLONE sodium phosphate 26.9 MG) per 5 ML Oral Solution\",\n",
+ " \"prednisoLONE Oral Suspension\",\n",
+ " \"prednisolone Oral Suspension\",\n",
+ " \"prednisoLONE 1 MG/ML Oral Suspension\",\n",
+ " \"Prednisolone 1 mg/mL oral suspension\",\n",
+ " \"prednisolone 1 MG/ML Oral Suspension\",\n",
+ " \"Product containing precisely prednisolone 1 milligram/1 milliliter conventional release oral suspension (clinical drug)\",\n",
+ " \"Prednisolone 3 mg/mL oral suspension\",\n",
+ " \"prednisolone 3 MG/ML Oral Suspension\",\n",
+ " \"prednisoLONE 3 MG/ML Oral Suspension\",\n",
+ " \"prednisoLONE 15 MG per 5 ML Oral Suspension\",\n",
+ " \"prednisolone 15 MG per 5 ML Oral Suspension\",\n",
+ " \"prednisoLONE acetate 15 MG in 5 mL Oral Suspension\",\n",
+ " \"prednisoLONE (prednisoLONE acetate 3.34 MG/ML) 3 MG/ML Oral Suspension\",\n",
+ " \"prednisolone (prednisolone acetate 3.34 MG/ML) 3 MG/ML Oral Suspension\",\n",
+ " \"Product containing precisely prednisolone 3 milligram/1 milliliter conventional release oral suspension (clinical drug)\",\n",
+ " \"prednisolone 2 MG/ML Oral Solution\",\n",
+ " \"prednisoLONE 2 MG/ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PH 10MG/5ML A/F ORAL SOL\",\n",
+ " \"prednisoLONE 10 MG per 5 ML Oral Solution\",\n",
+ " \"prednisolone 10 MG per 5 ML Oral Solution\",\n",
+ " \"PREDNISOLONE NA PHOSPHATE 10MG/5ML (A/F) SOLN,ORAL\",\n",
+ " \"Prednisolone Sodium Phosphate 10 MG/5 ML Oral Solution\",\n",
+ " \"Prednisolone Sodium Phosphate 13.4mg/5mL Oral solution\",\n",
+ " \"prednisoLONE sodium phosphate 10 MG in 5 mL Oral Solution\",\n",
+ " \"prednisoLONE (as sodium phosphate) 10 mg/5 mL oral liquid\",\n",
+ " \"PREDNISOLONE SODIUM PHOSPHATE 10 mg in 5 mL ORAL SOLUTION\",\n",
+ " \"prednisolone sodium phosphate@10 mg/5 mL@ORAL@SOLUTION, ORAL\",\n",
+ " \"prednisolone sodium phosphate 10 mg/5 mL ORAL SOLUTION, ORAL\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 2 mg/mL oral solution\",\n",
+ " \"PrednisoLONE Sodium Phosphate, (as sodium phosphate) 10 mg/5 mL oral liquid\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 2 milligram/1 milliliter conventional release oral solution (clinical drug)\",\n",
+ " \"MILLIPRED\",\n",
+ " \"prednisoLONE 2 MG/ML [MILLIPRED]\",\n",
+ " \"prednisolone 2 MG/ML [MILLIPRED]\",\n",
+ " \"prednisoLONE Oral Solution [MILLIPRED]\",\n",
+ " \"prednisolone Oral Solution [MILLIPRED]\",\n",
+ " \"Millipred 2 MG/ML Oral Solution\",\n",
+ " \"Millipred 10mg/5mL Oral Solution\",\n",
+ " \"Millipred 10 MG in 5 mL Oral Solution\",\n",
+ " \"Millipred 10 MG per 5 ML Oral Solution\",\n",
+ " \"prednisoLONE 2 MG/ML Oral Solution [MILLIPRED]\",\n",
+ " \"prednisolone 2 MG/ML Oral Solution [MILLIPRED]\",\n",
+ " \"Prednisolone Sodium Phosphate 10 MG/5 ML Oral Solution [MILLIPRED]\",\n",
+ " \"Millipred 10 MG per 5 ML (as prednisoLONE sodium phosphate 13.4 MG per 5 ML) Oral Solution\",\n",
+ " \"Millipred 10 MG per 5 ML (as prednisolone sodium phosphate 13.4 MG per 5 ML) Oral Solution\",\n",
+ " \"prednisolone 5 MG [MILLIPRED]\",\n",
+ " \"prednisoLONE 5 MG [MILLIPRED]\",\n",
+ " \"prednisoLONE Oral Tablet [MILLIPRED]\",\n",
+ " \"prednisolone Oral Tablet [MILLIPRED]\",\n",
+ " \"Millipred 5mg Tablet\",\n",
+ " \"MILLIPRED 5 MG Oral Tablet\",\n",
+ " \"Millipred, 5 mg oral tablet\",\n",
+ " \"Prednisolone 5 MG Oral Tablet [MILLIPRED]\",\n",
+ " \"prednisolone 5 MG Oral Tablet [MILLIPRED]\",\n",
+ " \"prednisoLONE 5 MG Oral Tablet [MILLIPRED]\",\n",
+ " \"Veripred\",\n",
+ " \"prednisolone 4 MG/ML [Veripred]\",\n",
+ " \"prednisoLONE 4 MG/ML [Veripred]\",\n",
+ " \"prednisolone Oral Solution [Veripred]\",\n",
+ " \"prednisoLONE Oral Solution [Veripred]\",\n",
+ " \"Veripred 20 Oral Solution\",\n",
+ " \"Veripred 20 20mg/5mL Solution\",\n",
+ " \"Veripred 20 4 MG/ML Oral Solution\",\n",
+ " \"Veripred 20 MG in 5 mL Oral Solution\",\n",
+ " \"Veripred 20 20 MG per 5 ML Oral Solution\",\n",
+ " \"prednisolone 4 MG/ML Oral Solution [Veripred]\",\n",
+ " \"prednisoLONE 4 MG/ML Oral Solution [Veripred]\",\n",
+ " \"Prednisolone Sodium Phosphate 20 MG/5 ML Oral Solution [VERIPRED 20]\",\n",
+ " \"prednisolone acetate 5 MG/ML\",\n",
+ " \"prednisoLONE acetate 5 MG/ML\",\n",
+ " \"prednisoLONE acetate 0.0025 MG/MG\",\n",
+ " \"prednisolone acetate 0.0025 MG/MG\",\n",
+ " \"prednisoLONE acetate 0.002 MG/MG\",\n",
+ " \"prednisolone acetate 0.002 MG/MG\",\n",
+ " \"prednisolone acetate 2 MG/ML\",\n",
+ " \"prednisoLONE acetate 2 MG/ML\",\n",
+ " \"prednisoLONE sodium phosphate 2.5 MG/ML\",\n",
+ " \"prednisolone sodium phosphate 2.5 MG/ML\",\n",
+ " \"prednisoLONE sodium phosphate 5 MG/ML\",\n",
+ " \"prednisolone sodium phosphate 5 MG/ML\",\n",
+ " \"prednisoLONE Paste Product\",\n",
+ " \"prednisolone Paste Product\",\n",
+ " \"prednisoLONE Pill\",\n",
+ " \"prednisolone Pill\",\n",
+ " \"Rectal prednisolone preps\",\n",
+ " \"prednisolone Rectal Product\",\n",
+ " \"prednisoLONE Rectal Product\",\n",
+ " \"Rectal prednisolone preparations\",\n",
+ " \"Prednisolone-containing product in rectal dose form\",\n",
+ " \"Product containing prednisolone in rectal dose form (medicinal product form)\",\n",
+ " \"topical prednisolone\",\n",
+ " \"prednisolone topical\",\n",
+ " \"Topical prednisolone\",\n",
+ " \"prednisoLONE Topical Product\",\n",
+ " \"prednisolone Topical Product\",\n",
+ " \"Prednisolone-containing product in cutaneous dose form\",\n",
+ " \"Product containing prednisolone in cutaneous dose form (medicinal product form)\",\n",
+ " \"Parenteral prednisolone\",\n",
+ " \"prednisoLONE Injectable Product\",\n",
+ " \"prednisolone Injectable Product\",\n",
+ " \"Prednisolone-containing product in parenteral dose form\",\n",
+ " \"Product containing prednisolone in parenteral dose form (medicinal product form)\",\n",
+ " \"prednisoLONE ophthalmic\",\n",
+ " \"prednisolone ophthalmic\",\n",
+ " \"prednisoLONE Ophthalmic Product\",\n",
+ " \"prednisolone Ophthalmic Product\",\n",
+ " \"Prednisolone ophthalmic preparation\",\n",
+ " \"Prednisolone-containing product in ocular dose form\",\n",
+ " \"Product containing prednisolone in ocular dose form (medicinal product form)\",\n",
+ " \"prednisolone Oral Liquid Product\",\n",
+ " \"prednisoLONE Oral Liquid Product\",\n",
+ " \"oral prednisolone\",\n",
+ " \"Oral prednisolone\",\n",
+ " \"prednisolone oral\",\n",
+ " \"prednisoLONE Oral Product\",\n",
+ " \"prednisolone Oral Product\",\n",
+ " \"Prednisolone-containing product in oral dose form\",\n",
+ " \"Product containing prednisolone in oral dose form (medicinal product form)\",\n",
+ " \"prednisoLONE Otic Product\",\n",
+ " \"prednisolone Otic Product\",\n",
+ " \"Prednisolone-containing product in otic dose form\",\n",
+ " \"Product containing prednisolone in otic dose form (medicinal product form)\",\n",
+ " \"Orapred Oral Product\",\n",
+ " \"Orapred Pill\",\n",
+ " \"Pediapred Oral Liquid Product\",\n",
+ " \"Pediapred Oral Product\",\n",
+ " \"MILLIPRED Oral Liquid Product\",\n",
+ " \"MILLIPRED Oral Product\",\n",
+ " \"MILLIPRED Pill\",\n",
+ " \"Pred Forte Ophthalmic Product\",\n",
+ " \"Pred Mild Ophthalmic Product\",\n",
+ " \"Pred-G Ophthalmic Product\",\n",
+ " \"Veripred Oral Liquid Product\",\n",
+ " \"Veripred Oral Product\",\n",
+ " \"Prednistab\",\n",
+ " \"prednisolone 20 MG [Prednistab]\",\n",
+ " \"prednisoLONE 20 MG [Prednistab]\",\n",
+ " \"prednisoLONE Oral Tablet [Prednistab]\",\n",
+ " \"prednisolone Oral Tablet [Prednistab]\",\n",
+ " \"Prednistab Oral Product\",\n",
+ " \"Prednistab Pill\",\n",
+ " \"PrednisTab 20 MG Oral Tablet\",\n",
+ " \"Prednistab 20 MG Oral Tablet\",\n",
+ " \"prednisolone 20 MG Oral Tablet [Prednistab]\",\n",
+ " \"PREDNISOLONE 20 mg ORAL TABLET [PrednisTab]\",\n",
+ " \"prednisoLONE 20 MG Oral Tablet [Prednistab]\",\n",
+ " \"prednisolone 5 MG [Prednistab]\",\n",
+ " \"prednisoLONE 5 MG [Prednistab]\",\n",
+ " \"PrednisTab 5 MG Oral Tablet\",\n",
+ " \"Prednistab 5 MG Oral Tablet\",\n",
+ " \"prednisoLONE 5 MG Oral Tablet [Prednistab]\",\n",
+ " \"prednisolone 5 MG Oral Tablet [Prednistab]\",\n",
+ " \"PREDNISOLONE 5 mg ORAL TABLET [PrednisTab]\",\n",
+ " \"prednisoLONE Disintegrating Oral Product\",\n",
+ " \"prednisolone Disintegrating Oral Product\",\n",
+ " \"Orapred Disintegrating Oral Product\",\n",
+ " \"prednisoLONE acetate 10 MG/ML\",\n",
+ " \"prednisolone acetate 10 MG/ML\",\n",
+ " \"PREDNISOLONE ACETATE 1% SUSP,OPH\",\n",
+ " \"PREDNISOLONE ACETATE 1% OPH SUSP\",\n",
+ " \"Prednisolone acetate 10 mg/mL eye suspension\",\n",
+ " \"Prednisolone Acetate 1% Ophthalmic Suspension\",\n",
+ " \"prednisolone acetate 1 % Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate 1 % Ophthalmic Suspension\",\n",
+ " \"prednisolone acetate 10 MG/ML Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate 10 MG/ML Ophthalmic Suspension\",\n",
+ " \"Prednisolone Acetate 1% Ophthalmic drops, suspension\",\n",
+ " \"prednisoLONE ophthalmic acetate 1% ophthalmic suspension\",\n",
+ " \"PREDNISOLONE ACETATE 10 mg in 1 mL OPHTHALMIC SUSPENSION/ DROPS\",\n",
+ " \"PrednisoLONE Acetate, Ophthalmic, acetate 1% ophthalmic suspension\",\n",
+ " \"prednisoLONE ophthalmic acetate 1% preservative-free ophthalmic suspension\",\n",
+ " \"prednisolone acetate@1 %@OPHTHALMIC@SUSPENSION, DROPS(FINAL DOSAGE FORM)(ML)\",\n",
+ " \"prednisolone acetate 1 % OPHTHALMIC SUSPENSION, DROPS(FINAL DOSAGE FORM)(ML)\",\n",
+ " \"prednisolone acetate 10 mg in 1 mL OPHTHALMIC SUSPENSION/ DROPS [PREDNISOLONE ACETATE]\",\n",
+ " \"PREDNISOLONE ACETATE 10 mg in 1 mL OPHTHALMIC SUSPENSION/ DROPS [PREDNISOLONE ACETATE]\",\n",
+ " \"PrednisoLONE Acetate Ophthalmic, Preservative-Free, acetate 1% preservative-free ophthalmic suspension\",\n",
+ " \"Product containing precisely prednisolone acetate 10 milligram/1 milliliter conventional release eye suspension (clinical drug)\",\n",
+ " \"Prednisolone 0.5% s-d e/d\",\n",
+ " \"prednisolone sodium phosphate 0.5 % Ophthalmic Solution\",\n",
+ " \"Prednisolone sodium phosphate 0.5% single-use eye drops\",\n",
+ " \"prednisoLONE sodium phosphate 0.5 % Ophthalmic Solution\",\n",
+ " \"prednisolone sodium phosphate 5 MG/ML Ophthalmic Solution\",\n",
+ " \"prednisoLONE sodium phosphate 5 MG/ML Ophthalmic Solution\",\n",
+ " \"Prednisolone (as prednisolone sodium phosphate) 5 mg/mL eye solution\",\n",
+ " \"Product containing precisely prednisolone (as prednisolone sodium phosphate) 5 milligram/1 milliliter conventional release eye solution (clinical drug)\",\n",
+ " \"prednisoLONE acetate 10 MG/ML [Pred Forte]\",\n",
+ " \"prednisolone acetate 10 MG/ML [Pred Forte]\",\n",
+ " \"Pred-Forte 1% Ophthalmic Suspension\",\n",
+ " \"Pred Forte 1 % Ophthalmic Suspension\",\n",
+ " \"Pred Forte 10 MG/ML Ophthalmic Suspension\",\n",
+ " \"Pred Forte, acetate 1% ophthalmic suspension\",\n",
+ " \"Prednisolone Acetate 1% Ophthalmic Suspension [PRED FORTE]\",\n",
+ " \"prednisolone acetate 10 MG/ML Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"prednisoLONE acetate 10 MG/ML Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"PREDNISOLONE ACETATE 10 mg in 1 mL OPHTHALMIC SUSPENSION/ DROPS [PRED FORTE]\",\n",
+ " \"prednisoLONE acetate 1.25 MG/ML\",\n",
+ " \"prednisolone acetate 1.25 MG/ML\",\n",
+ " \"Prednisolone acetate 1.25 mg/mL eye suspension\",\n",
+ " \"prednisoLONE acetate 0.125 % Ophthalmic Suspension\",\n",
+ " \"prednisolone acetate 0.125 % Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate 1.25 MG/ML Ophthalmic Suspension\",\n",
+ " \"prednisolone acetate 1.25 MG/ML Ophthalmic Suspension\",\n",
+ " \"Product containing precisely prednisolone acetate 1.25 milligram/1 milliliter conventional release eye suspension (clinical drug)\",\n",
+ " \"prednisoLONE acetate 0.006 MG/MG\",\n",
+ " \"prednisolone acetate 0.006 MG/MG\",\n",
+ " \"gentamicin / prednisoLONE Ophthalmic Suspension\",\n",
+ " \"gentamicin / prednisolone Ophthalmic Suspension\",\n",
+ " \"gentamicin 3 MG/ML / prednisoLONE acetate 10 MG/ML [Pred-G]\",\n",
+ " \"gentamicin 3 MG/ML / prednisolone acetate 10 MG/ML [Pred-G]\",\n",
+ " \"gentamicin / prednisoLONE Ophthalmic Suspension [Pred-G]\",\n",
+ " \"gentamicin / prednisolone Ophthalmic Suspension [Pred-G]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension\",\n",
+ " \"Prednisolone Acetate Ophthalmic Suspension\",\n",
+ " \"prednisolone sodium phosphate Ophthalmic Solution\",\n",
+ " \"prednisoLONE sodium phosphate Ophthalmic Solution\",\n",
+ " \"Prednisolone Sodium Phosphate Ophthalmic Solution\",\n",
+ " \"prednisolone acetate Oral Solution\",\n",
+ " \"prednisoLONE acetate Oral Solution\",\n",
+ " \"prednisoLONE acetate Oral Tablet\",\n",
+ " \"prednisolone acetate Oral Tablet\",\n",
+ " \"gentamicin / prednisolone acetate Ophthalmic Suspension\",\n",
+ " \"gentamicin / prednisoLONE acetate Ophthalmic Suspension\",\n",
+ " \"Gentamicin and Prednisolone Acetate Ophthalmic Suspension\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension [Omnipred]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension [Omnipred]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension [Pred Forte]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension [Econopred Plus]\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension [Econopred Plus]\",\n",
+ " \"gentamicin / prednisolone acetate Ophthalmic Suspension [Pred-G]\",\n",
+ " \"gentamicin / prednisoLONE acetate Ophthalmic Suspension [Pred-G]\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension [Ocu-Pred-A]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension [Ocu-Pred-A]\",\n",
+ " \"prednisoLONE acetate Ophthalmic Suspension [Econopred]\",\n",
+ " \"prednisolone acetate Ophthalmic Suspension [Econopred]\",\n",
+ " \"prednisolone acetate Oral Product\",\n",
+ " \"prednisoLONE acetate Oral Product\",\n",
+ " \"prednisolone acetate Oral Liquid Product\",\n",
+ " \"prednisoLONE acetate Oral Liquid Product\",\n",
+ " \"prednisoLONE acetate Ophthalmic Product\",\n",
+ " \"prednisolone acetate Ophthalmic Product\",\n",
+ " \"prednisolone sodium phosphate Ophthalmic Product\",\n",
+ " \"prednisoLONE sodium phosphate Ophthalmic Product\",\n",
+ " \"prednisoLONE acetate Injectable Product\",\n",
+ " \"prednisolone acetate Injectable Product\",\n",
+ " \"prednisolone acetate Pill\",\n",
+ " \"prednisoLONE acetate Pill\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MolecularMixture\",\n",
+ " \"biolink:ChemicalMixture\",\n",
+ " \"biolink:Drug\",\n",
+ " \"biolink:OntologyClass\"\n",
+ " ],\n",
+ " \"score\": 11658.129,\n",
+ " \"clique_identifier_count\": 431\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"CHEBI:135745\",\n",
+ " \"label\": \"Prednisolone hemisuccinate\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Prednisolut\",\n",
+ " \"Prednisolonbisuccinat\",\n",
+ " \"Prednisolone succinate\",\n",
+ " \"prednisolone succinate\",\n",
+ " \"prednisolone bisuccinate\",\n",
+ " \"Prednisolone bisuccinate\",\n",
+ " \"prednisolone 21-succinate\",\n",
+ " \"Prednisolone 21-succinate\",\n",
+ " \"prednisolone hemisuccinate\",\n",
+ " \"Prednisolone hemisuccinate\",\n",
+ " \"PREDNISOLONE HEMISUCCINATE\",\n",
+ " \"prednisolone 21-hemisuccinate\",\n",
+ " \"Prednisolone 21-hemisuccinate\",\n",
+ " \"(+)-prednisolone hemisuccinate\",\n",
+ " \"Prednisolone hydrogen succinate\",\n",
+ " \"Delta(1)-hydrocortisone succinate\",\n",
+ " \"prednisolone 21-(hydrogen succinate)\",\n",
+ " \"Delta(1)-hydrocortisone 21-hemisuccinate\",\n",
+ " \"11beta,17alpha,21-trihydroxy-1,4-pregnadiene-3,20-dione 21-hemisuccinate\",\n",
+ " \"4-[(11beta,17-dihydroxy-3,20-dioxopregna-1,4-dien-21-yl)oxy]-4-oxobutanoic acid\",\n",
+ " \"(11 beta)-21-(3-carboxy-1-oxopropoxy)-11,17- dihydroxypregna-1,4-diene-3,20-dione\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:SmallMolecule\",\n",
+ " \"biolink:MolecularEntity\",\n",
+ " \"biolink:ChemicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:ChemicalOrDrugOrTreatment\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 484.73825,\n",
+ " \"clique_identifier_count\": 11\n",
+ " }\n",
+ " ],\n",
+ " \"Golgi apparatus\": [\n",
+ " {\n",
+ " \"curie\": \"MESH:D006056\",\n",
+ " \"label\": \"Golgi Apparatus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Golgi\",\n",
+ " \"dictyosome\",\n",
+ " \"Dictyosome\",\n",
+ " \"Golgi ribbon\",\n",
+ " \"complex golgi\",\n",
+ " \"golgi complex\",\n",
+ " \"Golgi complex\",\n",
+ " \"Golgi Complex\",\n",
+ " \"Complex, Golgi\",\n",
+ " \"Golgi apparatus\",\n",
+ " \"Golgi Apparatus\",\n",
+ " \"golgi apparatus\",\n",
+ " \"Apparatus, Golgi\",\n",
+ " \"Golgi complex, NOS\",\n",
+ " \"Complexus gogliensis\",\n",
+ " \"Complexus golgiensis\",\n",
+ " \"Golgi complex location\",\n",
+ " \"Golgi complex (cell structure)\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:CellularComponent\",\n",
+ " \"biolink:AnatomicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OrganismalEntity\",\n",
+ " \"biolink:SubjectOfInvestigation\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 3255.025,\n",
+ " \"clique_identifier_count\": 4\n",
+ " },\n",
+ " {\n",
+ " \"curie\": \"GO:0005794\",\n",
+ " \"label\": \"Golgi apparatus\",\n",
+ " \"highlighting\": {},\n",
+ " \"synonyms\": [\n",
+ " \"Golgi\",\n",
+ " \"Golgi ribbon\",\n",
+ " \"Golgi complex\",\n",
+ " \"Golgi apparatus\"\n",
+ " ],\n",
+ " \"taxa\": [],\n",
+ " \"types\": [\n",
+ " \"biolink:CellularComponent\",\n",
+ " \"biolink:AnatomicalEntity\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OrganismalEntity\",\n",
+ " \"biolink:SubjectOfInvestigation\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:Entity\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\"\n",
+ " ],\n",
+ " \"score\": 1401.8629,\n",
+ " \"clique_identifier_count\": 1\n",
+ " }\n",
+ " ]\n",
"}\n"
]
}
],
"source": [
- "print(\"These are the first two results:\")\n",
- "params = {'string':'diabetes','limit':2}\n",
- "response = requests.post(nr_url,params=params)\n",
- "print(json.dumps(response.json(),indent=1))\n",
+ "nameres_bulk_upload_url=\"https://name-resolution-sri.renci.org/bulk-lookup\"\n",
+ "response = requests.post(nameres_bulk_upload_url, json={\n",
+ " \"strings\": [\n",
+ " \"cox1\",\n",
+ " \"prednisolone\",\n",
+ " \"Golgi apparatus\"\n",
+ " ],\n",
+ " \"autocomplete\": False,\n",
+ " \"highlighting\": False,\n",
+ " \"offset\": 0,\n",
+ " \"limit\": 2,\n",
+ " \"biolink_types\": [],\n",
+ " \"only_prefixes\": \"\",\n",
+ " \"exclude_prefixes\": \"\",\n",
+ " \"only_taxa\": \"\"\n",
+ "})\n",
+ "print(json.dumps(response.json(),indent=2))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Synonyms\n",
"\n",
- "print('\\nAnd this is just the second result:')\n",
- "params = {'string':'diabetes','limit':1, 'offset':1}\n",
- "response = requests.post(nr_url,params=params)\n",
- "print(json.dumps(response.json(),indent=1))"
+ "The synonyms endpoint can be used to look up synonyms (and other information) for a particular identifier. Note that **the synonyms endpoint will not normalize identifiers** -- only the preferred identifier from a NodeNorm result with both GeneProtein and DrugChemical conflation turned on can be looked up in the corresponding NameRes instance. This actually includes all the information stored about that clique in Apache Solr, some of which is used in ordering search results."
]
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 52,
"metadata": {},
- "outputs": [],
- "source": []
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "{\n",
+ " \"UniProtKB:A0A0S2Z3B5\": {\n",
+ " \"id\": {\n",
+ " \"identifier\": \"NCBIGene:1756\",\n",
+ " \"label\": \"DMD\"\n",
+ " },\n",
+ " \"equivalent_identifiers\": [\n",
+ " {\n",
+ " \"identifier\": \"NCBIGene:1756\",\n",
+ " \"label\": \"DMD\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"ENSEMBL:ENSG00000198947\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"HGNC:2928\",\n",
+ " \"label\": \"DMD\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"OMIM:300377\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UMLS:C1414083\",\n",
+ " \"label\": \"DMD gene\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A087WV90\",\n",
+ " \"label\": \"A0A087WV90_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A0S2Z3B5\",\n",
+ " \"label\": \"A0A0S2Z3B5_HUMAN Dystrophin isoform 2 (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A0S2Z3J7\",\n",
+ " \"label\": \"A0A0S2Z3J7_HUMAN Dystrophin isoform 1 (Fragment) (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A5H1ZRP9\",\n",
+ " \"label\": \"A0A5H1ZRP9_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A5H1ZRQ1\",\n",
+ " \"label\": \"A0A5H1ZRQ1_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A5H1ZRQ8\",\n",
+ " \"label\": \"A0A5H1ZRQ8_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A5H1ZRR9\",\n",
+ " \"label\": \"A0A5H1ZRR9_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A0A804HKY9\",\n",
+ " \"label\": \"A0A804HKY9_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:A7E212\",\n",
+ " \"label\": \"A7E212_HUMAN Dystrophin (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:P11532\",\n",
+ " \"label\": \"DMD_HUMAN Dystrophin (sprot)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"PR:P11532\",\n",
+ " \"label\": \"dystrophin (human)\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UMLS:C1437024\",\n",
+ " \"label\": \"DMD protein, human\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"MESH:C484258\",\n",
+ " \"label\": \"DMD protein, human\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:Q16484\",\n",
+ " \"label\": \"Q16484_HUMAN DMD protein (Fragment) (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"UniProtKB:Q4G0X0\",\n",
+ " \"label\": \"Q4G0X0_HUMAN DMD protein (trembl)\",\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ]\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"ENSEMBL:ENSP00000288447\"\n",
+ " },\n",
+ " {\n",
+ " \"identifier\": \"ENSEMBL:ENSP00000288447.4\"\n",
+ " }\n",
+ " ],\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ],\n",
+ " \"type\": [\n",
+ " \"biolink:Gene\",\n",
+ " \"biolink:GeneOrGeneProduct\",\n",
+ " \"biolink:GenomicEntity\",\n",
+ " \"biolink:ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"biolink:PhysicalEssence\",\n",
+ " \"biolink:OntologyClass\",\n",
+ " \"biolink:BiologicalEntity\",\n",
+ " \"biolink:ThingWithTaxon\",\n",
+ " \"biolink:NamedThing\",\n",
+ " \"biolink:PhysicalEssenceOrOccurrent\",\n",
+ " \"biolink:MacromolecularMachineMixin\",\n",
+ " \"biolink:Protein\",\n",
+ " \"biolink:GeneProductMixin\",\n",
+ " \"biolink:Polypeptide\",\n",
+ " \"biolink:ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ]\n",
+ " }\n",
+ "}\n"
+ ]
+ }
+ ],
+ "source": [
+ "nodenorm_url = \"https://nodenormalization-sri.renci.org/get_normalized_nodes\"\n",
+ "curie = \"UniProtKB:A0A0S2Z3B5\"\n",
+ "response = requests.get(nodenorm_url, params={\"curie\": \"UniProtKB:A0A0S2Z3B5\", \"conflate\": True, \"drug_chemical\": True})\n",
+ "result = response.json()\n",
+ "print(json.dumps(result, indent=2))\n",
+ "normalized_curie = result[curie][\"id\"][\"identifier\"]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 53,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "{\n",
+ " \"UniProtKB:A0A0S2Z3B5\": {}\n",
+ "}\n"
+ ]
+ }
+ ],
+ "source": [
+ "# A query without normalization won't work.\n",
+ "nameres_synonyms_url = \"https://name-resolution-sri.renci.org/synonyms\"\n",
+ "response = requests.get(nameres_synonyms_url, params={\"preferred_curies\": curie})\n",
+ "result = response.json()\n",
+ "print(json.dumps(result, indent=2))"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 54,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "{\n",
+ " \"NCBIGene:1756\": {\n",
+ " \"curie\": \"NCBIGene:1756\",\n",
+ " \"preferred_name\": \"DMD\",\n",
+ " \"names\": [\n",
+ " \"BMD\",\n",
+ " \"DMD\",\n",
+ " \"MRX85\",\n",
+ " \"CMD3B\",\n",
+ " \"DXS164\",\n",
+ " \"DXS270\",\n",
+ " \"DXS142\",\n",
+ " \"DXS268\",\n",
+ " \"DXS206\",\n",
+ " \"DXS272\",\n",
+ " \"DXS269\",\n",
+ " \"DXS239\",\n",
+ " \"DXS230\",\n",
+ " \"DMD Gene\",\n",
+ " \"DMD gene\",\n",
+ " \"DYSTROPHIN\",\n",
+ " \"dystrophin\",\n",
+ " \"APO-DYSTROPHIN 1\",\n",
+ " \"mutant dystrophin\",\n",
+ " \"mental retardation, X-linked 85\",\n",
+ " \"muscular dystrophy, Duchenne and Becker types\",\n",
+ " \"Dystrophin (Muscular Dystrophy, Duchenne And Becker Types) Gene\",\n",
+ " \"dystrophin (muscular dystrophy, Duchenne and Becker types), includes DXS142, DXS164, DXS206, DXS230, DXS239, DXS268, DXS269, DXS270, DXS272\",\n",
+ " \"A0A087WV90_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A0S2Z3B5_HUMAN Dystrophin isoform 2 (trembl)\",\n",
+ " \"A0A0S2Z3J7_HUMAN Dystrophin isoform 1 (Fragment) (trembl)\",\n",
+ " \"A0A5H1ZRP9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRQ1_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRQ8_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRR9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A804HKY9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A7E212_HUMAN Dystrophin (trembl)\",\n",
+ " \"hDMD\",\n",
+ " \"Dystrophin\",\n",
+ " \"DMD protein, human\",\n",
+ " \"dystrophin (human)\",\n",
+ " \"Dp116 protein, human\",\n",
+ " \"DMD_HUMAN Dystrophin (sprot)\",\n",
+ " \"dystrophin (muscular dystrophy, Duchenne and Becker types) protein, human\",\n",
+ " \"Q16484_HUMAN DMD protein (Fragment) (trembl)\",\n",
+ " \"Q4G0X0_HUMAN DMD protein (trembl)\"\n",
+ " ],\n",
+ " \"names_exactish\": [\n",
+ " \"BMD\",\n",
+ " \"DMD\",\n",
+ " \"MRX85\",\n",
+ " \"CMD3B\",\n",
+ " \"DXS164\",\n",
+ " \"DXS270\",\n",
+ " \"DXS142\",\n",
+ " \"DXS268\",\n",
+ " \"DXS206\",\n",
+ " \"DXS272\",\n",
+ " \"DXS269\",\n",
+ " \"DXS239\",\n",
+ " \"DXS230\",\n",
+ " \"DMD Gene\",\n",
+ " \"DMD gene\",\n",
+ " \"DYSTROPHIN\",\n",
+ " \"dystrophin\",\n",
+ " \"APO-DYSTROPHIN 1\",\n",
+ " \"mutant dystrophin\",\n",
+ " \"mental retardation, X-linked 85\",\n",
+ " \"muscular dystrophy, Duchenne and Becker types\",\n",
+ " \"Dystrophin (Muscular Dystrophy, Duchenne And Becker Types) Gene\",\n",
+ " \"dystrophin (muscular dystrophy, Duchenne and Becker types), includes DXS142, DXS164, DXS206, DXS230, DXS239, DXS268, DXS269, DXS270, DXS272\",\n",
+ " \"A0A087WV90_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A0S2Z3B5_HUMAN Dystrophin isoform 2 (trembl)\",\n",
+ " \"A0A0S2Z3J7_HUMAN Dystrophin isoform 1 (Fragment) (trembl)\",\n",
+ " \"A0A5H1ZRP9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRQ1_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRQ8_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A5H1ZRR9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A0A804HKY9_HUMAN Dystrophin (trembl)\",\n",
+ " \"A7E212_HUMAN Dystrophin (trembl)\",\n",
+ " \"hDMD\",\n",
+ " \"Dystrophin\",\n",
+ " \"DMD protein, human\",\n",
+ " \"dystrophin (human)\",\n",
+ " \"Dp116 protein, human\",\n",
+ " \"DMD_HUMAN Dystrophin (sprot)\",\n",
+ " \"dystrophin (muscular dystrophy, Duchenne and Becker types) protein, human\",\n",
+ " \"Q16484_HUMAN DMD protein (Fragment) (trembl)\",\n",
+ " \"Q4G0X0_HUMAN DMD protein (trembl)\"\n",
+ " ],\n",
+ " \"types\": [\n",
+ " \"Gene\",\n",
+ " \"GeneOrGeneProduct\",\n",
+ " \"GenomicEntity\",\n",
+ " \"ChemicalEntityOrGeneOrGeneProduct\",\n",
+ " \"PhysicalEssence\",\n",
+ " \"OntologyClass\",\n",
+ " \"BiologicalEntity\",\n",
+ " \"ThingWithTaxon\",\n",
+ " \"NamedThing\",\n",
+ " \"Entity\",\n",
+ " \"PhysicalEssenceOrOccurrent\",\n",
+ " \"MacromolecularMachineMixin\",\n",
+ " \"Protein\",\n",
+ " \"GeneProductMixin\",\n",
+ " \"Polypeptide\",\n",
+ " \"ChemicalEntityOrProteinOrPolypeptide\"\n",
+ " ],\n",
+ " \"shortest_name_length\": 3,\n",
+ " \"clique_identifier_count\": 22,\n",
+ " \"taxa\": [\n",
+ " \"NCBITaxon:9606\"\n",
+ " ],\n",
+ " \"curie_suffix\": 1756,\n",
+ " \"id\": \"fd3cbf13-1aa7-4538-9df4-11cb80493295\",\n",
+ " \"_version_\": 1842436833304117253\n",
+ " }\n",
+ "}\n"
+ ]
+ }
+ ],
+ "source": [
+ "# A query with normalization will work.\n",
+ "nameres_synonyms_url = \"https://name-resolution-sri.renci.org/synonyms\"\n",
+ "response = requests.get(nameres_synonyms_url, params={\"preferred_curies\": normalized_curie})\n",
+ "result = response.json()\n",
+ "print(json.dumps(result, indent=2))"
+ ]
}
],
"metadata": {
"kernelspec": {
- "display_name": "Python 3",
+ "display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
@@ -285,7 +3847,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.9.1"
+ "version": "3.14.0"
}
},
"nbformat": 4,