1. Get chemical

Returns chemicals data with project related connections.

1.1. CURL sample 1

$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/TEST_PROJECT/chemicals:search?query=stilbene%20oxide' -X GET \
    --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"

1.2. CURL sample 2

$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/TEST_PROJECT/chemicals:search?target=ALIAS:756' -X GET \
    --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"

1.3. Path Parameters

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

projectId

project identifier

1.4. Request 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

object

identifier of the chemical

[].name

string

name

[].description

string

description

[].synonyms

array<string>

list of synonyms

[].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[].targetElements

array<object>

list of elements on the map associated with this target

[].targets[].targetParticipants

array<object>

list of identifiers associated with this target

[].directEvidence

string

direct evidence

[].directEvidenceReferences

array<Reference>

list of references

1.6. Sample Response

[ {
  "name" : "stilbene oxide",
  "references" : [ {
    "link" : "http://id.nlm.nih.gov/mesh/C025906",
    "type" : "MESH_2012",
    "resource" : "C025906",
    "id" : 0,
    "annotatorClassName" : ""
  } ],
  "description" : null,
  "synonyms" : [ "stilbene oxide, (cis)-isomer", "stilbene oxide, (trans)-isomer", "stilbene oxide, trans-", "stilbene oxide, (2S-trans)-isomer", "stilbene oxide, (2R-trans)-isomer", "trans-stilbene oxide", "stilbene oxide, trans-(+-)-isomer" ],
  "id" : {
    "link" : "http://id.nlm.nih.gov/mesh/C025906",
    "type" : "MESH_2012",
    "resource" : "C025906",
    "id" : 0,
    "annotatorClassName" : ""
  },
  "directEvidenceReferences" : [ ],
  "directEvidence" : null,
  "targets" : [ {
    "name" : "GSTA4",
    "targetParticipants" : [ {
      "link" : "https://www.genenames.org/data/gene-symbol-report/#!/symbol/GSTA4",
      "type" : "HGNC_SYMBOL",
      "resource" : "GSTA4",
      "id" : 0,
      "annotatorClassName" : ""
    } ],
    "references" : [ {
      "link" : "https://pubmed.ncbi.nlm.nih.gov/16510128/",
      "article" : null,
      "type" : "PUBMED",
      "resource" : "16510128",
      "id" : 0,
      "annotatorClassName" : ""
    } ],
    "targetElements" : [ {
      "id" : 713,
      "modelId" : 284,
      "type" : "ALIAS"
    }, {
      "id" : 712,
      "modelId" : 285,
      "type" : "ALIAS"
    }, {
      "id" : 713,
      "modelId" : 284,
      "type" : "ALIAS"
    } ]
  }, {
    "name" : "GSTP1",
    "targetParticipants" : [ {
      "link" : "https://www.genenames.org/data/gene-symbol-report/#!/symbol/GSTP1",
      "type" : "HGNC_SYMBOL",
      "resource" : "GSTP1",
      "id" : 0,
      "annotatorClassName" : ""
    } ],
    "references" : [ {
      "link" : "https://pubmed.ncbi.nlm.nih.gov/23721876/",
      "article" : null,
      "type" : "PUBMED",
      "resource" : "23721876",
      "id" : 0,
      "annotatorClassName" : ""
    }, {
      "link" : "https://pubmed.ncbi.nlm.nih.gov/17190945/",
      "article" : null,
      "type" : "PUBMED",
      "resource" : "17190945",
      "id" : 0,
      "annotatorClassName" : ""
    } ],
    "targetElements" : [ ]
  } ]
} ]

2. Get suggested chemical queries

Get list of suggested chemical queries in the context of the project.

2.1. CURL sample

$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/TEST_PROJECT2/chemicals/suggestedQueryList' -X GET \
    --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"

2.2. Path Parameters

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

projectId

project identifier

2.3. Response Fields

Path Type Description

[]

array<string>

list of suggested chemical queries

2.4. Sample Response

[ ]