Skip to content

Attachments in datasource-properties.json #8567

@normanrz

Description

@normanrz

Detailed Description

We want meshfiles, agglomerate files, or segment index files to be explicitly listed in the datasource-properties.json in the future. WK should be able to parse these and use the information, if available, instead of probing the filesystem.

{
    "id": {
        "name": "l4_sample",
        "team": "scalable_minds"
    },
    "version": 1, # or bump to 2
    "scale": [
        11.24,
        11.24,
        28.0
    ],
    "dataLayers": [
        {
            "name": "color",
            ...
        },
        {
            "name": "segmentation",
            "category": "segmentation",
            "boundingBox": {
                "topLeft": [
                    3072,
                    3072,
                    512
                ],
                "width": 1024,
                "height": 1024,
                "depth": 1024
            },
            "elementClass": "uint32",
            "wkwResolutions": [
                {
                    "resolution": [
                        1,
                        1,
                        1
                    ],
                    "cubeLength": 1024
                },
                ...
            ],
            "dataFormat": "wkw",
            "numChannels": 1,
            "largestSegmentId": 2504697,
            "attachments": {
                "meshes": [{ "name": "meshfile", "dataFormat": "hdf5", "path": "segmentation/meshes/meshfile.hdf5" }], # path relative to dataset
                "agglomerates": [
                    { "name": "agglomerate_view_5", "dataFormat": "zarr3", "path": "segmentation/agglomerates/agglomerate_view_5" },
                    { "name": "agglomerate_view_10", "dataFormat": "zarr3", "path": "segmentation/agglomerates/agglomerate_view_10" },
                    ...
                ],
                "cumsum": { "name": "cumsum", "dataFormat": "json", "path": "segmentation/agglomerates/cumsum.json" }, # or null
                "segmentIndex": { "name": "segmentIndex", "dataFormat": "zarr3", "path": "segmentation/segmentIndex" }, # or null
                "connectomes": [{ "name": "connectome", "dataFormat": "zarr3", "path": "segmentation/connectomes/connectome" }]
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions