ReconMaps¶
-
buildFluxDistLayout
(minerva, model, solution, identifier, hexColour, thickness)[source]¶ Builds a layout for MINERVA from a flux distribution. If a dictionary of identifiers is not provided it is assumed that the map and the COBRA model’s nomenclature is coherent. Sends the layout to the remote MINERVA instance
Usage
[serverResponse] = buildFluxDistLayout( minerva, model, solution, identifier, rxnList)Inputs
- minerva – Struct with the information of minerva instance: address, login, password and model (map)
- model – COBRA model structure
- solution.v – optimizeCb solution structure with a flux vector
- identifier – Name for the layout in MINERVA
Optional inputs
hexColour colour of overlay (hex color format) –
e.g. ‘#009933’ corresponds to http://www.color-hex.com/color/009933
thickness – maximum thickness
Output
- serverResponse – Response of the MINERVA
-
changeCbMapOutput
(outputFormat)[source]¶ changeCbMapOutput sets the output format for drawCbMap. Displays outputFormat if no inputs provided.
outputFormatOK = changeCbMapOutput(outputFormat)Optional input
outputFormat drawCbMap render format –
{‘svg’, ‘matlab’, ‘java’} (java not implemented)
Output
- outputFormatOK True if output format set properly, else false.
-
generateSubsystemLayouts
(minerva, cobra_model, color)[source]¶ Generates subsystem layouts
Usage
generateSubsystemLayouts( minerva, cobra_model, color )Inputs
- minerva – Struct with the information of minerva instance: address, login, password and model (map)
- cobra_model – COBRA model structure
- color – Color
-
generateSubsytemsLayout
(minerva, cobra_model, subsystem, color)[source]¶ Generates subsystem layouts
Usage
generateSubsytemsLayout(minerva, cobra_model, subsystem, color)Inputs
- minerva – Struct with the information of minerva instance: address, login, password and model (map)
- cobra_model – COBRA model structure
- subsystem – Subsystem
- color – Color
-
postMINERVArequest
(login, password, map, googleLicenseContent, identifier, content)[source]¶ Sends a new layout to a MINERVA instance
Usage
[response] = postMINERVArequest(minerva_servlet, login, password, map, identifier, content)Inputs
- minerva_servlet – URL
- login – MINERVA username
- password – MINERVA password
- map – MINERVA map
. googleLicenseContent: True if user agreed to Google Maps terms of use: https://cloud.google.com/maps-platform/terms/
identifier: Layout name content: Content of the layoutOutput
- response – MINERVA’s response - cell array index 1 - 0/1 whether the overlay was successfully uploaded. index 2 - success or error message