Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Webknossos annotations to OME-Zarr or NIfTI-Zarr #16

Open
6 tasks
kabilar opened this issue Sep 27, 2024 · 1 comment
Open
6 tasks

Export Webknossos annotations to OME-Zarr or NIfTI-Zarr #16

kabilar opened this issue Sep 27, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kabilar
Copy link
Member

kabilar commented Sep 27, 2024

Description

Currently Webknossos annotations are in the *.wkw format. We should create scripts to export and convert these annotations to either OME-Zarr or NIfTI-Zarr. We have decided to select the output format to match the base imaging layer(s) so that the orientation is preserved. We can use either the wkcuber or webknossos Python libraries.

Goals

  • Determine additional metadata in the Webknossos annotation files (e.g. annotator name, mapping of segmentation names)
  • Create a script to perform the following operations:
    • Determine the base imaging layer(s) format of the corresponding Webknossos dataset (i.e. OME-Zarr or NIfTI-Zarr)
    • Export Webknossos annotation as a OME-Zarr file
    • Export Webknossos annotation as a NIfTI-Zarr file
    • Add the above Webknossos metadata to the exported file

Thank you.

@kabilar kabilar added the enhancement New feature or request label Sep 27, 2024
@kabilar kabilar mentioned this issue Sep 27, 2024
48 tasks
@jingjingwu1225
Copy link

jingjingwu1225 commented Oct 3, 2024

Hi @kabilar, I noticed a zarr link option avaliable for annotations on webknossos, it generates a url link for selected layer( layer volume for annotations), the zarr file has a ome.zarr structure but follows a cxyz direction. I calculated the border distance for each slice at a low-resolution level and get corresponding offset at other resolution levels. And for metadata, we could just download the skeleton annotations as nml format and save essential information into metadata of mask.ome.zarr file.
zarr_link
nml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants