MINERVA v21.0
Manual

Back to the admin manual

Configuration file - structure and definitions#

MINERVA projects can have a complex structure (read about project structure here) and the accompanying configuration file (always named config.json) allows to integrate them, and pre-define configuration options that will become available on project file (.zip) upload.

The configuration file has the following structure:

Note Overview images are not configured here.
Their configuration is provided in the coords.json file inside the images subdirectory — see Overview images.

Available defined licenses#

See also https://minerva-service.lcsb.uni.lu/minerva/api/licenses/.

An example configuration file#

Below is a complete JSON structure for an example project. A short summary:

{
    "maps": [
        {
            "custom_elements": [],
            "default_center_x": 100.0,
            "default_center_y": 100.0,
            "default_zoom_level": 2,
            "max_zoom_levels": 2,
            "name": "submap_example"
        },
        {
            "custom_elements": [
                {
                    "element_id": "sa11",
                    "immediate_link": null,
                    "glyph_file_name": "glyphs/g2.png",
                    "submap": null
                },
                {
                    "element_id": "ca1",
                    "immediate_link": null,
                    "glyph_file_name": "glyphs/g1.png",
                    "submap": null
                },
                {
                    "element_id": "sa8",
                    "immediate_link": "https://disease-maps.io/",
                    "glyph_file_name": null,
                    "submap": null
                },
                {
                    "element_id": "sa13",
                    "immediate_link": null,
                    "glyph_file_name": null,
                    "submap": "submap_example"
                }
            ],
            "default_center_x": 10.0,
            "default_center_y": 10.0,
            "default_zoom_level": 2,
            "max_zoom_levels": 3,
            "name": "advanced_map_example"
        }
    ],
    "sbgn": false,
    "disease": "https://identifiers.org/mesh:D010300",
    "organism": "https://identifiers.org/taxonomy:9606",
    "name": "advanced_map",
    "version": "v0.1",
    "notify_email": "my@email.com",
    "custom_license_name": "",
    "custom_license_url": "",
    "source_git_repository": null,
    "source_git_branch": null,
    "license": {
        "name": "Creative Commons Attribution 4.0 International Public License"
    }
}