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/inst/NEWS b/inst/NEWS index c347c882..6e2ccb96 100644 --- a/inst/NEWS +++ b/inst/NEWS @@ -1,9 +1,14 @@ +changes 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 (#290) + 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) - + changes in version 0.99.46 - update installation instructions per Bioc acceptance 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