scBubbletree: computational approach for visualization of single cell RNA-seq data

Simo Kitanovski, Yingying Cao, Dimitris Ttoouli, Farnoush Farahpour, Jun Wang, Daniel HoffmannBMC 2024

Abstract

To facilitate coherent quantification and visualization of scRNA-seq data we developed the R-package scBubbletree, which is freely available as part of the Bioconductor repository at: https://bioconductor.org/packages/scBubbletree/.

Introduction

Single-cell RNA sequencing (scRNA-seq) has revolutionized our understanding of cellular heterogeneity by enabling the analysis of hundreds of thousands to millions of individual cells. However, standard visualization workflows—typically involving dimensionality reduction via UMAP or t-SNE—struggle with scalability. As datasets grow, these "hairball" scatterplots suffer from overplotting, where dense populations obscure boundaries; distance distortion, where global relationships are sacrificed for local neighbors; and a lack of quantitative clarity.

To address these challenges, we introduce scBubbletree, an R package that represents cell clusters as "bubbles" organized on a hierarchical tree. This approach preserves quantitative transcriptional distances and allows for the direct integration of complex biological metadata.

Methodology

The scBubbletree pipeline transforms high-dimensional single-cell data into a structured, quantitative "bubble tree" through a four-step process:

  1. Resolution Determination: The tool utilizes the Gap statistic and Gini impurity (Weighted Gini Index, WGI) to guide users in selecting the optimal number of clusters ($k$), preventing over-fragmentation.
  2. Clustering: The pipeline is algorithm-agnostic, supporting established methods like Louvain, Leiden, or k-means, or allowing users to import pre-defined clusters.
  3. Hierarchical Grouping: A bootstrapped average linkage approach builds a dendrogram in low-dimensional space (e.g., PCA). Branch lengths in this tree represent actual transcriptional similarity.
  4. Visualization: The final "bubbletree" represents each cluster as a bubble with a radius proportional to the cell count. This format supports "stacking"—the alignment of heatmaps or violin plots directly adjacent to the tree for integrated analysis.
The scBubbletree workflow and validation on a 5-cell-line mixture.

Results and Validation

The effectiveness of scBubbletree was validated across three datasets of increasing complexity:

  • Lung Cancer Cell Lines (Dataset A): A mixture of 3,918 cells from five known human lung cancer cell lines served as a ground truth check. scBubbletree accurately recovered the five distinct populations and correctly identified that the HCC827 and H1975 lines were transcriptomically more similar than others.
  • PBMC Dataset (Dataset B): Analysis of 161,764 peripheral blood mononuclear cells demonstrated the tool's ability to handle complex primary tissue data.
  • Mouse Brain Dataset: A stress test involving over 1.3 million cells showcased the tool's scalability. While traditional UMAP produced an uninterpretable blob, scBubbletree provided a clear hierarchical overview of the brain's cellular architecture.

Key Insights

  • Abstraction over Individual Points: By treating clusters as bubbles, scBubbletree eliminates overplotting, allowing researchers to view the "forest" of the dataset without losing the "leaves."
  • Preservation of Global Distances: Unlike non-linear techniques like UMAP, which can "hallucinate" sub-clusters or distort long-range distances, scBubbletree's use of linear PCA distances in the hierarchy ensures that the tree structure reflects true biological similarity.
  • Coherent Metadata Stacking: The fixed vertical axis of the tree allows for the seamless alignment of multiple data types (e.g., cell labels, marker gene expression), facilitating intuitive interpretation of cluster identities.

Conclusion and Future Work

scBubbletree offers a scalable, quantitative alternative to traditional scatterplots for scRNA-seq data. While the method requires some biological intuition to select the appropriate clustering resolution, it significantly improves the interpretability of massive datasets. Future developments will focus on extending the "stacking" capabilities to multiomics data, including simultaneous protein expression and methylation levels.

R Package Availability: scBubbletree on Bioconductor

Summary updated

BibTeX
@inproceedings{kitanovski2024scbubbletree,
  author = {Simo Kitanovski and Yingying Cao and Dimitris Ttoouli and Farnoush Farahpour and Jun Wang and Daniel Hoffmann},
  title = {{scBubbletree: computational approach for visualization of single cell RNA-seq data}},
  booktitle = {BMC},
  year = {2024},
  doi = {10.1186/s12859-024-05927-y},
}
Figure