MINERVA v21.0
Manual

Back to the admin manual

Structure of a MINERVA project#

MINERVA projects can include multiple files, allowing to pre-configure a number options and functionalities. The structure explained below can be either compressed into a .zip file or uploaded from a git repository. See this repository for example.

The list of project components is as follows:

Learn more about advanced upload in example 04 - The advanced file upload.

Learn more about config.json in config file structure.

Sections of the structured project#

Submaps#

The submaps subdirectory contains files that will be displayed in the Submaps tab in the functional area of the User view (see section User view - Submaps tab).

Diagram elements can be configured to act as links (anchors) to other diagrams. Any element from the root or a submap diagram can be connected to any other diagram. To set up these links, use the dedicated Edit functionality (see Projects > Customise exploration).

Note If you’d like to preserve the manually introduced submap connectivity, use Download current project files from the Project info tab - the downloaded .zip file will contain the config.json with the existing mapping of elements and submaps they are linked to.

Overlays#

The overlays subdirectory contains files with custom colouring of the uploaded content that will be accessible to all the users. The format is identical to the format of files uploaded by registered users. See section Upload user provided overlay data for details on file format.

Overview images#

The images subdirectory contains static image files in .png format that will be displayed after pressing the Show overview button (see Browse overview images in User manual). The links between the images and i) other images or ii) the contents of the map have to be expressed in coords.json file. The file is an array of entries, one per image, each containing the following keys:

coords.json example#

An example of a coords.json file (see also example 04 - The advanced file upload):

[
  {
    "filename": "overview_sub.png",
    "links": [
      {
        "polygon": [
          {
            "x": 967.0,
            "y": 700.0
          },
          {
            "x": 2067.0,
            "y": 700.0
          },
          {
            "x": 2067.0,
            "y": 1207.0
          },
          {
            "x": 967.0,
            "y": 1207.0
          }
        ],
        "query": "reaction:re3,reaction:re4"
      }
    ]
  },
  {
    "filename": "overview_main.png",
    "links": [
      {
        "polygon": [
          {
            "x": 167.0,
            "y": 607.0
          },
          {
            "x": 1267.0,
            "y": 607.0
          },
          {
            "x": 1267.0,
            "y": 1117.0
          },
          {
            "x": 167.0,
            "y": 1117.0
          }
        ],
        "imageLinkFilename": "overview_sub.png"
      },
      {
        "polygon": [
          {
            "x": 1653.0,
            "y": 453.0
          },
          {
            "x": 2277.0,
            "y": 191.0
          },
          {
            "x": 2901.0,
            "y": 453.0
          },
          {
            "x": 2901.0,
            "y": 1500.0
          },
          {
            "x": 2277.0,
            "y": 1177.0
          },
          {
            "x": 1653.0,
            "y": 1500.0
          }
        ],
        "zoomLevel": 4,
        "modelPoint": {
          "x": 270,
          "y": 24
        },
        "modelLinkFilename": "advanced_map_example.xml"
      }
    ]
  }
]

Glyphs#

Glyphs are custom images that can be added to diagrams visualised in the MINERVA Platform, see Projects > Element glyphs. The image of any element of the diagram (species, compartment, pathways) can be replaced with such custom images.

Size and format Glyphs will be resized to fit the size and aspect ratio of the element they are assigned to.

MINERVA supports only .png images as glyphs.

Glyphs provided via this directory become automatically available for selection via a dropdown menu, without the need of their upload. They can be automatically assigned to specific elements on upload using config.json file.

Find more details about glyphs in the example 6 - Map with glyphs.

Note If you’d like to preserve manual glyph assignment, use Download current project files from the Project info tab - the downloaded .zip file will contain the glyphs subdirectory with originally and externally uploaded files, and config.json with introduced mapping of elements to selected glyphs.

Alias vs identifier in CellDesigner files#

CellDesigner has a single species identifier for all copies of a certain element (e.g. SNCA protein) in a file. If you open your CellDesigner file in any text editor you can find it in species tag, parameter id:
<species metaid="s1" id="s1" name="SNCA" compartment="default">

Different instances of the same element (here: ‘s1’) have different species aliases, so they can be distinguished in the model, e.g. two copies of SNCA protein in different reactions You can find species alias of element if you open your CellDesigner file in any text editor, then find tag speciesAlias for particular species id (here: ‘s1’):
<celldesigner:speciesAlias id="sa1" species="s1">
<celldesigner:speciesAlias id="sa2" species="s1">

Aliases are the basis of assigning submap links and glyphs in MINERVA, see config file structure. If you have trouble locating species aliases in CellDesigner files, assign glyphs and submap links manually and use Download current project files from the Project info tab - the downloaded .zip file will contain necessary mappings in the config.json file.

Note If you’d like to preserve manual submap assignment, use Download current project files from the Project info tab - the downloaded .zip file will contain the config.json with introduced mapping of elements to selected submaps.