spatialdataR provides an R interface to Python's spatialdata framework.
It enables the representation, handling, and integration of diverse spatial omics datasets
using the OME-NGFF (Next Generation File Format) standard.
For more details on the framework, see Marconato et al. (2024).
SpatialDatasets.ZarrArray (via the Rarr package).SingleCellExperiment objects, integrated via anndataR.The package is available through Bioconductor:
if (!requireNamespace("BiocManager", quietly=TRUE))
install.packages("BiocManager")
BiocManager::install("spatialdataR")
library(spatialdataR)
zs <- system.file("extdata", "blobs.zarr", package="spatialdataR")
(sd <- readSpatialData(zs))
class: SpatialData
- images(2):
- blobs_image (3,64,64)
- blobs_multiscale_image (3,64,64)
- labels(2):
- blobs_labels (64,64)
- blobs_multiscale_labels (64,64)
- points(1):
- blobs_points (200)
- shapes(3):
- blobs_circles (5,circle)
- blobs_multipolygons (2,polygon)
- blobs_polygons (5,polygon)
- tables(1):
- table (3,10) [blobs_labels]
coordinate systems(5):
- global(8): blobs_image
blobs_multiscale_image ... blobs_polygons
blobs_points
- scale(1): blobs_labels
- translation(1): blobs_labels
- affine(1): blobs_labels
- sequence(1): blobs_labels
Past and current contributors include (in alphabetical order): Vince Carey, Helena L. Crowell, Louise Deconinck, Yixing E. Dong, Hugo Gruson, Samuel Gunz, Artür Manukyan, Dario Righelli, Charlotte Soneson, Michael Stadler.