Elements of a map and their sub-resources, served from /new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements.

1. Element glyph

The image drawn for the element instead of its default shape.
See full documentation.

2. Element annotations

Annotations linking the element to external databases.
See full documentation.

3. Element modifications

Modification states (e.g. phosphorylation) of the element.
See full documentation.

4. Element synonyms

Alternative names known for the element.
See full documentation.

5. Element former symbols

Symbols the element was previously known by.
See full documentation.

6. Element children

Elements nested inside this element, such as members of a complex.
See full documentation.

7. Element compartment

The compartment element that this element is located in.
See full documentation.

8. Element complex

The complex element that this element is a part of.
See full documentation.

9. Element submap

The submap that this element links to, if the element is a link to another map.
See full documentation.

10. Element unit

The unit of quantity assigned to the element, chosen from the units already defined at the map level.
See full documentation.

11. List elements

Returns all elements belonging to a map.

Note
The result is paged - use the page and size query parameters to walk through it.

11.1. HTTP request

GET /minerva/new_api/projects/test_project/maps/218/bio_entities/elements/ HTTP/1.1

11.2. Path Parameters

Table 1. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/
Parameter Description

projectId

project identifier

mapId

map identifier

11.3. Query Parameters

Parameter Description

page

index of the page to fetch, counted from 0; 0 by default

size

number of entries on a page; 20 by default, 10000 at most

11.4. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/218/bio_entities/elements/' -X GET \
    -H 'Authorization: Bearer xxxxxxxx'

11.5. HTTP response

HTTP/1.1 200 OK

11.6. Sample Response

{
  "content" : [ {
    "id" : 580,
    "glyph" : null,
    "compartment" : null,
    "pathway" : null,
    "elementId" : "p1",
    "x" : 5.0,
    "y" : 5.0,
    "z" : 10,
    "allowUiInteraction" : true,
    "width" : 1000.0,
    "height" : 1000.0,
    "fontSize" : 12.0,
    "fontColor" : "#000000ff",
    "fillColor" : "#000000ff",
    "borderColor" : "#000000ff",
    "visibilityLevel" : "",
    "transparencyLevel" : "",
    "notes" : "",
    "symbol" : null,
    "fullName" : null,
    "name" : "Comp",
    "nameX" : 5.0,
    "nameY" : 5.0,
    "nameWidth" : 1000.0,
    "nameHeight" : 1000.0,
    "fontName" : "ARIAL",
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "synonyms" : [ "my synonym" ],
    "formerSymbols" : [ "FFH" ],
    "thickness" : 12.0,
    "outerWidth" : 2.0,
    "innerWidth" : 1.0,
    "shape" : "SQUARE_COMPARTMENT",
    "map" : 218,
    "submap" : null,
    "references" : [ {
      "link" : null,
      "type" : "HGNC_SYMBOL",
      "resource" : "SNCA",
      "id" : 748,
      "annotator" : null
    } ],
    "immediateLink" : null,
    "sboTerm" : "SBO:0000290"
  }, {
    "id" : 582,
    "glyph" : null,
    "compartment" : 580,
    "pathway" : null,
    "elementId" : "p2",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 11,
    "allowUiInteraction" : true,
    "width" : 100.0,
    "height" : 20.0,
    "fontSize" : 12.0,
    "fontColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "borderColor" : "#000000ff",
    "visibilityLevel" : "",
    "transparencyLevel" : "",
    "notes" : "",
    "symbol" : null,
    "fullName" : null,
    "name" : "CP",
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 100.0,
    "nameHeight" : 20.0,
    "fontName" : "ARIAL",
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "synonyms" : [ ],
    "formerSymbols" : [ ],
    "modificationResidues" : [ ],
    "activity" : false,
    "lineWidth" : 1.0,
    "complex" : null,
    "initialAmount" : null,
    "charge" : null,
    "initialConcentration" : 0.0,
    "onlySubstanceUnits" : false,
    "homodimer" : 1,
    "hypothetical" : null,
    "boundaryCondition" : false,
    "constant" : false,
    "substanceUnits" : null,
    "borderLineType" : "SOLID",
    "map" : 218,
    "submap" : null,
    "references" : [ ],
    "immediateLink" : null,
    "sboTerm" : "SBO:0000253"
  }, {
    "id" : 583,
    "glyph" : null,
    "compartment" : 580,
    "pathway" : null,
    "elementId" : "p3",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 12,
    "allowUiInteraction" : true,
    "width" : 100.0,
    "height" : 20.0,
    "fontSize" : 12.0,
    "fontColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "borderColor" : "#000000ff",
    "visibilityLevel" : "",
    "transparencyLevel" : "",
    "notes" : "",
    "symbol" : null,
    "fullName" : null,
    "name" : "GSTA4",
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 100.0,
    "nameHeight" : 20.0,
    "fontName" : "ARIAL",
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "synonyms" : [ "GSTA_XX", "GSTA_YY" ],
    "formerSymbols" : [ ],
    "modificationResidues" : [ {
      "id" : 51520,
      "idModificationResidue" : "r4",
      "name" : "",
      "x" : 10.0,
      "y" : 20.0,
      "z" : 13,
      "width" : 15.0,
      "height" : 15.0,
      "nameX" : 10.0,
      "nameY" : 20.0,
      "nameWidth" : 15.0,
      "nameHeight" : 15.0,
      "nameVerticalAlign" : "MIDDLE",
      "nameHorizontalAlign" : "CENTER",
      "species" : 583,
      "borderColor" : "#000000ff",
      "fillColor" : "#ffffffff",
      "fontSize" : 10.0,
      "fontWeight" : "NORMAL",
      "fontStyle" : "NORMAL",
      "state" : null,
      "sboTerm" : "SBO:0000493",
      "stateAbbreviation" : null,
      "size" : 225.0,
      "elementId" : "r4"
    }, {
      "id" : 51521,
      "idModificationResidue" : "",
      "name" : "X",
      "x" : 10.0,
      "y" : 20.0,
      "z" : 14,
      "width" : 10.0,
      "height" : 10.0,
      "nameX" : 10.0,
      "nameY" : 20.0,
      "nameWidth" : 10.0,
      "nameHeight" : 10.0,
      "nameVerticalAlign" : "MIDDLE",
      "nameHorizontalAlign" : "CENTER",
      "species" : 583,
      "borderColor" : "#000000ff",
      "fillColor" : "#ffffffff",
      "fontSize" : 12.0,
      "fontWeight" : "NORMAL",
      "fontStyle" : "NORMAL",
      "sboTerm" : "SBO:0000181",
      "size" : 100.0,
      "elementId" : ""
    }, {
      "id" : 51522,
      "idModificationResidue" : "b5",
      "name" : "",
      "x" : 60.0,
      "y" : 20.0,
      "z" : 15,
      "width" : 10.0,
      "height" : 10.0,
      "nameX" : 60.0,
      "nameY" : 20.0,
      "nameWidth" : 10.0,
      "nameHeight" : 10.0,
      "nameVerticalAlign" : "MIDDLE",
      "nameHorizontalAlign" : "CENTER",
      "species" : 583,
      "borderColor" : "#000000ff",
      "fillColor" : "#ffffffff",
      "fontSize" : 10.0,
      "fontWeight" : "NORMAL",
      "fontStyle" : "NORMAL",
      "sboTerm" : "SBO:0000494",
      "size" : 100.0,
      "elementId" : "b5"
    } ],
    "activity" : false,
    "lineWidth" : 1.0,
    "complex" : 582,
    "initialAmount" : null,
    "charge" : null,
    "initialConcentration" : 0.0,
    "onlySubstanceUnits" : false,
    "homodimer" : 1,
    "hypothetical" : null,
    "boundaryCondition" : false,
    "constant" : false,
    "substanceUnits" : {
      "id" : 192,
      "unitId" : "u1",
      "name" : "Weight",
      "unitTypeFactors" : [ ]
    },
    "borderLineType" : "SOLID",
    "map" : 218,
    "submap" : {
      "id" : 219
    },
    "references" : [ {
      "link" : null,
      "type" : "HGNC_SYMBOL",
      "resource" : "GSTA4",
      "id" : 749,
      "annotator" : null
    } ],
    "immediateLink" : null,
    "sboTerm" : "SBO:0000252"
  }, {
    "id" : 584,
    "glyph" : null,
    "compartment" : 580,
    "pathway" : null,
    "elementId" : "s6",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 16,
    "allowUiInteraction" : true,
    "width" : 100.0,
    "height" : 20.0,
    "fontSize" : 12.0,
    "fontColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "borderColor" : "#000000ff",
    "visibilityLevel" : "",
    "transparencyLevel" : "",
    "notes" : "",
    "symbol" : null,
    "fullName" : null,
    "name" : "water",
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 100.0,
    "nameHeight" : 20.0,
    "fontName" : "ARIAL",
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "synonyms" : [ ],
    "formerSymbols" : [ ],
    "modificationResidues" : [ ],
    "activity" : false,
    "lineWidth" : 1.0,
    "complex" : null,
    "initialAmount" : null,
    "charge" : null,
    "initialConcentration" : 0.0,
    "onlySubstanceUnits" : false,
    "homodimer" : 1,
    "hypothetical" : null,
    "boundaryCondition" : false,
    "constant" : false,
    "substanceUnits" : null,
    "borderLineType" : "SOLID",
    "map" : 218,
    "submap" : null,
    "references" : [ {
      "link" : null,
      "type" : "CHEBI",
      "resource" : "CHEBI:1234",
      "id" : 750,
      "annotator" : null
    } ],
    "immediateLink" : null,
    "sboTerm" : "SBO:0000247"
  }, {
    "id" : 585,
    "glyph" : null,
    "compartment" : null,
    "pathway" : null,
    "elementId" : "s7",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 17,
    "allowUiInteraction" : true,
    "width" : 100.0,
    "height" : 20.0,
    "fontSize" : 12.0,
    "fontColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "borderColor" : "#000000ff",
    "visibilityLevel" : "",
    "transparencyLevel" : "",
    "notes" : "",
    "symbol" : null,
    "fullName" : null,
    "name" : "water",
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 100.0,
    "nameHeight" : 20.0,
    "fontName" : "ARIAL",
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "synonyms" : [ ],
    "formerSymbols" : [ ],
    "modificationResidues" : [ ],
    "activity" : false,
    "lineWidth" : 1.0,
    "complex" : null,
    "initialAmount" : null,
    "charge" : null,
    "initialConcentration" : 0.0,
    "onlySubstanceUnits" : false,
    "homodimer" : 1,
    "hypothetical" : null,
    "boundaryCondition" : false,
    "constant" : false,
    "substanceUnits" : null,
    "borderLineType" : "SOLID",
    "map" : 218,
    "submap" : null,
    "references" : [ ],
    "immediateLink" : null,
    "sboTerm" : "SBO:0000247"
  } ],
  "totalPages" : 1,
  "totalElements" : 5,
  "numberOfElements" : 5,
  "size" : 20,
  "number" : 0
}

12. Get element

Returns a single element by its identifier.

12.1. HTTP request

GET /minerva/new_api/projects/test_project/maps/216/bio_entities/elements/578 HTTP/1.1

12.2. Path Parameters

Table 2. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/{id}
Parameter Description

projectId

project identifier

mapId

map identifier

id

unique element identifier (the numeric "id" field of the element, not the "elementId" taken from the source file)

12.3. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/216/bio_entities/elements/578' -X GET \
    -H 'Authorization: Bearer xxxxxxxx'

12.4. HTTP response

HTTP/1.1 200 OK

12.5. Response Fields

Path Type Description

immediateLink

String

link that should be opened immediately when element is clicked on the map

id

Number

unique bioEntity identifier

name

String

name of the bioEntity displayed on the map

elementId

String

element identifier taken from source file

map

Number

map identifier

references

Array

list of references

z

Number

z index (coordinate) of the element on the map

notes

String

notes and description

visibilityLevel

String

at what zoom level this element becomes visible in hierarchical view

homodimer

Number

multimer value

sboTerm

String

SBO term identifying the type of the bioEntity

symbol

String

short symbol identifying the element

synonyms

Array

list of synonyms

nameX

Number

x coordinate of the element name on the map

nameY

Number

y coordinate of the element name on the map

borderLineType

String

line type

nameWidth

Number

width of the box with element name

nameHeight

Number

height of the box with element name

nameVerticalAlign

String

vertical align of the text inside the box with element name

nameHorizontalAlign

String

horizontal align of the text inside the box with element name

fontName

String

font name used for element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA

fontWeight

String

font weight for element label, one of: NORMAL, BOLD

fontStyle

String

font style for element label, one of: NORMAL, ITALIC

width

Number

width of the element

height

Number

height of the element

transparencyLevel

String

at what zoom level this element becomes transparent in hierarchical view

formerSymbols

Array

list of former symbols

fullName

String

unabbreviated name of the element

glyph

Object

image glyph associated with the element

glyph.id

Number

glyph id

glyph.file

Number

id of file associated with the glyph

activity

Boolean

is the element active

hypothetical

Boolean

is the element hypothetical

boundaryCondition

Boolean

SBML kinetics is boundary condition

constant

Boolean

SBML kinetics is constant

initialAmount

Number

SBML kinetics initial amount

initialConcentration

Number

SBML kinetics initial concentration

charge

Number

SBML charge

substanceUnits

Object

SBML substance units

onlySubstanceUnits

Boolean

SBML only substance units

modificationResidues

Array

List of species modification residues

structuralState

Object

Species structural state

complex

Number

identifier of a complex in which element is located

complexName

String

name of a complex in which element is located

compartment

Number

identifier of a compartment in which element is located

pathway

Number

identifier of a pathway in which element is located

compartmentName

String

name of a compartment in which element is located

submap

Object

submap to which this bioEntity is an entry point (anchor)

submap.id

Number

submap id

submap.mapId

Number

identifier of a submap to which this bioEntity is an entry point (anchor)

submap.type

String

type of submap connection

x

Number

x coordinate of the element on the map

y

Number

y coordinate of the element on the map

lineWidth

Number

border line width

substanceUnits

Object

Species units

fontColor

String

color of the element label; #RRGGBBAA string

fontSize

Number

size of the font used for the element label

fillColor

String

color used to fill the interior of the element; #RRGGBBAA string

borderColor

String

color used to draw the outline of the element; #RRGGBBAA string

smiles

String

smiles identifier (for chemicals)

inChI

String

inChI identifier (for chemicals)

inChIKey

String

inChI key identifier (for chemicals)

thickness

Number

compartment membrane thickness

outerWidth

Number

compartment outer line width

shape

String

shape of a compartment

innerWidth

Number

compartment inner line width

allowUiInteraction

Boolean

whether the element allows user interaction (e.g. clicking, hovering)

12.6. Sample Response

{
  "id" : 578,
  "glyph" : null,
  "compartment" : 575,
  "pathway" : null,
  "elementId" : "p3",
  "x" : 10.0,
  "y" : 20.0,
  "z" : 12,
  "allowUiInteraction" : true,
  "width" : 100.0,
  "height" : 20.0,
  "fontSize" : 12.0,
  "fontColor" : "#000000ff",
  "fillColor" : "#ffffffff",
  "borderColor" : "#000000ff",
  "visibilityLevel" : "",
  "transparencyLevel" : "",
  "notes" : "",
  "symbol" : null,
  "fullName" : null,
  "name" : "GSTA4",
  "nameX" : 10.0,
  "nameY" : 20.0,
  "nameWidth" : 100.0,
  "nameHeight" : 20.0,
  "fontName" : "ARIAL",
  "fontWeight" : "NORMAL",
  "fontStyle" : "NORMAL",
  "nameVerticalAlign" : "MIDDLE",
  "nameHorizontalAlign" : "CENTER",
  "synonyms" : [ "GSTA_XX", "GSTA_YY" ],
  "formerSymbols" : [ ],
  "modificationResidues" : [ {
    "id" : 51515,
    "idModificationResidue" : "r4",
    "name" : "",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 13,
    "width" : 15.0,
    "height" : 15.0,
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 15.0,
    "nameHeight" : 15.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 578,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 10.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "state" : null,
    "sboTerm" : "SBO:0000493",
    "stateAbbreviation" : null,
    "size" : 225.0,
    "elementId" : "r4"
  }, {
    "id" : 51516,
    "idModificationResidue" : "",
    "name" : "X",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 14,
    "width" : 10.0,
    "height" : 10.0,
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 10.0,
    "nameHeight" : 10.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 578,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 12.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "sboTerm" : "SBO:0000181",
    "size" : 100.0,
    "elementId" : ""
  }, {
    "id" : 51517,
    "idModificationResidue" : "b5",
    "name" : "",
    "x" : 60.0,
    "y" : 20.0,
    "z" : 15,
    "width" : 10.0,
    "height" : 10.0,
    "nameX" : 60.0,
    "nameY" : 20.0,
    "nameWidth" : 10.0,
    "nameHeight" : 10.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 578,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 10.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "sboTerm" : "SBO:0000494",
    "size" : 100.0,
    "elementId" : "b5"
  } ],
  "activity" : false,
  "lineWidth" : 1.0,
  "complex" : 576,
  "initialAmount" : null,
  "charge" : null,
  "initialConcentration" : 0.0,
  "onlySubstanceUnits" : false,
  "homodimer" : 1,
  "hypothetical" : null,
  "boundaryCondition" : false,
  "constant" : false,
  "substanceUnits" : {
    "id" : 191,
    "unitId" : "u1",
    "name" : "Weight",
    "unitTypeFactors" : [ ]
  },
  "borderLineType" : "SOLID",
  "map" : 216,
  "submap" : {
    "id" : 217
  },
  "references" : [ {
    "link" : null,
    "type" : "HGNC_SYMBOL",
    "resource" : "GSTA4",
    "id" : 742,
    "annotator" : null
  } ],
  "immediateLink" : null,
  "sboTerm" : "SBO:0000252"
}

13. Add element

Creates a new element in the map. The fontName field accepts one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA (default: ARIAL).

13.1. HTTP request

POST /minerva/new_api/projects/test_project/maps/222/bio_entities/elements/ HTTP/1.1

13.2. Path Parameters

Table 3. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/
Parameter Description

projectId

project identifier

mapId

map identifier

13.3. Request Fields

Path Type Description

sboTerm

String

SBO term defining the element type

elementId

String

element identifier within the map

name

String

element name

x

Number

x coordinate (top-left corner)

y

Number

y coordinate (top-left corner)

z

Number

z-index

allowUiInteraction

Boolean

whether the element allows user interaction (e.g. clicking, hovering)

width

Number

element width

height

Number

element height

nameX

Number

x coordinate of the label box

nameY

Number

y coordinate of the label box

nameWidth

Number

width of the label box

nameHeight

Number

height of the label box

nameVerticalAlign

String

vertical alignment of text in label box, one of: TOP, MIDDLE, BOTTOM

nameHorizontalAlign

String

horizontal alignment of text in label box, one of: LEFT, RIGHT, CENTER

fontSize

Number

font size for the element label

fontName

String

font used for the element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA (default: ARIAL)

fontWeight

String

font weight for the element label, one of: NORMAL, BOLD (default: NORMAL)

fontStyle

String

font style for the element label, one of: NORMAL, ITALIC (default: NORMAL)

fontColor

String

font colour; #RRGGBBAA string

fillColor

String

fill colour; #RRGGBBAA string

borderColor

String

border colour; #RRGGBBAA string

notes

String

notes and description

visibilityLevel

String

zoom level at which the element becomes visible in hierarchical view

transparencyLevel

String

zoom level at which the element becomes transparent in hierarchical view

immediateLink

String

URL opened immediately when the element is clicked

symbol

String

short symbol identifying the element

fullName

String

unabbreviated name of the element

lineWidth

Number

line width (species only)

homodimer

Number

multimer value (species only)

thickness

Number

border thickness (compartment only)

outerWidth

Number

outer border width (compartment only)

innerWidth

Number

inner border width (compartment only)

activity

Boolean

is the element active (species only)

hypothetical

Boolean

is the element hypothetical (species only)

boundaryCondition

Boolean

SBML boundary condition (species only)

constant

Boolean

SBML constant flag (species only)

initialAmount

Number

SBML initial amount (species only)

initialConcentration

Number

SBML initial concentration (species only)

charge

Number

SBML charge (species only)

onlySubstanceUnits

Boolean

SBML only substance units flag (species only)

13.4. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/222/bio_entities/elements/' -X POST \
    -H 'Authorization: Bearer xxxxxxxx' \
    -d '{"sboTerm":"SBO:0000243","elementId":"id11","x":10.0,"y":20.0,"z":30,"allowUiInteraction":true,"width":40.0,"height":50.0,"fontSize":12.0,"fontName":"ARIAL","fontWeight":"NORMAL","fontStyle":"NORMAL","fontColor":"#0000ffff","fillColor":"#ffff00ff","borderColor":"#404040ff","visibilityLevel":"","transparencyLevel":"","notes":"hello gene","symbol":"SNCA","fullName":"SNCA gene","name":"SNCA","nameX":10.0,"nameY":20.0,"nameWidth":40.0,"nameHeight":50.0,"nameVerticalAlign":"MIDDLE","nameHorizontalAlign":"CENTER","thickness":3.0,"outerWidth":5.0,"innerWidth":4.0,"activity":null,"lineWidth":1.0,"initialAmount":null,"charge":null,"initialConcentration":null,"onlySubstanceUnits":null,"homodimer":1,"hypothetical":null,"boundaryCondition":null,"constant":null,"immediateLink":"www.jerrold-botsford.io"}' \
    -H 'Content-Type: application/json'

13.5. HTTP response

HTTP/1.1 201 Created

13.6. Response Fields

Path Type Description

immediateLink

String

link that should be opened immediately when element is clicked on the map

id

Number

unique bioEntity identifier

name

String

name of the bioEntity displayed on the map

elementId

String

element identifier taken from source file

map

Number

map identifier

references

Array

list of references

z

Number

z index (coordinate) of the element on the map

notes

String

notes and description

visibilityLevel

String

at what zoom level this element becomes visible in hierarchical view

homodimer

Number

multimer value

sboTerm

String

SBO term identifying the type of the bioEntity

symbol

String

short symbol identifying the element

synonyms

Array

list of synonyms

nameX

Number

x coordinate of the element name on the map

nameY

Number

y coordinate of the element name on the map

borderLineType

String

line type

nameWidth

Number

width of the box with element name

nameHeight

Number

height of the box with element name

nameVerticalAlign

String

vertical align of the text inside the box with element name

nameHorizontalAlign

String

horizontal align of the text inside the box with element name

fontName

String

font name used for element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA

fontWeight

String

font weight for element label, one of: NORMAL, BOLD

fontStyle

String

font style for element label, one of: NORMAL, ITALIC

width

Number

width of the element

height

Number

height of the element

transparencyLevel

String

at what zoom level this element becomes transparent in hierarchical view

formerSymbols

Array

list of former symbols

fullName

String

unabbreviated name of the element

glyph

Object

image glyph associated with the element

glyph.id

Number

glyph id

glyph.file

Number

id of file associated with the glyph

activity

Boolean

is the element active

hypothetical

Boolean

is the element hypothetical

boundaryCondition

Boolean

SBML kinetics is boundary condition

constant

Boolean

SBML kinetics is constant

initialAmount

Number

SBML kinetics initial amount

initialConcentration

Number

SBML kinetics initial concentration

charge

Number

SBML charge

substanceUnits

Object

SBML substance units

onlySubstanceUnits

Boolean

SBML only substance units

modificationResidues

Array

List of species modification residues

structuralState

Object

Species structural state

complex

Number

identifier of a complex in which element is located

complexName

String

name of a complex in which element is located

compartment

Number

identifier of a compartment in which element is located

pathway

Number

identifier of a pathway in which element is located

compartmentName

String

name of a compartment in which element is located

submap

Object

submap to which this bioEntity is an entry point (anchor)

submap.id

Number

submap id

submap.mapId

Number

identifier of a submap to which this bioEntity is an entry point (anchor)

submap.type

String

type of submap connection

x

Number

x coordinate of the element on the map

y

Number

y coordinate of the element on the map

lineWidth

Number

border line width

substanceUnits

Object

Species units

fontColor

String

color of the element label; #RRGGBBAA string

fontSize

Number

size of the font used for the element label

fillColor

String

color used to fill the interior of the element; #RRGGBBAA string

borderColor

String

color used to draw the outline of the element; #RRGGBBAA string

smiles

String

smiles identifier (for chemicals)

inChI

String

inChI identifier (for chemicals)

inChIKey

String

inChI key identifier (for chemicals)

thickness

Number

compartment membrane thickness

outerWidth

Number

compartment outer line width

shape

String

shape of a compartment

innerWidth

Number

compartment inner line width

allowUiInteraction

Boolean

whether the element allows user interaction (e.g. clicking, hovering)

13.7. Sample Response

{
  "id" : 598,
  "glyph" : null,
  "compartment" : null,
  "pathway" : null,
  "elementId" : "id11",
  "x" : 10.0,
  "y" : 20.0,
  "z" : 30,
  "allowUiInteraction" : true,
  "width" : 40.0,
  "height" : 50.0,
  "fontSize" : 12.0,
  "fontColor" : "#0000ffff",
  "fillColor" : "#ffff00ff",
  "borderColor" : "#404040ff",
  "visibilityLevel" : "",
  "transparencyLevel" : "",
  "notes" : "hello gene",
  "symbol" : "SNCA",
  "fullName" : "SNCA gene",
  "name" : "SNCA",
  "nameX" : 10.0,
  "nameY" : 20.0,
  "nameWidth" : 40.0,
  "nameHeight" : 50.0,
  "fontName" : "ARIAL",
  "fontWeight" : "NORMAL",
  "fontStyle" : "NORMAL",
  "nameVerticalAlign" : "MIDDLE",
  "nameHorizontalAlign" : "CENTER",
  "synonyms" : [ ],
  "formerSymbols" : [ ],
  "modificationResidues" : [ ],
  "activity" : null,
  "lineWidth" : 1.0,
  "complex" : null,
  "initialAmount" : null,
  "charge" : null,
  "initialConcentration" : 0.0,
  "onlySubstanceUnits" : false,
  "homodimer" : 1,
  "hypothetical" : null,
  "boundaryCondition" : false,
  "constant" : false,
  "substanceUnits" : null,
  "borderLineType" : "SOLID",
  "map" : 222,
  "submap" : null,
  "references" : [ ],
  "immediateLink" : "www.jerrold-botsford.io",
  "sboTerm" : "SBO:0000243"
}

14. Update element

Updates an existing element. All fields from the request body replace the current values. The fontName field accepts one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA.

Note
Supports optimistic locking via the If-Match header.

14.1. HTTP request

PUT /minerva/new_api/projects/test_project/maps/224/bio_entities/elements/602 HTTP/1.1

14.2. Path Parameters

Table 4. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/{id}
Parameter Description

projectId

project identifier

mapId

map identifier

id

unique element identifier (the numeric "id" field of the element, not the "elementId" taken from the source file)

14.3. Request Fields

Path Type Description

sboTerm

String

SBO term defining the element type

elementId

String

element identifier within the map

name

String

element name

x

Number

x coordinate (top-left corner)

y

Number

y coordinate (top-left corner)

z

Number

z-index

allowUiInteraction

Boolean

whether the element allows user interaction (e.g. clicking, hovering)

width

Number

element width

height

Number

element height

nameX

Number

x coordinate of the label box

nameY

Number

y coordinate of the label box

nameWidth

Number

width of the label box

nameHeight

Number

height of the label box

nameVerticalAlign

String

vertical alignment of text in label box, one of: TOP, MIDDLE, BOTTOM

nameHorizontalAlign

String

horizontal alignment of text in label box, one of: LEFT, RIGHT, CENTER

fontSize

Number

font size for the element label

fontName

String

font used for the element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA (default: ARIAL)

fontWeight

String

font weight for the element label, one of: NORMAL, BOLD (default: NORMAL)

fontStyle

String

font style for the element label, one of: NORMAL, ITALIC (default: NORMAL)

fontColor

String

font colour; #RRGGBBAA string

fillColor

String

fill colour; #RRGGBBAA string

borderColor

String

border colour; #RRGGBBAA string

notes

String

notes and description

visibilityLevel

String

zoom level at which the element becomes visible in hierarchical view

transparencyLevel

String

zoom level at which the element becomes transparent in hierarchical view

immediateLink

String

URL opened immediately when the element is clicked

symbol

String

short symbol identifying the element

fullName

String

unabbreviated name of the element

lineWidth

Number

line width (species only)

homodimer

Number

multimer value (species only)

thickness

Number

border thickness (compartment only)

outerWidth

Number

outer border width (compartment only)

innerWidth

Number

inner border width (compartment only)

activity

Boolean

is the element active (species only)

hypothetical

Boolean

is the element hypothetical (species only)

boundaryCondition

Boolean

SBML boundary condition (species only)

constant

Boolean

SBML constant flag (species only)

initialAmount

Number

SBML initial amount (species only)

initialConcentration

Number

SBML initial concentration (species only)

charge

Number

SBML charge (species only)

onlySubstanceUnits

Boolean

SBML only substance units flag (species only)

14.4. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/224/bio_entities/elements/602' -X PUT \
    -H 'Authorization: Bearer xxxxxxxx' \
    -d '{"sboTerm":"SBO:0000252","elementId":"p3","x":10.0,"y":20.0,"z":30,"allowUiInteraction":true,"width":40.0,"height":50.0,"fontSize":12.0,"fontName":"ARIAL","fontWeight":"NORMAL","fontStyle":"NORMAL","fontColor":"#0000ffff","fillColor":"#ffff00ff","borderColor":"#404040ff","visibilityLevel":"","transparencyLevel":"","notes":"hello gene","symbol":"SNCA","fullName":"SNCA gene","name":"SNCA","nameX":10.0,"nameY":20.0,"nameWidth":40.0,"nameHeight":50.0,"nameVerticalAlign":"MIDDLE","nameHorizontalAlign":"CENTER","thickness":3.0,"outerWidth":5.0,"innerWidth":4.0,"activity":null,"lineWidth":1.0,"initialAmount":null,"charge":null,"initialConcentration":null,"onlySubstanceUnits":null,"homodimer":1,"hypothetical":null,"boundaryCondition":null,"constant":null,"immediateLink":"www.bryan-haley.biz"}' \
    -H 'Content-Type: application/json'

14.5. HTTP response

HTTP/1.1 200 OK

14.6. Response Fields

Path Type Description

immediateLink

String

link that should be opened immediately when element is clicked on the map

id

Number

unique bioEntity identifier

name

String

name of the bioEntity displayed on the map

elementId

String

element identifier taken from source file

map

Number

map identifier

references

Array

list of references

z

Number

z index (coordinate) of the element on the map

notes

String

notes and description

visibilityLevel

String

at what zoom level this element becomes visible in hierarchical view

homodimer

Number

multimer value

sboTerm

String

SBO term identifying the type of the bioEntity

symbol

String

short symbol identifying the element

synonyms

Array

list of synonyms

nameX

Number

x coordinate of the element name on the map

nameY

Number

y coordinate of the element name on the map

borderLineType

String

line type

nameWidth

Number

width of the box with element name

nameHeight

Number

height of the box with element name

nameVerticalAlign

String

vertical align of the text inside the box with element name

nameHorizontalAlign

String

horizontal align of the text inside the box with element name

fontName

String

font name used for element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA

fontWeight

String

font weight for element label, one of: NORMAL, BOLD

fontStyle

String

font style for element label, one of: NORMAL, ITALIC

width

Number

width of the element

height

Number

height of the element

transparencyLevel

String

at what zoom level this element becomes transparent in hierarchical view

formerSymbols

Array

list of former symbols

fullName

String

unabbreviated name of the element

glyph

Object

image glyph associated with the element

glyph.id

Number

glyph id

glyph.file

Number

id of file associated with the glyph

activity

Boolean

is the element active

hypothetical

Boolean

is the element hypothetical

boundaryCondition

Boolean

SBML kinetics is boundary condition

constant

Boolean

SBML kinetics is constant

initialAmount

Number

SBML kinetics initial amount

initialConcentration

Number

SBML kinetics initial concentration

charge

Number

SBML charge

substanceUnits

Object

SBML substance units

onlySubstanceUnits

Boolean

SBML only substance units

modificationResidues

Array

List of species modification residues

structuralState

Object

Species structural state

complex

Number

identifier of a complex in which element is located

complexName

String

name of a complex in which element is located

compartment

Number

identifier of a compartment in which element is located

pathway

Number

identifier of a pathway in which element is located

compartmentName

String

name of a compartment in which element is located

submap

Object

submap to which this bioEntity is an entry point (anchor)

submap.id

Number

submap id

submap.mapId

Number

identifier of a submap to which this bioEntity is an entry point (anchor)

submap.type

String

type of submap connection

x

Number

x coordinate of the element on the map

y

Number

y coordinate of the element on the map

lineWidth

Number

border line width

substanceUnits

Object

Species units

fontColor

String

color of the element label; #RRGGBBAA string

fontSize

Number

size of the font used for the element label

fillColor

String

color used to fill the interior of the element; #RRGGBBAA string

borderColor

String

color used to draw the outline of the element; #RRGGBBAA string

smiles

String

smiles identifier (for chemicals)

inChI

String

inChI identifier (for chemicals)

inChIKey

String

inChI key identifier (for chemicals)

thickness

Number

compartment membrane thickness

outerWidth

Number

compartment outer line width

shape

String

shape of a compartment

innerWidth

Number

compartment inner line width

allowUiInteraction

Boolean

whether the element allows user interaction (e.g. clicking, hovering)

14.7. Sample Response

{
  "id" : 602,
  "glyph" : null,
  "compartment" : 599,
  "pathway" : null,
  "elementId" : "p3",
  "x" : 10.0,
  "y" : 20.0,
  "z" : 30,
  "allowUiInteraction" : true,
  "width" : 40.0,
  "height" : 50.0,
  "fontSize" : 12.0,
  "fontColor" : "#0000ffff",
  "fillColor" : "#ffff00ff",
  "borderColor" : "#404040ff",
  "visibilityLevel" : "",
  "transparencyLevel" : "",
  "notes" : "hello gene",
  "symbol" : "SNCA",
  "fullName" : "SNCA gene",
  "name" : "SNCA",
  "nameX" : 10.0,
  "nameY" : 20.0,
  "nameWidth" : 40.0,
  "nameHeight" : 50.0,
  "fontName" : "ARIAL",
  "fontWeight" : "NORMAL",
  "fontStyle" : "NORMAL",
  "nameVerticalAlign" : "MIDDLE",
  "nameHorizontalAlign" : "CENTER",
  "synonyms" : [ "GSTA_XX", "GSTA_YY" ],
  "formerSymbols" : [ ],
  "modificationResidues" : [ {
    "id" : 51535,
    "idModificationResidue" : "r4",
    "name" : "",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 13,
    "width" : 15.0,
    "height" : 15.0,
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 15.0,
    "nameHeight" : 15.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 602,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 10.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "state" : null,
    "sboTerm" : "SBO:0000493",
    "stateAbbreviation" : null,
    "size" : 225.0,
    "elementId" : "r4"
  }, {
    "id" : 51536,
    "idModificationResidue" : "",
    "name" : "X",
    "x" : 10.0,
    "y" : 20.0,
    "z" : 14,
    "width" : 10.0,
    "height" : 10.0,
    "nameX" : 10.0,
    "nameY" : 20.0,
    "nameWidth" : 10.0,
    "nameHeight" : 10.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 602,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 12.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "sboTerm" : "SBO:0000181",
    "size" : 100.0,
    "elementId" : ""
  }, {
    "id" : 51537,
    "idModificationResidue" : "b5",
    "name" : "",
    "x" : 60.0,
    "y" : 20.0,
    "z" : 15,
    "width" : 10.0,
    "height" : 10.0,
    "nameX" : 60.0,
    "nameY" : 20.0,
    "nameWidth" : 10.0,
    "nameHeight" : 10.0,
    "nameVerticalAlign" : "MIDDLE",
    "nameHorizontalAlign" : "CENTER",
    "species" : 602,
    "borderColor" : "#000000ff",
    "fillColor" : "#ffffffff",
    "fontSize" : 10.0,
    "fontWeight" : "NORMAL",
    "fontStyle" : "NORMAL",
    "sboTerm" : "SBO:0000494",
    "size" : 100.0,
    "elementId" : "b5"
  } ],
  "activity" : null,
  "lineWidth" : 1.0,
  "complex" : 600,
  "initialAmount" : null,
  "charge" : null,
  "initialConcentration" : 0.0,
  "onlySubstanceUnits" : false,
  "homodimer" : 1,
  "hypothetical" : null,
  "boundaryCondition" : false,
  "constant" : false,
  "substanceUnits" : {
    "id" : 198,
    "unitId" : "u1",
    "name" : "Weight",
    "unitTypeFactors" : [ ]
  },
  "borderLineType" : "SOLID",
  "map" : 224,
  "submap" : {
    "id" : 225
  },
  "references" : [ {
    "link" : null,
    "type" : "HGNC_SYMBOL",
    "resource" : "GSTA4",
    "id" : 773,
    "annotator" : null
  } ],
  "immediateLink" : "www.bryan-haley.biz",
  "sboTerm" : "SBO:0000252"
}

15. Delete element

Deletes an element from the map. Returns 400 if the element is part of a reaction, compartment, or complex that cannot be left empty.

Note
Supports optimistic locking via the If-Match header.

15.1. HTTP request

DELETE /minerva/new_api/projects/test_project/maps/220/bio_entities/elements/590 HTTP/1.1

15.2. Path Parameters

Table 5. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/{id}
Parameter Description

projectId

project identifier

mapId

map identifier

id

unique element identifier (the numeric "id" field of the element, not the "elementId" taken from the source file)

15.3. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/220/bio_entities/elements/590' -X DELETE \
    -H 'Authorization: Bearer xxxxxxxx'

15.4. HTTP response

HTTP/1.1 200 OK

16. Export elements to CSV

Exports elements matching the request to a CSV file.

16.1. HTTP request

POST /minerva/new_api/projects/test_project/maps/*/bio_entities/elements:download_csv HTTP/1.1

16.2. Path Parameters

Table 6. /minerva/new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements:download_csv
Parameter Description

projectId

project identifier

mapId

map identifier

16.3. Request Fields

Path Type Description

types

Array

list of element types

submaps

Array

list of map identifiers

includedCompartmentIds

Array

list of compartment identifiers where elements should be included

columns

Array

list of columns that should be returned in csv

annotations

Array

list of annotations that should be returned in csv

excludedCompartmentIds

Array

list of compartment identifiers from which elements should be excluded

16.4. CURL sample

$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/*/bio_entities/elements:download_csv' -X POST \
    -d '{"types":["Simple molecule"],"submaps":[246],"columns":["id","modelId"],"annotations":["CHEBI"],"includedCompartmentIds":[668],"excludedCompartmentIds":[]}' \
    -H 'Content-Type: application/json'

16.5. HTTP response

HTTP/1.1 200 OK

16.6. Sample Response

id,modelId,CHEBI
669,246,CHEBI:1234