The muSpaData package includes datasets for use in the
DESpace package’s examples and vignettes.
It provides access to a publicly available Stereo-seq spatial dataset with complex experimental designs.
This dataset, containing multiple samples (e.g., serial sections)
measured under various experimental conditions (e.g., time points), is
formatted as SpatialExperiment (SPE) Bioconductor
objects.
The table below provides details about the available dataset, including its unique identifier (ID), description, source, and reference.
View details directly in R using ?ID (e.g.,
?Wei22_full).
| ID | Description | Availability | Reference |
|---|---|---|---|
Wei22_full |
Single-cell Stereo-seq spatial transcriptomics data includes axolotl brain tissues collected from multiple sections across various regeneration stages (16 samples in total) | Spatial Transcript Omics DataBase (STOmics DB) STDS0000056 | Wei et al. (2022) Singhal et al. (2024) |
Wei22_example |
A subset of the Wei22_full dataset, focusing on fewer genes and regeneration stages (6 samples in total) | Spatial Transcript Omics DataBase (STOmics DB) STDS0000056 | Wei et al. (2022) Singhal et al. (2024) |
After downloading the raw data from the original source, we merge samples across different time phases, perform quality control to filter low-quality genes and cells, and apply Banksy(Singhal et al. 2024) for multi-sample clustering and smoothing.
The finalized SPE objects are made available via Bioconductor’s ExperimentHub for easy access and reproducibility.
muSpaData is an R package available via Bioconductor repository for
packages. GitHub repository can be found here.
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("muSpaData")
## Check that you have a valid Bioconductor installation
BiocManager::valid()Then load packages:
All datasets in muSpaData can be loaded either through
named functions corresponding to the object names or via the
ExperimentHub interface.
Each SPE contains filtered counts in the assay slot,
with Banksy clusters stored in the Banksy and
Banksy_smoothed columns within the colData
slot.
## class: SpatialExperiment
## dim: 5000 55660
## metadata(0):
## assays(2): counts logcounts
## rownames(5000): AMEX60DD009830 AMEX60DD009962 ... AMEX60DD004094
## AMEX60DD054542
## rowData names(2): gene_name gene_id
## colnames(55660): CELL.17879.10DPI_1 CELL.17922.10DPI_1 ...
## CELL.9123.2DPI_2 CELL.9124.2DPI_2
## colData names(5): sample_id condition Banksy_smooth sdimx sdimy
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):
## spatialCoords names(2) : sdimx sdimy
## imgData names(1): sample_id
query via ExperimentHubFirst, initialize a Hub instance with ExperimentHub to
load all records into the variable eh.
Use query to identify muSpaData records and
their accession IDs (e.g., EH123), then load the data into R with
eh[[id]].
# Connect to ExperimentHub and create Hub instance
eh <- ExperimentHub()
(q <- query(eh, "muSpaData"))## ExperimentHub with 2 records
## # snapshotDate(): 2026-10-07
## # $dataprovider: Spatial Transcript Omics DataBase (STOmics DB)
## # $species: Ambystoma mexicanum
## # $rdataclass: SpatialExperiment
## # additional mcols(): taxonomyid, genome, description,
## # coordinate_1_based, maintainer, rdatadateadded, preparerclass, tags,
## # rdatapath, sourceurl, sourcetype
## # retrieve records with, e.g., 'object[["EH9612"]]'
##
## title
## EH9612 | Wei22_full
## EH9613 | Wei22_example
## class: SpatialExperiment
## dim: 13890 147432
## metadata(0):
## assays(2): counts logcounts
## rownames(13890): AMEX60DD000003 AMEX60DD000004 ... AMEX60DDU001041989
## AMEX60DDU001042129
## rowData names(2): gene_name gene_id
## colnames(147432): CELL.17879.10DPI_1 CELL.17922.10DPI_1 ...
## CELL.9330.5DPI_3 CELL.9331.5DPI_3
## colData names(5): sample_id condition Banksy_smooth sdimx sdimy
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):
## spatialCoords names(2) : sdimx sdimy
## imgData names(1): sample_id
## class: SpatialExperiment
## dim: 5000 55660
## metadata(0):
## assays(2): counts logcounts
## rownames(5000): AMEX60DD009830 AMEX60DD009962 ... AMEX60DD004094
## AMEX60DD054542
## rowData names(2): gene_name gene_id
## colnames(55660): CELL.17879.10DPI_1 CELL.17922.10DPI_1 ...
## CELL.9123.2DPI_2 CELL.9124.2DPI_2
## colData names(5): sample_id condition Banksy_smooth sdimx sdimy
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):
## spatialCoords names(2) : sdimx sdimy
## imgData names(1): sample_id
list/loadResourcesTo facilitate data discovery within muSpaData rather
than across all of ExperimentHub, available records can be viewed using
listResources.
To load a specific dataset or subset, use
loadResources.
## [1] "Wei22_full" "Wei22_example"
# load data using a character vector of metadata search terms
loadResources(eh, "muSpaData", c("example"))## [[1]]
## class: SpatialExperiment
## dim: 5000 55660
## metadata(0):
## assays(2): counts logcounts
## rownames(5000): AMEX60DD009830 AMEX60DD009962 ... AMEX60DD004094
## AMEX60DD054542
## rowData names(2): gene_name gene_id
## colnames(55660): CELL.17879.10DPI_1 CELL.17922.10DPI_1 ...
## CELL.9123.2DPI_2 CELL.9124.2DPI_2
## colData names(5): sample_id condition Banksy_smooth sdimx sdimy
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):
## spatialCoords names(2) : sdimx sdimy
## imgData names(1): sample_id
Since manual annotations are unavailable in the original dataset, we used Banksy (Singhal et al. 2024) to define spatial domains by jointly modeling multiple samples.
The Banksy spatial cluster assignments are available in the
colData().
# View LIBD layers for one sample
CD <- colData(spe) |> as.data.frame()
ggplot(CD,
aes(x=sdimx,y=sdimy,
color=factor(Banksy_smooth))) +
geom_point(size = 0.25) +
theme_void() +
theme(legend.position="bottom") +
facet_wrap(~ sample_id, scales = 'free') +
labs(color = "", title = paste0("Banksy spatial clusters"))## R version 4.6.1 (2026-06-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 26.04.1 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.32.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
## [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: Etc/UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats4 stats graphics grDevices utils datasets methods
## [8] base
##
## other attached packages:
## [1] SpatialExperiment_1.23.0 SingleCellExperiment_1.35.2
## [3] SummarizedExperiment_1.43.0 Biobase_2.73.2
## [5] GenomicRanges_1.65.4 Seqinfo_1.3.2
## [7] IRanges_2.47.5 S4Vectors_0.51.10
## [9] MatrixGenerics_1.25.0 matrixStats_1.5.0
## [11] ggplot2_4.0.3 muSpaData_1.5.0
## [13] ExperimentHub_3.3.2 AnnotationHub_4.3.2
## [15] BiocFileCache_3.3.0 dbplyr_2.6.0
## [17] BiocGenerics_0.59.12 generics_0.1.4
## [19] BiocStyle_2.41.0
##
## loaded via a namespace (and not attached):
## [1] KEGGREST_1.53.6 gtable_0.3.6 rjson_0.2.23
## [4] xfun_0.61 bslib_0.12.0 httr2_1.3.0
## [7] lattice_0.23-1 vctrs_0.7.3 tools_4.6.1
## [10] curl_8.0.0 tibble_3.3.1 AnnotationDbi_1.75.2
## [13] RSQLite_3.53.3 blob_1.3.0 pkgconfig_2.0.3
## [16] BiocBaseUtils_1.15.1 Matrix_1.7-6 RColorBrewer_1.1-3
## [19] S7_0.2.2 lifecycle_1.0.5 compiler_4.6.1
## [22] farver_2.1.2 Biostrings_2.81.9 htmltools_0.5.9
## [25] sys_3.4.3 buildtools_1.0.0 sass_0.4.10
## [28] yaml_2.3.12 pillar_1.11.1 crayon_1.5.3
## [31] jquerylib_0.1.4 DelayedArray_0.39.8 cachem_1.1.0
## [34] magick_2.9.1 abind_1.4-8 tidyselect_1.2.1
## [37] digest_0.6.39 purrr_1.2.2 dplyr_1.2.1
## [40] BiocVersion_3.24.0 labeling_0.4.3 maketools_1.3.2
## [43] fastmap_1.2.0 grid_4.6.1 SparseArray_1.13.4
## [46] cli_3.6.6 magrittr_2.0.5 S4Arrays_1.13.2
## [49] withr_3.0.3 filelock_1.0.3 scales_1.4.0
## [52] rappdirs_0.3.4 bit64_4.8.6 rmarkdown_2.32
## [55] XVector_0.53.0 httr_1.4.9 bit_4.6.0
## [58] png_0.1-9 memoise_2.0.1 evaluate_1.0.5
## [61] knitr_1.52 rlang_1.3.0 Rcpp_1.1.2
## [64] glue_1.8.1 DBI_1.3.0 BiocManager_1.30.27
## [67] jsonlite_2.0.0 R6_2.6.1