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

Table 1. /minerva/api/projects/{projectId}/drugs:search
Parameter Description

projectId

project identifier

1.4. Query Parameters

Parameter Description

columns

set of columns (all by default). Available options: name, references, description, synonyms, id, directEvidenceReferences, directEvidence, targets

query

name of chemical that we are searching for

target

target element that we are searching for in format TYPE:ID

1.5. Response Fields

Path Type Description

[].id

String

identifier of the chemical

[].name

String

name

[].description

String

description

[].synonyms

array<string>

list of synonyms

[].brandNames

array<string>

list of brand names

[].bloodBrainBarrier

String

does drug cross blood brain barrier

[].references

array<Reference>

list of references

[].targets

array<Target>

list of targets

[].targets[].name

String

target name

[].targets[].references

array<Reference>

list of target references

[].targets[].source

Object

source database of the target

[].targets[].targetElements

array<object>

list of elements on the map associated with this target

[].targets[].targetParticipants

array<object>

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

Table 2. /minerva/api/projects/{projectId}/drugs/suggestedQueryList
Parameter Description

projectId

project identifier

2.3. Response Fields

Path Type Description

[]

array<string>

list of suggested drug queries

2.4. Sample Response

[ "aspirin", "levodopa" ]