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 /tmp/Rtmpsoia88/Rbuild1fe4ea4601b718/SFEData/vignettes/foo/cosmx
#> [1] "/tmp/Rtmpsoia88/Rbuild1fe4ea4601b718/SFEData/vignettes/foo/cosmx"
unlink("foo", recursive = TRUE)
sessionInfo()
#> R Under development (unstable) (2024-10-21 r87258)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.1 LTS
#>
#> Matrix products: default
#> BLAS: /home/biocbuild/bbs-3.21-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.7.4 SFEData_1.7.0
#> [3] BiocStyle_2.33.1
#>
#> loaded via a namespace (and not attached):
#> [1] jsonlite_1.8.9 wk_0.9.4
#> [3] magrittr_2.0.3 magick_2.8.5
#> [5] rmarkdown_2.28 zlibbioc_1.51.2
#> [7] vctrs_0.6.5 spdep_1.3-6
#> [9] memoise_2.0.1 DelayedMatrixStats_1.27.3
#> [11] RCurl_1.98-1.16 terra_1.7-83
#> [13] htmltools_0.5.8.1 S4Arrays_1.5.11
#> [15] AnnotationHub_3.13.3 curl_5.2.3
#> [17] BiocNeighbors_1.99.3 Rhdf5lib_1.27.0
#> [19] s2_1.1.7 SparseArray_1.5.45
#> [21] rhdf5_2.49.0 sass_0.4.9
#> [23] spData_2.3.3 KernSmooth_2.23-24
#> [25] bslib_0.8.0 htmlwidgets_1.6.4
#> [27] cachem_1.1.0 mime_0.12
#> [29] lifecycle_1.0.4 pkgconfig_2.0.3
#> [31] Matrix_1.7-1 R6_2.5.1
#> [33] fastmap_1.2.0 GenomeInfoDbData_1.2.13
#> [35] MatrixGenerics_1.17.1 digest_0.6.37
#> [37] AnnotationDbi_1.67.0 S4Vectors_0.43.2
#> [39] dqrng_0.4.1 ExperimentHub_2.13.1
#> [41] GenomicRanges_1.57.2 RSQLite_2.3.7
#> [43] beachmat_2.21.9 filelock_1.0.3
#> [45] fansi_1.0.6 httr_1.4.7
#> [47] abind_1.4-8 compiler_4.5.0
#> [49] proxy_0.4-27 bit64_4.5.2
#> [51] withr_3.0.1 tiff_0.1-12
#> [53] BiocParallel_1.39.0 DBI_1.2.3
#> [55] HDF5Array_1.33.8 R.utils_2.12.3
#> [57] rappdirs_0.3.3 DelayedArray_0.31.14
#> [59] rjson_0.2.23 classInt_0.4-10
#> [61] tools_4.5.0 units_0.8-5
#> [63] R.oo_1.26.0 glue_1.8.0
#> [65] EBImage_4.47.1 rhdf5filters_1.17.0
#> [67] grid_4.5.0 sf_1.0-18
#> [69] generics_0.1.3 R.methodsS3_1.8.2
#> [71] class_7.3-22 data.table_1.16.2
#> [73] sp_2.1-4 utf8_1.2.4
#> [75] XVector_0.45.0 BiocGenerics_0.51.3
#> [77] BiocVersion_3.20.0 pillar_1.9.0
#> [79] limma_3.61.12 dplyr_1.1.4
#> [81] BiocFileCache_2.13.2 lattice_0.22-6
#> [83] bit_4.5.0 deldir_2.0-4
#> [85] tidyselect_1.2.1 SingleCellExperiment_1.27.2
#> [87] locfit_1.5-9.10 Biostrings_2.73.2
#> [89] scuttle_1.15.4 sfheaders_0.4.4
#> [91] knitr_1.48 bookdown_0.41
#> [93] IRanges_2.39.2 edgeR_4.3.21
#> [95] SummarizedExperiment_1.35.5 stats4_4.5.0
#> [97] xfun_0.48 Biobase_2.65.1
#> [99] statmod_1.5.0 DropletUtils_1.25.2
#> [101] matrixStats_1.4.1 UCSC.utils_1.1.0
#> [103] fftwtools_0.9-11 yaml_2.3.10
#> [105] boot_1.3-31 evaluate_1.0.1
#> [107] codetools_0.2-20 tibble_3.2.1
#> [109] BiocManager_1.30.25 cli_3.6.3
#> [111] jquerylib_0.1.4 Rcpp_1.0.13
#> [113] GenomeInfoDb_1.41.2 zeallot_0.1.0
#> [115] dbplyr_2.5.0 png_0.1-8
#> [117] parallel_4.5.0 blob_1.2.4
#> [119] jpeg_0.1-10 sparseMatrixStats_1.17.2
#> [121] bitops_1.0-9 SpatialExperiment_1.15.1
#> [123] e1071_1.7-16 purrr_1.0.2
#> [125] crayon_1.5.3 rlang_1.1.4
#> [127] KEGGREST_1.45.1