From 28ca08ea4528c8c8c8f9209fcf29b3e47e1bc42f Mon Sep 17 00:00:00 2001 From: Artur-man Date: Tue, 10 Nov 2026 11:36:32 +0100 Subject: [PATCH 1/5] add `backed=TRUE` to anndata read_zarr --- R/read.R | 2 +- tests/testthat/test-mask.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/read.R b/R/read.R index 4d201050..5d2d70d6 100644 --- a/R/read.R +++ b/R/read.R @@ -110,7 +110,7 @@ readShape <- function(x, ...) { #' @importFrom Rarr read_zarr_attributes readTable <- function(x) { suppressWarnings({ # suppress warnings related to hidden files - sce <- anndataR::read_zarr(x, as="SingleCellExperiment") + sce <- anndataR::read_zarr(x, as="SingleCellExperiment", backed = TRUE) }) # move these to 'int_metadata' nm <- "spatialdata_attrs" diff --git a/tests/testthat/test-mask.R b/tests/testthat/test-mask.R index 7c0ca116..f5c8d75e 100644 --- a/tests/testthat/test-mask.R +++ b/tests/testthat/test-mask.R @@ -42,10 +42,10 @@ test_that("mask,sdImage,sdLabel", { expect_silent(z <- mask(x, i, j, how="mean")) expect_identical(y, z) - # check against original + # check against original (convert to in-memory sparse matrix before) y <- mask(x, i, j, how="sum") expect_equal( - unname(assay(tables(x)[[1]])), + unname(as(assay(tables(x)[[1]]), "dgCMatrix")), unname(assay(tables(y)[[2]]))) # no matching scale From 66da56ad2efc16af06a60c208760f42e32f1ada8 Mon Sep 17 00:00:00 2001 From: Artur-man Date: Sun, 15 Nov 2026 10:06:44 +0100 Subject: [PATCH 2/5] update news --- inst/NEWS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/NEWS b/inst/NEWS index c347c882..1da5ce94 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -3,6 +3,8 @@ changes in version 0.99.47 - support 'affine' coordinate transformations for point/shape elements via 'duckspatial::ST_affine' (#276) - added 'version()' to retrieve format versions of SpatialData elements (#288) +- Now using `backed=TRUE` argument internally in `anndataR::read_zarr` + to read `table` elements as Zarr-backed SingleCellExperiment objects. changes in version 0.99.46 From d6c6df7ee33d07c8fa5045c83c468359e90ec481 Mon Sep 17 00:00:00 2001 From: Artur-man Date: Sun, 15 Nov 2026 10:12:32 +0100 Subject: [PATCH 3/5] fix NEWS --- inst/NEWS | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inst/NEWS b/inst/NEWS index 1da5ce94..d3a419e8 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -1,11 +1,14 @@ -changes in version 0.99.47 +change in devel -- support 'affine' coordinate transformations for - point/shape elements via 'duckspatial::ST_affine' (#276) - added 'version()' to retrieve format versions of SpatialData elements (#288) - Now using `backed=TRUE` argument internally in `anndataR::read_zarr` to read `table` elements as Zarr-backed SingleCellExperiment objects. +changes in version 0.99.47 + +- support 'affine' coordinate transformations for + point/shape elements via 'duckspatial::ST_affine' (#276) + changes in version 0.99.46 - update installation instructions per Bioc acceptance From b68e9dbc6589eaa83608699e8fae9359adf24c2e Mon Sep 17 00:00:00 2001 From: Artur-man Date: Sun, 15 Nov 2026 10:16:07 +0100 Subject: [PATCH 4/5] fix --- inst/NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/NEWS b/inst/NEWS index d3a419e8..df998d9e 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -2,7 +2,7 @@ change in devel - added 'version()' to retrieve format versions of SpatialData elements (#288) - Now using `backed=TRUE` argument internally in `anndataR::read_zarr` - to read `table` elements as Zarr-backed SingleCellExperiment objects. + to read `table` elements as Zarr-backed SingleCellExperiment objects (#290) changes in version 0.99.47 From 5625f3d18bc2cebb1220b4d9dd320f6078ae320c Mon Sep 17 00:00:00 2001 From: Artur-man Date: Sun, 15 Nov 2026 10:17:03 +0100 Subject: [PATCH 5/5] fix --- inst/NEWS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/NEWS b/inst/NEWS index df998d9e..6e2ccb96 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -1,4 +1,4 @@ -change in devel +changes in devel - added 'version()' to retrieve format versions of SpatialData elements (#288) - Now using `backed=TRUE` argument internally in `anndataR::read_zarr`