Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/read.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-mask.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading