This package can be installed from Bioconductor with the following command:
if (!requireNamespace(BiocManager, quietly = TRUE)) install.packages("BiocManager")
BiocManager::install("SFEData")
library(SFEData)
Example spatial transcriptomics datasets with Simple Features annotations as SpatialFeatureExperiment
objects. These are the datasets available from this package and functions to download the datasets:
Visium:
McKellarMuscleData()
)McKellarMuscleData()
)sample_id
used for function examples involving multiple samples (McKellarMuscleData()
)Slide-seq2:
BiermannMelaMetasData()
)BiermannMelaMetasData()
)Xenium:
JanesickBreastData()
)CosMX:
HeNSCLCData()
)CosMXOutput()
)MERFISH:
VizgenLiverData()
)VizgenOutput()
)seqFISH:
LohoffGastrulationData()
)Xenium:
* Xenium output subset of mouse brain data (XeniumOutput()
)
This package is used extensively in examples and vignettes of the SpatialFeatureExperiment
and Voyager
packages. The same function is used for different samples from the same study, and the dataset
argument determines which sample is downloaded:
sfe <- McKellarMuscleData(dataset = "small")
#> see ?SFEData and browseVignettes('SFEData') for documentation
#> loading from cache
#> require("SpatialFeatureExperiment")
The outputs (in *Output()
) are not SFE objects, but a small subset in the format of the standard output of the technology, used to unit test read functions. Where the files are saved is controlled by the file_path
argument.
(fp <- CosMXOutput(file_path = "foo"))
#> see ?SFEData and browseVignettes('SFEData') for documentation
#> loading from cache
#> The downloaded files are in /home/biocbuild/bbs-3.20-data-experiment/tmpdir/Rtmpg50mSC/Rbuild15af9a412521a5/SFEData/vignettes/foo/cosmx
#> [1] "/home/biocbuild/bbs-3.20-data-experiment/tmpdir/Rtmpg50mSC/Rbuild15af9a412521a5/SFEData/vignettes/foo/cosmx"
unlink("foo", recursive = TRUE)
sessionInfo()
#> R version 4.4.2 (2024-10-31)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.1 LTS
#>
#> Matrix products: default
#> BLAS: /home/biocbuild/bbs-3.20-bioc/R/lib/libRblas.so
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.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] SpatialFeatureExperiment_1.8.4 SFEData_1.8.1
#> [3] BiocStyle_2.34.0
#>
#> loaded via a namespace (and not attached):
#> [1] wk_0.9.4 jsonlite_1.8.9
#> [3] magrittr_2.0.3 TH.data_1.1-2
#> [5] magick_2.8.5 rmarkdown_2.29
#> [7] zlibbioc_1.52.0 vctrs_0.6.5
#> [9] spdep_1.3-8 memoise_2.0.1
#> [11] DelayedMatrixStats_1.28.0 RCurl_1.98-1.16
#> [13] terra_1.8-5 htmltools_0.5.8.1
#> [15] S4Arrays_1.6.0 AnnotationHub_3.14.0
#> [17] curl_6.0.1 BiocNeighbors_2.0.1
#> [19] Rhdf5lib_1.28.0 s2_1.1.7
#> [21] LearnBayes_2.15.1 SparseArray_1.6.0
#> [23] rhdf5_2.50.1 sass_0.4.9
#> [25] spData_2.3.3 KernSmooth_2.23-24
#> [27] bslib_0.8.0 htmlwidgets_1.6.4
#> [29] sandwich_3.1-1 zoo_1.8-12
#> [31] cachem_1.1.0 mime_0.12
#> [33] lifecycle_1.0.4 pkgconfig_2.0.3
#> [35] Matrix_1.7-1 R6_2.5.1
#> [37] fastmap_1.2.0 GenomeInfoDbData_1.2.13
#> [39] MatrixGenerics_1.18.0 digest_0.6.37
#> [41] AnnotationDbi_1.68.0 S4Vectors_0.44.0
#> [43] dqrng_0.4.1 ExperimentHub_2.14.0
#> [45] GenomicRanges_1.58.0 RSQLite_2.3.9
#> [47] beachmat_2.22.0 filelock_1.0.3
#> [49] fansi_1.0.6 spatialreg_1.3-6
#> [51] httr_1.4.7 abind_1.4-8
#> [53] compiler_4.4.2 proxy_0.4-27
#> [55] bit64_4.5.2 withr_3.0.2
#> [57] tiff_0.1-12 BiocParallel_1.40.0
#> [59] DBI_1.2.3 HDF5Array_1.34.0
#> [61] R.utils_2.12.3 MASS_7.3-61
#> [63] rappdirs_0.3.3 DelayedArray_0.32.0
#> [65] rjson_0.2.23 classInt_0.4-10
#> [67] tools_4.4.2 units_0.8-5
#> [69] R.oo_1.27.0 glue_1.8.0
#> [71] nlme_3.1-166 EBImage_4.48.0
#> [73] rhdf5filters_1.18.0 grid_4.4.2
#> [75] sf_1.0-19 generics_0.1.3
#> [77] R.methodsS3_1.8.2 class_7.3-22
#> [79] data.table_1.16.4 sp_2.1-4
#> [81] utf8_1.2.4 XVector_0.46.0
#> [83] BiocGenerics_0.52.0 BiocVersion_3.20.0
#> [85] pillar_1.9.0 limma_3.62.1
#> [87] splines_4.4.2 dplyr_1.1.4
#> [89] BiocFileCache_2.14.0 lattice_0.22-6
#> [91] survival_3.7-0 bit_4.5.0.1
#> [93] deldir_2.0-4 tidyselect_1.2.1
#> [95] SingleCellExperiment_1.28.1 locfit_1.5-9.10
#> [97] Biostrings_2.74.1 scuttle_1.16.0
#> [99] sfheaders_0.4.4 knitr_1.49
#> [101] bookdown_0.41 IRanges_2.40.1
#> [103] edgeR_4.4.1 SummarizedExperiment_1.36.0
#> [105] stats4_4.4.2 xfun_0.49
#> [107] Biobase_2.66.0 statmod_1.5.0
#> [109] DropletUtils_1.26.0 matrixStats_1.4.1
#> [111] UCSC.utils_1.2.0 fftwtools_0.9-11
#> [113] yaml_2.3.10 boot_1.3-31
#> [115] evaluate_1.0.1 codetools_0.2-20
#> [117] tibble_3.2.1 BiocManager_1.30.25
#> [119] cli_3.6.3 jquerylib_0.1.4
#> [121] Rcpp_1.0.13-1 GenomeInfoDb_1.42.1
#> [123] zeallot_0.1.0 dbplyr_2.5.0
#> [125] coda_0.19-4.1 png_0.1-8
#> [127] parallel_4.4.2 blob_1.2.4
#> [129] jpeg_0.1-10 sparseMatrixStats_1.18.0
#> [131] bitops_1.0-9 SpatialExperiment_1.16.0
#> [133] mvtnorm_1.3-2 e1071_1.7-16
#> [135] purrr_1.0.2 crayon_1.5.3
#> [137] rlang_1.1.4 multcomp_1.4-26
#> [139] KEGGREST_1.46.0