1. List data overlays
1.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
1.2. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
name |
|
|
description |
|
|
identifier |
|
|
is the data overlay publicly available to all users |
|
|
did creator accepted license required by Google Maps API |
|
|
sort order |
|
|
type; available options: GENERIC, GENETIC_VARIANT |
|
|
reference genome type; available options: UCSC |
|
|
reference genome version |
|
|
login of the user who uploaded data overlay |
1.3. CURL sample 1
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.4. Sample Response 1
[ {
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "admin",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000130,
"publicOverlay" : true,
"type" : "GENERIC",
"order" : 0
}, {
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "test_user",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000131,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 0
} ]
1.5. CURL sample 2
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/?creator=test_curator' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.6. Sample Response 2
[ {
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "test_curator",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000141,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 0
} ]
2. Get data overlay
2.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
overlay identifier |
2.2. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
name |
|
|
description |
|
|
identifier |
|
|
is the data overlay publicly available to all users |
|
|
did creator accepted license required by Google Maps API |
|
|
sort order |
|
|
type; available options: GENERIC, GENETIC_VARIANT |
|
|
reference genome type; available options: UCSC |
|
|
reference genome version |
|
|
login of the user who uploaded data overlay |
2.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000103/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
2.4. Sample Response
{
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "test_user",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000103,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 0
}
3. Add overlay
3.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
3.2. Request Parameters
| Parameter | Description |
|---|---|
|
name of the data overlay |
|
content of the file that is uploaded with definition what should be visible where (alternative to fileId) |
|
uploaded file id that should be used as data overlay content content (alternative to content) |
|
short description of the data overlay |
|
name of the file that should be used when downloading the source |
|
type of the data overlay (default: GENERIC). Available options: GENERIC, GENETIC_VARIANT |
|
true/false indicating if user agreed to the new Google Maps API license https://cloud.google.com/maps-platform/terms/ |
3.3. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
name |
|
|
description |
|
|
identifier |
|
|
is the data overlay publicly available to all users |
|
|
did creator accepted license required by Google Maps API |
|
|
sort order |
|
|
type; available options: GENERIC, GENETIC_VARIANT |
|
|
reference genome type; available options: UCSC |
|
|
reference genome version |
|
|
login of the user who uploaded data overlay |
3.4. CURL sample from file
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/' -X POST \
-d 'fileId=605&name=overlay+name&description=overlay+name&filename=overlay+name&googleLicenseConsent=false&type=GENERIC' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/x-www-form-urlencoded'
3.5. Sample Response from file
{
"name" : "overlay name",
"googleLicenseConsent" : false,
"creator" : "admin",
"description" : "overlay name",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000124,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 1
}
3.6. CURL sample from content
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/' -X POST \
-d 'content=element_identifier%09value%0A%09-1&name=overlay+name&description=overlay+description&filename=source.txt&googleLicenseConsent=false&type=GENERIC' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/x-www-form-urlencoded'
3.7. Sample Response from content
{
"name" : "overlay name",
"googleLicenseConsent" : false,
"creator" : "admin",
"description" : "overlay description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000096,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 1
}
4. Update overlay
4.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
overlay identifier |
4.2. Request Fields
| Path | Type | Description |
|---|---|---|
|
|
name |
|
|
description |
|
|
is the data overlay publicly available to all users |
|
|
did creator accepted license required by Google Maps API |
|
|
sort order |
|
|
type; available options: GENERIC, GENETIC_VARIANT |
|
|
login of the user who uploaded data overlay |
4.3. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
name |
|
|
description |
|
|
identifier |
|
|
is the data overlay publicly available to all users |
|
|
did creator accepted license required by Google Maps API |
|
|
sort order |
|
|
type; available options: GENERIC, GENETIC_VARIANT |
|
|
reference genome type; available options: UCSC |
|
|
reference genome version |
|
|
login of the user who uploaded data overlay |
4.4. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000107' -X PATCH \
-d '{"overlay":{"name":"test title","googleLicenseConsent":false,"creator":"test_user","description":"test description","publicOverlay":false,"type":"GENERIC","order":0}}' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/json'
4.5. Sample Response
{
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "test_user",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000107,
"publicOverlay" : false,
"type" : "GENERIC",
"order" : 0
}
5. Delete overlay
5.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000152' -X DELETE \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
5.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
overlay identifier |
6. Download source data
6.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
overlay identifier |
6.2. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000133:downloadSource' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
6.3. Sample Response
element_identifier value
-1
7. Download legend
7.1. Path Parameters
Unresolved directive in project_overlays.adoc - include::../../../target/generated-snippets/projects/project_legend/download_source/path-parameters.adoc[]
7.2. CURL sample
Unresolved directive in project_overlays.adoc - include::../../../target/generated-snippets/projects/project_legend/download_source/curl-request.adoc[]
8. Get list of associated bioEntites
8.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
overlay identifier |
8.2. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
type of bioEntity (ALIAS/REACTION) |
|
|
identifier of the bioEntity |
|
|
map identifier where bioEntity is located |
|
|
normalized value assigned to the bioEntity from overlay |
|
|
color assigned to the bioEntity from overlay |
|
|
description assigned to the bioEntity from overlay |
|
|
list of gene variants assigned to the bioEntity from overlay |
|
|
line width of reaction bioEntity assigned to the bioEntity from overlay |
8.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000139/models/*/bioEntities/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
8.4. Sample Response
[ {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 892,
"idObject" : "2223",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 2223
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 892,
"idObject" : "2225",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 2225
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 892,
"idObject" : "2226",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 2226
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 892,
"idObject" : "2227",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 2227
}
}, {
"type" : "REACTION",
"overlayContent" : {
"modelId" : 892,
"idObject" : "449",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 449,
"width" : null
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 893,
"idObject" : "2224",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 2224
}
} ]
9. Get reaction data
9.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
overlay identifier |
|
reaction identifier |
9.2. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
type of bioEntity (ALIAS/REACTION) |
|
|
identifier of the bioEntity |
|
|
map identifier where bioEntity is located |
|
|
normalized value assigned to the bioEntity from overlay |
|
|
color assigned to the bioEntity from overlay |
|
|
description assigned to the bioEntity from overlay |
|
|
list of gene variants assigned to the bioEntity from overlay |
|
|
line width of reaction bioEntity assigned to the bioEntity from overlay |
9.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000093/models/796/bioEntities/reactions/401/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
9.4. Sample Response
[ {
"type" : "REACTION",
"overlayContent" : {
"modelId" : 796,
"idObject" : "401",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"geneVariations" : [ ],
"uniqueId" : 401,
"width" : null
}
} ]
10. Get element data
10.1. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
overlay identifier |
|
element identifier |
10.2. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
type of bioEntity (ALIAS/REACTION) |
|
|
identifier of the bioEntity |
|
|
map identifier where bioEntity is located |
|
|
normalized value assigned to the bioEntity from overlay |
|
|
color assigned to the bioEntity from overlay |
|
|
description assigned to the bioEntity from overlay |
|
|
list of gene variants assigned to the bioEntity from overlay |
|
|
line width of reaction bioEntity assigned to the bioEntity from overlay |
10.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/overlays/1000145/models/904/bioEntities/elements/2253/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
10.4. Sample Response
[ {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 904,
"idObject" : "2253",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"geneVariations" : [ ],
"uniqueId" : 2253
}
} ]