Contents

1 Installation

This package can be installed from Bioconductor with the following command:

if (!requireNamespace(BiocManager, quietly = TRUE)) install.packages("BiocManager")
BiocManager::install("SFEData")

2 Usage

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:

Slide-seq2:

Xenium:

CosMX:

MERFISH:

seqFISH:

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")
sessionInfo()
#> R version 4.3.1 (2023-06-16)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 22.04.3 LTS
#> 
#> Matrix products: default
#> BLAS:   /home/biocbuild/bbs-3.18-bioc/R/lib/libRblas.so 
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.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] IRanges_2.36.0                 GenomicRanges_1.54.0          
#> [3] Matrix_1.6-1.1                 SummarizedExperiment_1.32.0   
#> [5] S4Vectors_0.40.0               SpatialFeatureExperiment_1.4.0
#> [7] SFEData_1.4.0                  BiocStyle_2.30.0              
#> 
#> loaded via a namespace (and not attached):
#>   [1] DBI_1.1.3                     bitops_1.0-7                 
#>   [3] deldir_1.0-9                  s2_1.1.4                     
#>   [5] rlang_1.1.1                   magrittr_2.0.3               
#>   [7] matrixStats_1.0.0             e1071_1.7-13                 
#>   [9] compiler_4.3.1                RSQLite_2.3.1                
#>  [11] png_0.1-8                     vctrs_0.6.4                  
#>  [13] wk_0.9.0                      pkgconfig_2.0.3              
#>  [15] SpatialExperiment_1.12.0      crayon_1.5.2                 
#>  [17] fastmap_1.1.1                 dbplyr_2.3.4                 
#>  [19] magick_2.8.1                  XVector_0.42.0               
#>  [21] ellipsis_0.3.2                utf8_1.2.4                   
#>  [23] promises_1.2.1                rmarkdown_2.25               
#>  [25] purrr_1.0.2                   bit_4.0.5                    
#>  [27] xfun_0.40                     zlibbioc_1.48.0              
#>  [29] cachem_1.0.8                  GenomeInfoDb_1.38.0          
#>  [31] jsonlite_1.8.7                blob_1.2.4                   
#>  [33] later_1.3.1                   DelayedArray_0.28.0          
#>  [35] BiocParallel_1.36.0           interactiveDisplayBase_1.40.0
#>  [37] terra_1.7-55                  parallel_4.3.1               
#>  [39] R6_2.5.1                      bslib_0.5.1                  
#>  [41] boot_1.3-28.1                 jquerylib_0.1.4              
#>  [43] Rcpp_1.0.11                   bookdown_0.36                
#>  [45] knitr_1.44                    httpuv_1.6.12                
#>  [47] tidyselect_1.2.0              abind_1.4-5                  
#>  [49] yaml_2.3.7                    codetools_0.2-19             
#>  [51] curl_5.1.0                    lattice_0.22-5               
#>  [53] tibble_3.2.1                  Biobase_2.62.0               
#>  [55] shiny_1.7.5.1                 withr_2.5.1                  
#>  [57] KEGGREST_1.42.0               evaluate_0.22                
#>  [59] sf_1.0-14                     units_0.8-4                  
#>  [61] spData_2.3.0                  proxy_0.4-27                 
#>  [63] BiocFileCache_2.10.0          ExperimentHub_2.10.0         
#>  [65] Biostrings_2.70.1             pillar_1.9.0                 
#>  [67] BiocManager_1.30.22           filelock_1.0.2               
#>  [69] MatrixGenerics_1.14.0         KernSmooth_2.23-22           
#>  [71] stats4_4.3.1                  generics_0.1.3               
#>  [73] sp_2.1-1                      RCurl_1.98-1.12              
#>  [75] BiocVersion_3.18.0            xtable_1.8-4                 
#>  [77] class_7.3-22                  glue_1.6.2                   
#>  [79] tools_4.3.1                   AnnotationHub_3.10.0         
#>  [81] BiocNeighbors_1.20.0          grid_4.3.1                   
#>  [83] spdep_1.2-8                   AnnotationDbi_1.64.0         
#>  [85] SingleCellExperiment_1.24.0   GenomeInfoDbData_1.2.11      
#>  [87] cli_3.6.1                     rappdirs_0.3.3               
#>  [89] fansi_1.0.5                   S4Arrays_1.2.0               
#>  [91] dplyr_1.1.3                   sass_0.4.7                   
#>  [93] digest_0.6.33                 BiocGenerics_0.48.0          
#>  [95] classInt_0.4-10               SparseArray_1.2.0            
#>  [97] rjson_0.2.21                  memoise_2.0.1                
#>  [99] htmltools_0.5.6.1             lifecycle_1.0.3              
#> [101] httr_1.4.7                    mime_0.12                    
#> [103] bit64_4.0.5