Skip to contents

In this article, we’ll demonstrate how to load Slide-Seq data with semla. First, we need to load a Seurat object with Slide-Seq data. Here we’ll use a prepared Seurat object that can be install with the SeuratData R package.

See ?ReadSlideSeq for more information on how to load raw data.

slide_seq <- LoadData("ssHippo")

Next, we can convert the Seurat object to make it compatible with semla using the UpdateSeuratForSemla function. Note that the Slide-Seq data doesn’t contain H&E images and therefore, all image related functionality of semla will be inaccessible. This includes the Feature Viewer and image alignment tools which requires H&E images to work.

slide_seq_semla <- UpdateSeuratForSemla(slide_seq)

Now we can use visualization functions from semla on our Slide-Seq data.

MapFeatures(slide_seq_semla, features = "nFeature_Spatial", colors = viridis::magma(n = 11, direction = -1)) & ThemeLegendRight()

Zoom in on Dentate gyrus:

MapFeatures(slide_seq_semla, features = "PROX1", colors = viridis::magma(n = 11, direction = -1),
            crop_area = c(0.35, 0.45, 0.7, 0.7)) & 
  ThemeLegendRight() &
  ggtitle("PROX1 expression in the Dentate Gyrus", subtitle = "")



Package versions
  • semla: 1.3.1
Session info
## R version 4.3.3 (2024-02-29)
## Platform: aarch64-apple-darwin20.0.0 (64-bit)
## Running under: macOS 15.3
## 
## Matrix products: default
## BLAS/LAPACK: /Users/javierescudero/miniconda3/envs/r-semla/lib/libopenblas.0.dylib;  LAPACK version 3.12.0
## 
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
## 
## time zone: Europe/Stockholm
## tzcode source: internal
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## loaded via a namespace (and not attached):
##  [1] digest_0.6.34     desc_1.4.3        R6_2.5.1          fastmap_1.1.1    
##  [5] xfun_0.42         magrittr_2.0.3    cachem_1.0.8      knitr_1.45       
##  [9] memoise_2.0.1     htmltools_0.5.7   rmarkdown_2.26    lifecycle_1.0.4  
## [13] cli_3.6.2         vctrs_0.6.5       sass_0.4.8        pkgdown_2.0.7    
## [17] textshaping_0.3.7 jquerylib_0.1.4   systemfonts_1.0.5 compiler_4.3.3   
## [21] purrr_1.0.2       rstudioapi_0.15.0 tools_4.3.3       ragg_1.3.3       
## [25] bslib_0.6.1       evaluate_0.23     yaml_2.3.8        jsonlite_1.8.8   
## [29] rlang_1.1.3       fs_1.6.3