SpatialData.dataSpatialData.data 1.0.0
SpatialData.data package provides utilities for accessing, reading and generating SpatialData datasets. Data from a variety
of spatial omics technologies has been made available as SpatialData (zipped) .zarr stores.
These scverse SpatialData examples are available through sources
You can install SpatialData.data using:
if(!requireNamespace("spatialdataR"))
BiocManager::install("spatialdataR")
if(!requireNamespace("SpatialData.data"))
BiocManager::install("SpatialData.data")
You can also install the development version like so:
if(!requireNamespace("pak"))
install.packages("pak")
pak::pak("HelenaLC/SpatialData.data")
To interrogate our S3 bucket you will need paws.storage installed.
library(spatialdataR)
library(SpatialData.data)
library(paws.storage)
Sys.setenv(AWS_REGION = "us-east-1")
Any SpatialData dataset can be retrieved (once) into some location, and read into R.
(x <- SD.data_load("ColorectalCarcinomaMIBITOF"))
## class: SpatialData
## - images(3): point16_image point23_image point8_image
## - labels(3): point16_labels point23_labels point8_labels
## - tables(1):
## - table (36,3309) [point8_labels,point16_labels,point23_labels]
## coordinate systems(3):
## - point16(2): point16_image point16_labels
## - point23(2): point23_image point23_labels
## - point8(2): point8_image point8_labels
You can also install the same data from different sources, including the scverse’s spatialdata sandbox where SpatialData stores are saved as Zarr v3.
(x <- SD.data_load("ColorectalCarcinomaMIBITOF", src ="sandbox"))
## class: SpatialData
## - images(3): point16_image point23_image point8_image
## - labels(3): point16_labels point23_labels point8_labels
## - tables(1):
## - table (36,3309) [point8_labels,point16_labels,point23_labels]
## coordinate systems(3):
## - point16(2): point16_image point16_labels
## - point23(2): point23_image point23_labels
## - point8(2): point8_image point8_labels
We can check all available datasets and their sources with:
SD.data_list()
## [1] "MouseIntestineVisHD" "MouseBrainVisHD"
## [3] "MouseBrainVis" "LungAdenocarcinomaMCMICRO"
## [5] "MouseBrainMERFISH" "MouseLiverMERFISH"
## [7] "ColorectalCarcinomaMIBITOF" "MulticancerSteinbock"
## [9] "JanesickBreastVisiumEnh" "JanesickBreastXeniumRep1"
## [11] "JanesickBreastXeniumRep2" "HumanLungMulti_10x"
## [13] "SpaceMHelaniH3T3"
or as below for a detailed overview and metadata on all datasets:
View(SD.data_list(metadata = TRUE))
You can also interrogate the sources (S3 buckets) for available (zipped) .zarr archives:
SD.data_available("biocOSN")
## [1] "HuLungXenmulti.zip"
## [2] "mcmicro_io.zip"
## [3] "merfish.zarr.zip"
## [4] "mibitof.zip"
## [5] "steinbock_io.zip"
## [6] "visium_associated_xenium_io_aligned.zip"
## [7] "visium_hd_3.0.0_io.zip"
## [8] "xenium_rep1_io_aligned.zip"
## [9] "xenium_rep2_io_aligned.zip"
## R version 4.6.1 (2026-06-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.5 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.24-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0 LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB LC_COLLATE=C
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## time zone: America/New_York
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] paws.storage_0.11.0 SpatialData.data_1.0.0 spatialdataR_1.0.0
## [4] BiocStyle_2.42.0
##
## loaded via a namespace (and not attached):
## [1] tidyselect_1.2.1 grumpy_0.2.0
## [3] dplyr_1.2.1 blob_1.3.0
## [5] filelock_1.0.3 R.utils_2.13.0
## [7] fastmap_1.2.0 SingleCellExperiment_1.36.0
## [9] BiocFileCache_3.4.0 digest_0.6.39
## [11] lifecycle_1.0.5 sf_1.1-3
## [13] RSQLite_3.53.3 magrittr_2.0.5
## [15] compiler_4.6.1 rlang_1.3.0
## [17] sass_0.5.0 tools_4.6.1
## [19] yaml_2.3.12 knitr_1.52
## [21] S4Arrays_1.14.0 bit_4.6.0
## [23] classInt_0.4-11 curl_8.2.0
## [25] reticulate_1.47.0 DelayedArray_0.40.0
## [27] xml2_1.6.0 abind_1.4-8
## [29] KernSmooth_2.23-27 withr_3.0.3
## [31] purrr_1.2.2 BiocGenerics_0.60.0
## [33] R.oo_1.27.1 grid_4.6.1
## [35] stats4_4.6.1 e1071_1.7-17
## [37] progressr_1.1.0 SummarizedExperiment_1.44.0
## [39] cli_3.6.6 rmarkdown_2.32
## [41] crayon_1.5.3 generics_0.1.4
## [43] otel_0.3.0 DBI_1.3.0
## [45] cachem_1.1.0 proxy_0.4-29
## [47] BiocManager_1.30.27 XVector_0.54.0
## [49] matrixStats_1.5.0 vctrs_0.7.3
## [51] Matrix_1.7-6 jsonlite_2.0.0
## [53] bookdown_0.48 IRanges_2.48.0
## [55] S4Vectors_0.52.0 bit64_4.8.6
## [57] RBGL_1.90.0 jquerylib_0.1.4
## [59] units_1.0-1 glue_1.8.1
## [61] ZarrArray_1.2.0 Rarr_2.2.0
## [63] GenomicRanges_1.66.0 tibble_3.3.1
## [65] pillar_1.11.1 htmltools_0.5.9
## [67] Seqinfo_1.4.0 graph_1.92.0
## [69] R6_2.6.1 dbplyr_2.6.0
## [71] httr2_1.3.0 evaluate_1.0.5
## [73] lattice_0.23-1 Biobase_2.74.0
## [75] R.methodsS3_1.8.2 png_0.1-9
## [77] duckspatial_1.4.0 memoise_2.0.1
## [79] paws.common_0.9.0 bslib_0.12.0
## [81] class_7.3-24 Rcpp_1.1.2
## [83] SparseArray_1.14.0 anndataR_1.4.0
## [85] xfun_0.62 MatrixGenerics_1.26.0
## [87] pkgconfig_2.0.3