Element a reactant points at, served from /new_api/projects/{projectId}/maps/{mapId}/bio_entities/reactions/{reactionId}/reactants/{reactantId}/element.
1. Get element
Returns the element the reactant points at.
1.1. HTTP request
GET /minerva/new_api/projects/test_project/maps/352/bio_entities/reactions/160/reactants/1112/element HTTP/1.1
1.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
reaction identifier |
|
reactant identifier |
1.3. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/352/bio_entities/reactions/160/reactants/1112/element' -X GET \
-H 'Authorization: Bearer xxxxxxxx'
1.4. HTTP response
HTTP/1.1 200 OK
1.5. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
link that should be opened immediately when element is clicked on the map |
|
|
unique bioEntity identifier |
|
|
name of the bioEntity displayed on the map |
|
|
element identifier taken from source file |
|
|
map identifier |
|
|
list of references |
|
|
z index (coordinate) of the element on the map |
|
|
notes and description |
|
|
at what zoom level this element becomes visible in hierarchical view |
|
|
multimer value |
|
|
SBO term identifying the type of the bioEntity |
|
|
short symbol identifying the element |
|
|
list of synonyms |
|
|
x coordinate of the element name on the map |
|
|
y coordinate of the element name on the map |
|
|
line type |
|
|
width of the box with element name |
|
|
height of the box with element name |
|
|
vertical align of the text inside the box with element name |
|
|
horizontal align of the text inside the box with element name |
|
|
font name used for element label, one of: ARIAL, HELVETICA, TIMES_NEW_ROMAN, COURIER_NEW, GEORGIA, VERDANA |
|
|
font weight for element label, one of: NORMAL, BOLD |
|
|
font style for element label, one of: NORMAL, ITALIC |
|
|
width of the element |
|
|
height of the element |
|
|
at what zoom level this element becomes transparent in hierarchical view |
|
|
list of former symbols |
|
|
unabbreviated name of the element |
|
|
image glyph associated with the element |
|
|
glyph id |
|
|
id of file associated with the glyph |
|
|
is the element active |
|
|
is the element hypothetical |
|
|
SBML kinetics is boundary condition |
|
|
SBML kinetics is constant |
|
|
SBML kinetics initial amount |
|
|
SBML kinetics initial concentration |
|
|
SBML charge |
|
|
SBML substance units |
|
|
SBML only substance units |
|
|
List of species modification residues |
|
|
Species structural state |
|
|
identifier of a complex in which element is located |
|
|
name of a complex in which element is located |
|
|
identifier of a compartment in which element is located |
|
|
identifier of a pathway in which element is located |
|
|
name of a compartment in which element is located |
|
|
submap to which this bioEntity is an entry point (anchor) |
|
|
submap id |
|
|
identifier of a submap to which this bioEntity is an entry point (anchor) |
|
|
type of submap connection |
|
|
x coordinate of the element on the map |
|
|
y coordinate of the element on the map |
|
|
border line width |
|
|
Species units |
|
|
color of the element label; |
|
|
size of the font used for the element label |
|
|
color used to fill the interior of the element; |
|
|
color used to draw the outline of the element; |
|
|
smiles identifier (for chemicals) |
|
|
inChI identifier (for chemicals) |
|
|
inChI key identifier (for chemicals) |
|
|
compartment membrane thickness |
|
|
compartment outer line width |
|
|
shape of a compartment |
|
|
compartment inner line width |
|
|
whether the element allows user interaction (e.g. clicking, hovering) |
1.6. Sample Response
{
"id" : 987,
"glyph" : null,
"compartment" : 983,
"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" : 352,
"submap" : null,
"references" : [ {
"link" : null,
"type" : "CHEBI",
"resource" : "CHEBI:1234",
"id" : 1279,
"annotator" : null
} ],
"immediateLink" : null,
"sboTerm" : "SBO:0000247"
}
2. Set element
Points the reactant at another element of the map.
|
Note
|
Supports optimistic locking via the If-Match header.
|
2.1. HTTP request
POST /minerva/new_api/projects/test_project/maps/354/bio_entities/reactions/161/reactants/1119/element HTTP/1.1
2.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
reaction identifier |
|
reactant identifier |
2.3. Request Fields
| Path | Type | Description |
|---|---|---|
|
|
identifier of the referenced entity |
2.4. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/354/bio_entities/reactions/161/reactants/1119/element' -X POST \
-H 'Authorization: Bearer xxxxxxxx' \
-d '{"id":991}' \
-H 'Content-Type: application/json'
2.5. HTTP response
HTTP/1.1 200 OK
2.6. Sample Response
{
"id" : 991,
"glyph" : null,
"compartment" : 993,
"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" : 51856,
"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" : 991,
"borderColor" : "#000000ff",
"fillColor" : "#ffffffff",
"fontSize" : 10.0,
"fontWeight" : "NORMAL",
"fontStyle" : "NORMAL",
"state" : null,
"sboTerm" : "SBO:0000493",
"stateAbbreviation" : null,
"size" : 225.0,
"elementId" : "r4"
}, {
"id" : 51857,
"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" : 991,
"borderColor" : "#000000ff",
"fillColor" : "#ffffffff",
"fontSize" : 12.0,
"fontWeight" : "NORMAL",
"fontStyle" : "NORMAL",
"sboTerm" : "SBO:0000181",
"size" : 100.0,
"elementId" : ""
}, {
"id" : 51858,
"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" : 991,
"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" : 989,
"initialAmount" : null,
"charge" : null,
"initialConcentration" : 0.0,
"onlySubstanceUnits" : false,
"homodimer" : 1,
"hypothetical" : null,
"boundaryCondition" : false,
"constant" : false,
"substanceUnits" : {
"id" : 326,
"unitId" : "u1",
"name" : "Weight",
"unitTypeFactors" : [ ]
},
"borderLineType" : "SOLID",
"map" : 354,
"submap" : {
"id" : 355
},
"references" : [ {
"link" : null,
"type" : "HGNC_SYMBOL",
"resource" : "GSTA4",
"id" : 1285,
"annotator" : null
} ],
"immediateLink" : null,
"sboTerm" : "SBO:0000252"
}