1. Get drug
Returns drug data with project related connections.
1.1. CURL sample 1
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/api/projects/test_project/drugs:search?query=aspirin' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.2. CURL sample 2
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/api/projects/Some_id/drugs:search?target=ALIAS:74' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.3. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
1.4. Query Parameters
| Parameter | Description |
|---|---|
|
set of columns (all by default). Available options: name, references, description, synonyms, id, directEvidenceReferences, directEvidence, targets |
|
name of chemical that we are searching for |
|
target element that we are searching for in format TYPE:ID |
1.5. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
identifier of the chemical |
|
|
name |
|
|
description |
|
|
list of synonyms |
|
|
list of brand names |
|
|
does drug cross blood brain barrier |
|
|
list of references |
|
|
list of targets |
|
|
target name |
|
|
list of target references |
|
|
source database of the target |
|
|
list of elements on the map associated with this target |
|
|
list of identifiers associated with this target |
1.6. Sample Response
[ {
"name" : "ASPIRIN",
"references" : [ {
"link" : "https://www.ebi.ac.uk/chembl/compound/inspect/CHEMBL25",
"type" : "CHEMBL_COMPOUND",
"resource" : "CHEMBL25",
"id" : 0,
"annotatorClassName" : ""
} ],
"description" : "Drug used to reduce pain, fever and inflammation.",
"bloodBrainBarrier" : "permeable",
"brandNames" : [ "Aspirin" ],
"synonyms" : [ "acetylsalicylic acid" ],
"id" : "ASPIRIN",
"targets" : [ {
"source" : {
"link" : null,
"type" : "HGNC",
"resource" : "3023",
"id" : 0,
"annotatorClassName" : ""
},
"name" : "DRD2",
"targetParticipants" : [ {
"link" : "https://www.genenames.org/data/gene-symbol-report/#!/symbol/DRD2",
"type" : "HGNC_SYMBOL",
"resource" : "DRD2",
"id" : 0,
"annotatorClassName" : ""
} ],
"references" : [ {
"link" : "https://pubmed.ncbi.nlm.nih.gov/12345678/",
"article" : null,
"type" : "PUBMED",
"resource" : "12345678",
"id" : 0,
"annotatorClassName" : ""
} ],
"targetElements" : [ ]
} ]
} ]
2. Get suggested drug queries
Get list of suggested drug queries in the context of the project.
2.1. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/api/projects/test_project/drugs/suggestedQueryList' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
2.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
2.3. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
list of suggested drug queries |
2.4. Sample Response
[ "aspirin", "levodopa" ]