Skip to content

Write utilities for SpatialData#163

Draft
Artur-man wants to merge 45 commits into
HelenaLC:mainfrom
Artur-man:write
Draft

Write utilities for SpatialData#163
Artur-man wants to merge 45 commits into
HelenaLC:mainfrom
Artur-man:write

Conversation

@Artur-man
Copy link
Copy Markdown
Collaborator

@Artur-man Artur-man commented Apr 27, 2026

Fixes #115.

This is a draft PR (from @kollo97) that introduces methods to write/update zarr stores, groups, atttibutes and SpatialElements:

  • create zarr stores
v2 v3
  • create zarr groups
v2 v3
  • write zarr attributes
v2 v3
  • create in-memory metadata
Ver. image label shape point table
v2
v3
  • create in-memory SpatialElements
Ver. image label shape point table
v2
v3
  • write metadata to json
Ver. image label shape point table
v2
v3
Ver. image label shape point table
v2
v3
v2 v3

Comment thread inst/scripts/legacy/metadata.R
Comment thread inst/scripts/legacy/metadata.R
Comment thread inst/scripts/legacy/metadata.R
Comment thread inst/scripts/legacy/metadata.R
Comment thread inst/scripts/legacy/ShapeFrame.R
Comment thread R/sdArray.R Outdated
filter = switch(method,
image = "bilinear",
label = "none")),
perm = rev(seq_len(length(axes))))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
perm = rev(seq_len(length(axes))))
perm = rev(seq_along(axes)))

Copy link
Copy Markdown
Collaborator Author

@Artur-man Artur-man May 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Hugo will do a quick search for seq_lens, after I resolve Helena's changes.

Comment thread R/sdArray.R Outdated
# downscale image
image_list <- list(image)
cur_image <- aperm(image,
perm = rev(seq_len(length(axes))))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
perm = rev(seq_len(length(axes))))
perm = rev(seq_along(axes)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Utilities for writing/updating SpatialData Zarr stores

4 participants