MINERVA v18.0
Manual

Advanced file upload#

The structure of compressed file for advanced MINERVA upload#

Advanced upload mode assumes that a zip-compressed directory will be submitted as an input, with the structure presented below. Note: There is no necessity to zip-compress all directories - upload to MINERVA an archive containing main map plus any of these directories works.

After upload, in Add project window additional tabs become available. Each tab represents subfolder of a source file, see below:

add-zip-project.png

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

Sections of the compressed file#

Overlays#

The layouts subdirectory contains files with custom colorings 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.

Glyphs#

MINERVA allows to color the map’s elements (species, compartment, pathways) with the images provided by user (see image below). Note: MINERVA supports only extension for PNG.

glyphs.png

The archived file has to contain the images inside the glyphs directory. Particular elements have to contain below term so the glyph is displayed in MINERVA: Glyph: glyphs/my-image.png For species and compartments, input the term into their NOTE in CellDesigner. For pathways (CellDesigner text area) - double click on the text area to input the term.

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

Submaps and mapping file#

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). Additionally to the submaps files, one additional file - submap mapping file, can be added to the directory. This file describes connections between the submaps and the main map itself.

Submap mapping file is a CellDesigner file, in which relations between the uploaded maps are represented graphically. Two types of components and one type of interaction is considered when parsing this file:

Image below demonstrates an exemplary submap mapping file.

submaps_mapping.png

Section Add project -> Submaps describes how main map and uploaded submaps are related, see image below:

add-submap.png

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). Besides the images, the directory also has to contain a file describing links between the images and the associated network(s). This file must be a tab-separated text file named coords.txt or json file named coords.json.

The coords.txt file is a table with the following structure:

Example of a coords.txt file:

FILE POLYGON LINK_TYPE LINK_TARGET MODEL_COORDINATES MODEL_ZOOM_LEVEL COMMENT
image-A.png 51,218 107,218 107,252 51,252 MODEL PD_151023_1.xml 7488,11986 4 Link from image-A file to a point in the display area with zoom level 4.
image-B.png 15,187 73,187 73,52 15,52 IMAGE image-A.png Link from image-B file to invoke image-A.
image-C.png 30,8 10,8 10,7 30,7 SEARCH reaction:c1,reaction:c2 A link from image-C to results of a search query pointing to interactions c1 and c2.

The coords.json file structure:

Example of a coords.json file:

[
   {
      "filename":"test.png",
      "links":[
         {
            "polygon":[
               {
                  "x":10.0,
                  "y":10.0
               },
               {
                  "x":100.0,
                  "y":10.0
               },
               {
                  "x":100.0,
                  "y":100.0
               },
               {
                  "x":10.0,
                  "y":100.0
               }
            ],
            "imageLinkFilename":"sub_image.png"
         },
         {
            "polygon":[
               {
                  "x":120.0,
                  "y":120.0
               },
               {
                  "x":150.0,
                  "y":150.0
               },
               {
                  "x":120.0,
                  "y":150.0
               },
               {
                  "x":150.0,
                  "y":120.0
               }
            ],
            "query": "s3,reaction:re1"
         }
      ]
   },
   {
      "filename":"sub_image.png",
      "links":[
         {
            "polygon":[
               {
                  "x":200.0,
                  "y":200.0
               },
               {
                  "x":200.0,
                  "y":400.0
               },
               {
                  "x":400.0,
                  "y":400.0
               },
               {
                  "x":400.0,
                  "y":200.0
               }
            ],
            "zoomLevel":1,
            "modelPoint":{
               "x":10.0,
               "y":100.0
            },
            "modelLinkFilename":"main.xml"
         }
      ]
   }
]