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" : 1000129,
"publicOverlay" : true,
"type" : "GENERIC",
"order" : 0
}, {
"name" : "test title",
"googleLicenseConsent" : false,
"creator" : "test_user",
"description" : "test description",
"genomeType" : null,
"genomeVersion" : null,
"idObject" : 1000130,
"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" : 1000140,
"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/1000102/' -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" : 1000102,
"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=515&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" : 1000123,
"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" : 1000095,
"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/1000106' -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" : 1000106,
"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/1000151' -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/1000132: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/1000138/models/*/bioEntities/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
8.4. Sample Response
[ {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 730,
"idObject" : "1816",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 1816
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 730,
"idObject" : "1817",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 1817
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 730,
"idObject" : "1818",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 1818
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 730,
"idObject" : "1814",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 1814
}
}, {
"type" : "REACTION",
"overlayContent" : {
"modelId" : 730,
"idObject" : "360",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 360,
"width" : null
}
}, {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 731,
"idObject" : "1815",
"value" : 1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"uniqueId" : 1815
}
} ]
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/1000092/models/634/bioEntities/reactions/312/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
9.4. Sample Response
[ {
"type" : "REACTION",
"overlayContent" : {
"modelId" : 634,
"idObject" : "312",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"geneVariations" : [ ],
"uniqueId" : 312,
"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/1000144/models/742/bioEntities/elements/1844/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
10.4. Sample Response
[ {
"type" : "ALIAS",
"overlayContent" : {
"modelId" : 742,
"idObject" : "1844",
"value" : -1.0,
"color" : null,
"description" : null,
"type" : "GENERIC",
"geneVariations" : [ ],
"uniqueId" : 1844
}
} ]