55library(ggplot2 )
66library(patchwork )
77library(ggnewscale )
8- library(SpatialData )
8+ library(spatialdataR )
99library(SpatialData.data )
1010library(SpatialData.plot )
1111library(SingleCellExperiment )
1212```
1313
1414## Introduction
1515
16- The ` SpatialData ` package contains a set of reader and plotting
17- functions for spatial omics data stored as
16+ The ` SpatialData.plot ` package contains a set of plotting functions for
17+ spatial omics data stored as
1818[ SpatialData] ( https://spatialdata.scverse.org/en/latest/index.html )
1919` .zarr ` files that follow [ OME-NGFF
2020specs] ( https://ngff.openmicroscopy.org/latest/#image-layout ) .
@@ -24,21 +24,21 @@ shapes, points, and tables. Each layer may contain an arbitrary number
2424of elements.
2525
2626Images and labels are represented as ` ZarrArray ` s
27- (* [ Rarr] ( https://bioconductor.org/packages/3.23 /Rarr ) * ). Points and
27+ (* [ Rarr] ( https://bioconductor.org/packages/3.24 /Rarr ) * ). Points and
2828shapes are represented as
2929* [ arrow] ( https://CRAN.R-project.org/package=arrow ) * objects linked to an
3030on-disk * .parquet* file. As such, all data are represented out of
3131memory.
3232
3333Element annotation as well as cross-layer summarizations (e.g., count
3434matrices) are represented as
35- * [ SingleCellExperiment] ( https://bioconductor.org/packages/3.23 /SingleCellExperiment ) *
35+ * [ SingleCellExperiment] ( https://bioconductor.org/packages/3.24 /SingleCellExperiment ) *
3636as tables.
3737
3838``` r
3939
4040x <- file.path(" extdata" , " blobs.zarr" )
41- x <- system.file(x , package = " SpatialData " )
41+ x <- system.file(x , package = " spatialdataR " )
4242(x <- readSpatialData(x ))
4343```
4444
@@ -221,13 +221,13 @@ pa <- get_demo_SDdata("merfish")
221221 ## - single_molecule (3714642)
222222 ## - shapes(2):
223223 ## - anatomical (6,polygon)
224- ## - cells (2389 ,circle)
224+ ## - cells (2388 ,circle)
225225 ## - tables(1):
226226 ## - table (268,2389) [cells]
227227 ## coordinate systems(1):
228228 ## - global(4): rasterized anatomical cells single_molecule
229229
230- There are only 2389 cells, but 3,714,642 molecules, so that we
230+ There are only 2388 cells, but 3,714,642 molecules, so that we
231231downsample a random subset of 1,000 for visualization:
232232
233233``` r
@@ -283,7 +283,7 @@ Colorectal carcinoma, 25 MB; no shapes, no points.
283283 ## - points(0):
284284 ## - shapes(0):
285285 ## - tables(1):
286- ## - table (36,3309) []
286+ ## - table (36,3309) [point8_labels,point16_labels,point23_labels ]
287287 ## coordinate systems(3):
288288 ## - point16(2): point16_image point16_labels
289289 ## - point23(2): point23_image point23_labels
@@ -311,7 +311,7 @@ plotSpatialData() + plotImage(y)
311311
312312## Session info
313313
314- ## R version 4.6.0 ( 2026-04-24 )
314+ ## R Under development (unstable) ( 2026-06-05 r90111 )
315315 ## Platform: x86_64-pc-linux-gnu
316316 ## Running under: Ubuntu 24.04.4 LTS
317317 ##
@@ -333,50 +333,46 @@ plotSpatialData() + plotImage(y)
333333 ## [8] base
334334 ##
335335 ## other attached packages:
336- ## [1] SingleCellExperiment_1.34.0 SummarizedExperiment_1.42 .0
337- ## [3] Biobase_2.72.0 GenomicRanges_1.64 .0
338- ## [5] Seqinfo_1.2 .0 IRanges_2.46.0
339- ## [7] S4Vectors_0.50.0 BiocGenerics_0.58.0
340- ## [9] generics_0.1.4 MatrixGenerics_1.24 .0
341- ## [11] matrixStats_1.5.0 SpatialData.plot_0.99.6
342- ## [13] SpatialData.data_0.99.6 SpatialData_0 .99.35
336+ ## [1] SingleCellExperiment_1.35.1 SummarizedExperiment_1.43 .0
337+ ## [3] Biobase_2.73.1 GenomicRanges_1.65 .0
338+ ## [5] Seqinfo_1.3 .0 IRanges_2.47.2
339+ ## [7] S4Vectors_0.51.3 BiocGenerics_0.59.7
340+ ## [9] generics_0.1.4 MatrixGenerics_1.25 .0
341+ ## [11] matrixStats_1.5.0 SpatialData.plot_0.99.7
342+ ## [13] SpatialData.data_0.99.6 spatialdataR_0 .99.43
343343 ## [15] ggnewscale_0.5.2 patchwork_1.3.2
344- ## [17] ggplot2_4.0.3 BiocStyle_2.40 .0
344+ ## [17] ggplot2_4.0.3 BiocStyle_2.41 .0
345345 ##
346346 ## loaded via a namespace (and not attached):
347- ## [1] DBI_1.3.0 bitops_1.0-9 RBGL_1.88.0
348- ## [4] httr2_1.2.2 anndataR_1.2.0 rlang_1.2.0
349- ## [7] magrittr_2.0.5 Rarr_2.0.0 RSQLite_2.4.6
350- ## [10] e1071_1.7-17 compiler_4.6.0 dir.expiry_1.20.0
351- ## [13] paws.storage_0.9.0 png_0.1-9 systemfonts_1.3.2
352- ## [16] fftwtools_0.9-11 vctrs_0.7.3 pkgconfig_2.0.3
353- ## [19] wk_0.9.5 crayon_1.5.3 fastmap_1.2.0
354- ## [22] dbplyr_2.5.2 XVector_0.52.0 labeling_0.4.3
355- ## [25] paws.common_0.8.9 rmarkdown_2.31 graph_1.90.0
356- ## [28] ragg_1.5.2 bit_4.6.0 purrr_1.2.2
357- ## [31] xfun_0.57 cachem_1.1.0 jsonlite_2.0.0
358- ## [34] blob_1.3.0 DelayedArray_0.38.1 uuid_1.2-2
359- ## [37] tweenr_2.0.3 jpeg_0.1-11 tiff_0.1-12
360- ## [40] parallel_4.6.0 R6_2.6.1 bslib_0.10.0
361- ## [43] RColorBrewer_1.1-3 reticulate_1.46.0 jquerylib_0.1.4
362- ## [46] assertthat_0.2.1 Rcpp_1.1.1-1.1 bookdown_0.46
363- ## [49] knitr_1.51 R.utils_2.13.0 Matrix_1.7-5
364- ## [52] tidyselect_1.2.1 duckspatial_1.0.0 abind_1.4-8
365- ## [55] yaml_2.3.12 EBImage_4.54.0 curl_7.1.0
366- ## [58] lattice_0.22-9 tibble_3.3.1 withr_3.0.2
367- ## [61] S7_0.2.2 evaluate_1.0.5 desc_1.4.3
368- ## [64] sf_1.1-1 BiocFileCache_3.2.0 units_1.0-1
369- ## [67] proxy_0.4-29 polyclip_1.10-7 pillar_1.11.1
370- ## [70] BiocManager_1.30.27 filelock_1.0.3 KernSmooth_2.23-26
371- ## [73] RCurl_1.98-1.18 nanoarrow_0.8.0 scales_1.4.0
372- ## [76] class_7.3-23 glue_1.8.1 tools_4.6.0
373- ## [79] locfit_1.5-9.12 fs_2.1.0 grid_4.6.0
374- ## [82] duckdb_1.5.2 basilisk_1.24.0 ggforce_0.5.0
375- ## [85] cli_3.6.6 rappdirs_0.3.4 textshaping_1.0.5
376- ## [88] S4Arrays_1.12.0 arrow_24.0.0 dplyr_1.2.1
377- ## [91] geoarrow_0.4.2 gtable_0.3.6 R.methodsS3_1.8.2
378- ## [94] sass_0.4.10 digest_0.6.39 classInt_0.4-11
379- ## [97] SparseArray_1.12.2 ZarrArray_1.0.0 htmlwidgets_1.6.4
380- ## [100] farver_2.1.2 memoise_2.0.1 htmltools_0.5.9
381- ## [103] pkgdown_2.2.0 R.oo_1.27.1 lifecycle_1.0.5
382- ## [106] bit64_4.8.0 MASS_7.3-65
347+ ## [1] DBI_1.3.0 RBGL_1.89.0 httr2_1.2.2
348+ ## [4] anndataR_1.3.0 rlang_1.2.0 magrittr_2.0.5
349+ ## [7] Rarr_2.0.1 otel_0.2.0 RSQLite_3.53.1
350+ ## [10] e1071_1.7-17 compiler_4.7.0 dir.expiry_1.21.0
351+ ## [13] paws.storage_0.10.0 png_0.1-9 systemfonts_1.3.2
352+ ## [16] vctrs_0.7.3 pkgconfig_2.0.3 wk_0.9.5
353+ ## [19] crayon_1.5.3 fastmap_1.2.0 dbplyr_2.5.2
354+ ## [22] XVector_0.53.0 labeling_0.4.3 paws.common_0.8.9
355+ ## [25] rmarkdown_2.31 graph_1.91.0 ragg_1.5.2
356+ ## [28] bit_4.6.0 purrr_1.2.2 xfun_0.58
357+ ## [31] cachem_1.1.0 jsonlite_2.0.0 blob_1.3.0
358+ ## [34] DelayedArray_0.39.3 uuid_1.2-2 tweenr_2.0.3
359+ ## [37] parallel_4.7.0 R6_2.6.1 bslib_0.11.0
360+ ## [40] RColorBrewer_1.1-3 reticulate_1.46.0 jquerylib_0.1.4
361+ ## [43] Rcpp_1.1.1-1.1 bookdown_0.46 knitr_1.51
362+ ## [46] R.utils_2.13.0 Matrix_1.7-5 tidyselect_1.2.1
363+ ## [49] duckspatial_1.1.1 abind_1.4-8 yaml_2.3.12
364+ ## [52] curl_7.1.0 lattice_0.22-9 tibble_3.3.1
365+ ## [55] withr_3.0.2 S7_0.2.2 evaluate_1.0.5
366+ ## [58] desc_1.4.3 sf_1.1-1 BiocFileCache_3.3.0
367+ ## [61] units_1.0-1 proxy_0.4-29 polyclip_1.10-7
368+ ## [64] pillar_1.11.1 BiocManager_1.30.27 filelock_1.0.3
369+ ## [67] KernSmooth_2.23-26 scales_1.4.0 class_7.3-23
370+ ## [70] glue_1.8.1 tools_4.7.0 fs_2.1.0
371+ ## [73] grid_4.7.0 basilisk_1.25.0 duckdb_1.5.2
372+ ## [76] ggforce_0.5.0 cli_3.6.6 rappdirs_0.3.4
373+ ## [79] textshaping_1.0.5 S4Arrays_1.13.0 dplyr_1.2.1
374+ ## [82] gtable_0.3.6 R.methodsS3_1.8.2 sass_0.4.10
375+ ## [85] digest_0.6.39 classInt_0.4-11 SparseArray_1.13.2
376+ ## [88] ZarrArray_1.1.0 farver_2.1.2 memoise_2.0.1
377+ ## [91] htmltools_0.5.9 pkgdown_2.2.0 R.oo_1.27.1
378+ ## [94] lifecycle_1.0.5 bit64_4.8.2 MASS_7.3-65
0 commit comments