Literature DB >> 35689177

spatialLIBD: an R/Bioconductor package to visualize spatially-resolved transcriptomics data.

Brenda Pardo1,2, Abby Spangler2, Lukas M Weber3, Stephanie C Page2, Stephanie C Hicks3, Andrew E Jaffe2, Keri Martinowich2, Kristen R Maynard2, Leonardo Collado-Torres4.   

Abstract

BACKGROUND: Spatially-resolved transcriptomics has now enabled the quantification of high-throughput and transcriptome-wide gene expression in intact tissue while also retaining the spatial coordinates. Incorporating the precise spatial mapping of gene activity advances our understanding of intact tissue-specific biological processes. In order to interpret these novel spatial data types, interactive visualization tools are necessary.
RESULTS: We describe spatialLIBD, an R/Bioconductor package to interactively explore spatially-resolved transcriptomics data generated with the 10x Genomics Visium platform. The package contains functions to interactively access, visualize, and inspect the observed spatial gene expression data and data-driven clusters identified with supervised or unsupervised analyses, either on the user's computer or through a web application.
CONCLUSIONS: spatialLIBD is available at https://bioconductor.org/packages/spatialLIBD . It is fully compatible with SpatialExperiment and the Bioconductor ecosystem. Its functionality facilitates analyzing and interactively exploring spatially-resolved data from the Visium platform.
© 2022. The Author(s).

Entities:  

Keywords:  10x Genomics Visium; Interactive visualization; Spatially-resolved transcriptomics

Mesh:

Year:  2022        PMID: 35689177      PMCID: PMC9188087          DOI: 10.1186/s12864-022-08601-w

Source DB:  PubMed          Journal:  BMC Genomics        ISSN: 1471-2164            Impact factor:   4.547


Background

The rise of spatially-resolved transcriptomics technologies [1, 2] is providing new opportunities to answer questions about the structure and function of complex intact tissues [3-5]. However, this exciting opportunity requires the development of new computational methods and interactive software. These tools have to accommodate the analysis of transcriptomic data with spatial coordinates and high resolution images into previously developed methods for single cell RNA-sequencing (scRNA-seq) analysis, which lacked these components. Currently there are limited options for interactive exploration of spatially-resolved transcriptomics data. The 10x Genomics Loupe Browser [6] utilizes a file created by the Space Ranger data pre-processing pipeline [6] and performs marker gene analysis, as well as unsupervised graph-based and k-means clustering. Loupe visualizes both the spatially-resolved transcriptomics data along with the high resolution imaging data to export gene expression maps. An alternative to Loupe is the Giotto pipeline [7], which contains both a data analysis and data visualization modules. The data analysis module has many functions ranging from pre-processing to more advanced analysis such as characterizing cell-cell interactions. The visualization module contains an interactive workspace for exploring multiple layers of information. However, Loupe and Giotto currently do not support visualizing more than one tissue section at a time, which is useful for comparing replicates and annotating observed spots on the Visium array across samples. Seurat [8] provides guidelines for processing and visualizing spatially-resolved transcriptomics data at https://satijalab.org/seurat/articles/spatial_vignette.html. Seurat [8] does not however provide interactive visualizations or the ability to create an interactive website. Furthermore, while unsupervised clustering methods are widely developed [9, 10], manual annotation of spots using known marker genes is important, as well as cross-sample dimension reduction techniques such as UMAP and t-SNE.

Implementation

spatialLIBD is an R/Bioconductor [11] package that provides functions to import output from Space Ranger [6] including clustering (k-means, graph-based) and dimension reduction results (PCA, UMAP, t-SNE), interactively visualize and explore spatially-resolved transcriptomics data, and provides functionality to manually annotate spots. It was developed initially for visualizing multiple Visium tissue sections from the human brain [4], yet it is flexible enough to be used with other Visium data from different tissue types (Supplementary File 1, Fig. 1A).
Fig. 1

Overview of spatialLIBD: A Using spatially-resolved transcriptomics data generated with the Visium platform and processed with spaceranger, both from 10x Genomics, spatialLIBD leverages the R/Bioconductor ecosystem and presents an alternative for interactive visualization to Loupe Browser. BspatialLIBD supports static data visualizations of both continuous and categorical measurements along with the histology images, as well as visualizing results from downstream analyses. CspatialLIBD supports interactive websites for exploring the data powered by shiny and plotly

Overview of spatialLIBD: A Using spatially-resolved transcriptomics data generated with the Visium platform and processed with spaceranger, both from 10x Genomics, spatialLIBD leverages the R/Bioconductor ecosystem and presents an alternative for interactive visualization to Loupe Browser. BspatialLIBD supports static data visualizations of both continuous and categorical measurements along with the histology images, as well as visualizing results from downstream analyses. CspatialLIBD supports interactive websites for exploring the data powered by shiny and plotly The primary functions in spatialLIBD allow users (i) to visualize the spot-level spatial gene expression data or any other continuous variable, and data-driven clusters or any categorical variable, with the histology image in the background (Fig. 1B), and (ii) to inspect the data interactively, either on the user’s computer or through web hosting services such as shinyapps.io [12] (Fig. 1C). In addition, spatialLIBD enables users to visualize multiple samples at the same time, to export all static visualizations as PDF files or all interactive visualizations as PNG files, as well as all result tables as CSV files. Additional file 1 shows how to read in data processed with Space Ranger [6] into R, make plots or create an interactive website with spatialLIBD. Additional file 2 illustrates how spatialLIBD can be used to visualize clustering results derived from multiple samples as well as other continuous covariates, using a human brain dataset with twelve samples [4]. In particular, clusters derived from all samples facilitate their interpretation since cluster numbers (and thus their meaning) will be the same across all samples. The companion interactive website for this dataset is available at http://spatial.libd.org/spatialLIBD. Additional file 1 shows the steps necessary to make your own interactive website, such as https://libd.shinyapps.io/spatialLIBD_Human_Lymph_Node_10x/. spatialLIBD has evolved over time and now provides features that further facilitate the visual inspection of the results. These include nine color scales, including colorblind-friendly scales as well as the option to reverse the color scale gradient order (Fig. 2A). The transparency of the spots can be controlled as well. Multiple images are supported and can be edited on the web application to increase brightness or perform other image manipulations that can reveal hidden patterns to the eye (Fig. 2B). Side by side plots of the images and the clusters or gene expression data can also be generated.
Fig. 2

Enhanced visualization spatialLIBD features: Using the example spatialLIBD web application from https://libd.shinyapps.io/spatialLIBD_Human_Lymph_Node_10x/ we illustrate some recent enhancements. The data is from the human lymph node example dataset by 10x Genomics. A Expression of the POLR2A gene with a point size of 2.25 and using the reversed magma colorblind-friendly continuous scale: low values are in white. There are nine color scales options and each can be reversed. The transparency of the spots can be controlled as well. B A side-by-side view of the histology and the graph-based clusters produced by Space Ranger. The original lowres image from Space Ranger has been edited with spatialLIBD: enhance, normalize, equalize, transparent color pink, and transparent fuzz 40

Enhanced visualization spatialLIBD features: Using the example spatialLIBD web application from https://libd.shinyapps.io/spatialLIBD_Human_Lymph_Node_10x/ we illustrate some recent enhancements. The data is from the human lymph node example dataset by 10x Genomics. A Expression of the POLR2A gene with a point size of 2.25 and using the reversed magma colorblind-friendly continuous scale: low values are in white. There are nine color scales options and each can be reversed. The transparency of the spots can be controlled as well. B A side-by-side view of the histology and the graph-based clusters produced by Space Ranger. The original lowres image from Space Ranger has been edited with spatialLIBD: enhance, normalize, equalize, transparent color pink, and transparent fuzz 40 spatialLIBD is designed to work with SpatialExperiment R/Bioconductor objects [13]. It uses shiny [14] and plotly [15] for the interactive website, ggplot2 [16] and cowplot [17] for the static images. Interactive image editing is powered by magick [18]. Colorblind-friendly colors are provided by viridis [19].

Discussion

spatialLIBD benefits from the open-source Bioconductor ecosystem [11] and relies on the infrastructure provided by SpatialExperiment [13]. It provides user-friendly functionality for visualizing continuous and categorical measurements along with the tissue images from spatially-resolved transcriptomics data from projects involving one or more samples measured on the 10x Genomics Visium platform. Since spatialLIBD is compatible with SpatialExperiment, spatialLIBD could be used for other spatially-resolved transcriptomic platforms as they become better supported by SpatialExperiment. spatialLIBD provides a simple interactive website, which can be used for sharing data on the web, as well as manually annotating spots. spatialLIBD has limitations (Additional file 1) that are inherent to the methods used to implement it, such as (i) the memory per user required by a server for hosting the web application, (ii) response speeds for the interactive views due to the number of spots, (iii) the resolution of the images displayed limiting the usefulness to magnify specific spots, and (iv) customization of the web application by the end user. Despite these limitations, open-source software solutions like spatialLIBD enable faster data exploration and insights in spatially-resolved transcriptomics research projects [4] and can serve as a testing ground for ideas. While some visualization software alternatives do not provide visualizations across multiple samples, static visualizations of multiple samples can be combined using R packages such as cowplot or patchwork or interactive versions using plotly, which is how spatialLIBD was implemented. As spatially-resolved transcriptomics becomes more widely available [20], new methods are being implemented in other languages, such as Python. One such example is squidpy [21], which is currently limited to one Visium sample as noted at https://github.com/theislab/squidpy/issues/417. squidpy does provide exciting and powerful features, and bridges the R and Python worlds.

Conclusion

spatialLIBD is fully integrated with the R/Bioconductor open source ecosystem and is available at https://bioconductor.org/packages/spatialLIBD. It provides user-friendly functionality for importing results from the 10x Genomics Space Ranger pipeline for processing spatially-resolved transcriptomics data from Visium. spatialLIBD provides different options for visualizing and interactively exploring the data from multiple Visium capture areas, and can create websites that can be self-hosted such as http://spatial.libd.org/spatialLIBD/ or hosted at shinyapps.io such as the example website https://libd.shinyapps.io/spatialLIBD_Human_Lymph_Node_10x/.

Availability and requirements

Project name:spatialLIBD: an R/Bioconductor package to visualize spatially-resolved transcriptomics data Project home page: https://bioconductor.org/packages/spatialLIBD Operating system(s): Platform independent Programming language: R Other requirements: Bioconductor version 3.13 or newer to access the latest features License: Artistic-2.0 Any restrictions to use by non-academics: none Additional file 1 Using spatialLIBD with 10x Genomics public datasets. Vignette document showing a detailed tutorial on how to use public 10x Genomics Visium data and visualize it using spatialLIBD. Additional file 2 Visualizing multiple samples with spatialLIBD. R code and resulting PDF files for visualizing across all 12 human brain samples from Maynard et al [4] (a) clusters derived from a shared-nearest neighbor (k = 50) that was computed using the genomic data from all samples, (b) the percent of mitochondrial expression which has a spatial distribution that matches the cortical layers, and (c) the expression of MOBP which is higher in the white matter than other layers [4].
  12 in total

1.  Spatial transcriptomics: putting genome-wide expression on the map.

Authors:  K R Maynard; A E Jaffe; K Martinowich
Journal:  Neuropsychopharmacology       Date:  2020-01       Impact factor: 7.853

Review 2.  Orchestrating high-throughput genomic analysis with Bioconductor.

Authors:  Wolfgang Huber; Vincent J Carey; Robert Gentleman; Simon Anders; Marc Carlson; Benilton S Carvalho; Hector Corrada Bravo; Sean Davis; Laurent Gatto; Thomas Girke; Raphael Gottardo; Florian Hahne; Kasper D Hansen; Rafael A Irizarry; Michael Lawrence; Michael I Love; James MacDonald; Valerie Obenchain; Andrzej K Oleś; Hervé Pagès; Alejandro Reyes; Paul Shannon; Gordon K Smyth; Dan Tenenbaum; Levi Waldron; Martin Morgan
Journal:  Nat Methods       Date:  2015-02       Impact factor: 28.547

3.  Visualization and analysis of gene expression in tissue sections by spatial transcriptomics.

Authors:  Patrik L Ståhl; Fredrik Salmén; Sanja Vickovic; Anna Lundmark; José Fernández Navarro; Jens Magnusson; Stefania Giacomello; Michaela Asp; Jakub O Westholm; Mikael Huss; Annelie Mollbrink; Sten Linnarsson; Simone Codeluppi; Åke Borg; Fredrik Pontén; Paul Igor Costea; Pelin Sahlén; Jan Mulder; Olaf Bergmann; Joakim Lundeberg; Jonas Frisén
Journal:  Science       Date:  2016-07-01       Impact factor: 47.728

4.  Spatial transcriptomics at subspot resolution with BayesSpace.

Authors:  Edward Zhao; Matthew R Stone; Xing Ren; Jamie Guenthoer; Kimberly S Smythe; Thomas Pulliam; Stephen R Williams; Cedric R Uytingco; Sarah E B Taylor; Paul Nghiem; Jason H Bielas; Raphael Gottardo
Journal:  Nat Biotechnol       Date:  2021-06-03       Impact factor: 54.908

Review 5.  Museum of spatial transcriptomics.

Authors:  Lambda Moses; Lior Pachter
Journal:  Nat Methods       Date:  2022-03-10       Impact factor: 28.547

6.  Transcriptome-scale spatial gene expression in the human dorsolateral prefrontal cortex.

Authors:  Kristen R Maynard; Leonardo Collado-Torres; Lukas M Weber; Cedric Uytingco; Brianna K Barry; Stephen R Williams; Joseph L Catallini; Matthew N Tran; Zachary Besich; Madhavi Tippani; Jennifer Chew; Yifeng Yin; Joel E Kleinman; Thomas M Hyde; Nikhil Rao; Stephanie C Hicks; Keri Martinowich; Andrew E Jaffe
Journal:  Nat Neurosci       Date:  2021-02-08       Impact factor: 24.884

7.  Deep learning and alignment of spatially resolved single-cell transcriptomes with Tangram.

Authors:  Tommaso Biancalani; Gabriele Scalia; Lorenzo Buffoni; Raghav Avasthi; Ziqing Lu; Aman Sanger; Neriman Tokcan; Charles R Vanderburg; Åsa Segerstolpe; Meng Zhang; Inbal Avraham-Davidi; Sanja Vickovic; Mor Nitzan; Sai Ma; Ayshwarya Subramanian; Michal Lipinski; Jason Buenrostro; Nik Bear Brown; Duccio Fanelli; Xiaowei Zhuang; Evan Z Macosko; Aviv Regev
Journal:  Nat Methods       Date:  2021-10-28       Impact factor: 28.547

8.  Spatial transcriptome profiling by MERFISH reveals subcellular RNA compartmentalization and cell cycle-dependent gene expression.

Authors:  Chenglong Xia; Jean Fan; George Emanuel; Junjie Hao; Xiaowei Zhuang
Journal:  Proc Natl Acad Sci U S A       Date:  2019-09-09       Impact factor: 11.205

9.  Giotto: a toolbox for integrative analysis and visualization of spatial expression data.

Authors:  Ruben Dries; Qian Zhu; Rui Dong; Chee-Huat Linus Eng; Huipeng Li; Kan Liu; Yuntian Fu; Tianxiao Zhao; Arpan Sarkar; Feng Bao; Rani E George; Nico Pierson; Long Cai; Guo-Cheng Yuan
Journal:  Genome Biol       Date:  2021-03-08       Impact factor: 17.906

10.  Squidpy: a scalable framework for spatial omics analysis.

Authors:  Giovanni Palla; Hannah Spitzer; Michal Klein; David Fischer; Anna Christina Schaar; Louis Benedikt Kuemmerle; Sergei Rybakov; Ignacio L Ibarra; Olle Holmberg; Isaac Virshup; Mohammad Lotfollahi; Sabrina Richter; Fabian J Theis
Journal:  Nat Methods       Date:  2022-01-31       Impact factor: 28.547

View more
  2 in total

1.  Astrocytes and oligodendrocytes undergo subtype-specific transcriptional changes in Alzheimer's disease.

Authors:  Jessica S Sadick; Michael R O'Dea; Philip Hasel; Taitea Dykstra; Arline Faustin; Shane A Liddelow
Journal:  Neuron       Date:  2022-04-04       Impact factor: 18.688

2.  SpatialExperiment: infrastructure for spatially resolved transcriptomics data in R using Bioconductor.

Authors:  Dario Righelli; Lukas M Weber; Helena L Crowell; Brenda Pardo; Leonardo Collado-Torres; Shila Ghazanfar; Aaron T L Lun; Stephanie C Hicks; Davide Risso
Journal:  Bioinformatics       Date:  2022-04-28       Impact factor: 6.931

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.