- 
                Notifications
    You must be signed in to change notification settings 
- Fork 29
Datasets
- 
webknossos-wrap (WKW). Optimized format for large datasets of 3D voxel imagery. Supports compression, efficient cutouts, multi-channel and several base datatypes (e.g., uint8,uint16).
- KNOSSOS cubes. Dataset of 128x128x128 cubes.
- Grayscale data (uint8), also referred to ascolordata
- RGB data (24 Bit)
- Segmentation data (8 Bit, 16 Bit, 32 Bit)
- Multi-channel data (multiple 8 Bit)
Of course datasets do not need to be created manually. The webKnossos cuber converts image stacks and KNOSSOS cubes into a WKW dataset. It also compresses datasets for efficient file storage and creates necessary metadata.
test_dataset           # One folder per dataset
├─ color               # Dataset layer (e.g., color, segmentation)
│  ├─ 1                # Magnification step (1, 2, 4, 8, 16 etc.)
│  │  ├─ header.wkw    # Header wkw file
│  │  ├─ z0
│  │  │  ├─ y0
│  │  │  │  ├─ x0.wkw  # Actual data wkw file
│  │  │  │  └─ x1.wkw  # Actual data wkw file
│  │  │  └─ y1/...
│  │  └─ z1/...
│  └─ 2/...
├─ segmentation/...
└─ datasource-properties.json  # Dataset metadata (will be created upon import, if non-existant)
Sample datasource-properties.json:
{
  "id" : {
    "name" : "test_dataset",
    "team" : "<unknown>"
  },
  "dataLayers" : [ {
    "name" : "color",
    "category" : "color",
    "boundingBox" : {
      "topLeft" : [ 0, 0, 0 ],
      "width" : 1024,
      "height" : 1024,
      "depth" : 1024
    },
    "wkwResolutions" : [
        {
          "resolution": 1,
          "cubeLength": 1024
        },
        {
          "resolution": [
            2,
            2,
            1
          ],
          "cubeLength": 1024
        },
        {
          "resolution": [
            4,
            4,
            1
          ],
          "cubeLength": 1024
        },
        {
          "resolution": [
            8,
            8,
            1
          ],
          "cubeLength": 1024
        },
        {
          "resolution": [
            16,
            16,
            2
          ],
          "cubeLength": 1024
        },
      ],
    "elementClass" : "uint8",
    "dataFormat" : "wkw"
  }, {
    "name" : "segmentation",
    "boundingBox" : {
      "topLeft" : [ 0, 0, 0 ],
      "width" : 1024,
      "height" : 1024,
      "depth" : 1024
    },
    "wkwResolutions" : [ {
      "resolution" : 1,
      "cubeLength" : 1024
    }, {
      "resolution" : [
        2,
        2,
        1
      ],
      "cubeLength" : 1024
    } ],
    "elementClass" : "uint32",
    "largestSegmentId" : 1000000000,
    "category" : "segmentation",
    "dataFormat" : "wkw"
  } ],
  "scale" : [ 11.24, 11.24, 28 ]
}Note that the resolutions attribute within the elements of wkwResolutions can be an array of length 3. The three components within such a resolution denote the scaling factor for x, y and z. At the moment, WebKnossos guarantees correct rendering of data with non-uniform resolution factors only if the z-component between two resolutions changes by a factor of 1 or 2.
Use the upload function in webKnossos:
- Recommended only for smaller datasets (max. 1 GB)
- Create a zip-file of dataset as specified above
File-system import:
- Place the dataset at <webKnossos directory>/binaryData/<Organization name>/<Dataset name>
- Wait for webKnossos to detect the dataset (up to 10min) or use the refresh button on the dashboard
- Go to the dataset view on the dashboard
- Click Importfor your new dataset
- Review, correct and approve the dataset metadata. Usually, scaleandlargestSegmentIdneeds to be set manually.
KNOSSOS datasets can be reused in webKnossos with slight modifications:
- The folders of the magnification steps have a different naming scheme:
 mag1→1,mag2→2
- webKnossos compatible metadata needs to be created (i.e., datasource-properties.json).knossos.confcan not be used directly.
- Make sure to put each dataset layer into its own directory structure (e.g., color,segmentation)
- Compressed KNOSSOS cubes are not supported. Please convert to WKW for compression support.