Skip to content

ome_zarr as an S4 class and extending ImageArray - #48

Open
Artur-man wants to merge 17 commits into
mainfrom
imagearray
Open

ome_zarr as an S4 class and extending ImageArray#48
Artur-man wants to merge 17 commits into
mainfrom
imagearray

Conversation

@Artur-man

@Artur-man Artur-man commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Supersedes #36.

Some notes:

  • ome_zarr converted to an S4 class (as per Switch ome_zarr class from S3 to S4 #36)
  • ome_zarr extends ImageArray (v1.1.7).
  • introduces a metadata slot for the ome_zarr class
  • converted S3 methods to S4
  • introduce new getter methods such as version, metadata

@Artur-man
Artur-man marked this pull request as draft August 7, 2026 20:30
@Artur-man
Artur-man marked this pull request as ready for review August 12, 2026 17:17
@Artur-man
Artur-man requested a review from Bisaloo August 12, 2026 17:17
Comment thread R/ome_read.R Outdated
Comment on lines +52 to +58
S4Vectors::new2(
"ome_zarr",
levels = S4Vectors:::new_SimpleList_from_list("ImageList", x),
scales = scales,
metadata = list(version = ome_version, type = type, dim_names = dim_names)
)
class(x) <- "ome_zarr"
attr(x, "type") <- type
attr(x, "version") <- ome_version
if (!is.null(dim_names)) {
attr(x, "dim_names") <- dim_names
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is inconsistent with the definition in AllClasses.R, isn't it?

Comment thread R/ome_read.R Outdated
Comment thread R/get_dim_names.R Outdated
Comment thread vignettes/romeo.rmd Outdated
Comment thread R/get_scales.R

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The function names are very confusing here. Can we do better than this?

@Artur-man Artur-man changed the title ome_zarr extending ImageArray ome_zarr as an S4 class and extending ImageArray Aug 19, 2026
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.

2 participants