Literature DB >> 35967929

Cell Layers: uncovering clustering structure in unsupervised single-cell transcriptomic analysis.

Andrew P Blair1, Robert K Hu2, Elie N Farah2, Neil C Chi2, Katherine S Pollard3, Pawel F Przytycki3, Irfan S Kathiriya3, Benoit G Bruneau3.   

Abstract

Motivation: Unsupervised clustering of single-cell transcriptomics is a powerful method for identifying cell populations. Static visualization techniques for single-cell clustering only display results for a single resolution parameter. Analysts will often evaluate more than one resolution parameter but then only report one.
Results: We developed Cell Layers, an interactive Sankey tool for the quantitative investigation of gene expression, co-expression, biological processes and cluster integrity across clustering resolutions. Cell Layers enhances the interpretability of single-cell clustering by linking molecular data and cluster evaluation metrics, providing novel insight into cell populations. Availability and implementation: https://github.com/apblair/CellLayers.
© The Author(s) 2022. Published by Oxford University Press.

Entities:  

Year:  2022        PMID: 35967929      PMCID: PMC9362878          DOI: 10.1093/bioadv/vbac051

Source DB:  PubMed          Journal:  Bioinform Adv        ISSN: 2635-0041


1 Introduction

Single-cell RNA sequencing (scRNA-seq) technology allows for the classification of heterogeneous cell populations. Interpreting scRNA-seq profiles requires clustering to group cells with similar transcriptional signatures (Hwang ). Clustering is commonly implemented with graph-based modularity optimization methods. The number of clusters and subsequent cell-type characterization typically depends on an algorithm’s optimization method and benefit function. For example, modularity is a benefit function used to optimize the measurement of inter and intra-cluster for community detection in graph-based scRNA-seq clustering. Modularity is subject to a resolution limit, described as the minimum community size detected by optimizing modularity (Fortunato and Barthelemy, 2006). As a result, the resolution parameter regulates the number of clusters, with low values producing a few large clusters and higher values creating many small clusters (Traag ). A primary hurdle lies in providing a quantitative representation and explanation of cell-type relationships in multi-resolution clustering. The Louvain algorithm is the basis for graph modularity optimization techniques. The method consists of a local moving and aggregation stage for finding a locally optimal solution for community detection (Blondel ). The Smart Local Moving (SLM) algorithm overcomes the Louvain local optimal solution limitation by allowing merged communities to split when beneficial (Waltman and van Eck, 2013). In scRNA-seq analysis, SLM normally operates on a shared nearest neighbor (SNN) graph that integrates similarity structure information (Zhu ). The most recent advancement to this approach is the Leiden algorithm, which solves the Louvain limitation of disconnected communities (Traag ). Future improvements to graph-based community detection that optimize modularity will benefit from data visualization techniques that evaluate the resolution parameter. Alternative tools for multi-resolution cluster analysis, such as the R library clustree (Zappia and Oshlack, 2018), construct a non-interactive hierarchical tree representation of how communities split at different clustering resolutions. A single arrow and color opacity represent cell movement across clustering as a proportion ratio, which can be thresholded to remove edges. An alternative visualization is a Sankey diagram, where the width of arrows is proportional to a flow rate that indicates an increase or decrease in values. Sankey plots are helpful in the investigation of microbial communities. For example, the Google Charts tool called BioSankey (Platzer ) allows users to visualize the expression of single genes or species. In single-cell analysis, Sankey plots are used to depict cell-to-cell communication interactions, as illustrated by Cell Chat (Zhang ). However, none of these tools allow analysts to interact with the diagrams directly, and they have limited functionality in terms of how gene expression is overlaid. We developed Cell Layers, an interactive data visualization tool for scRNA-seq multi-resolution cluster analysis. The output of Cell Layers is a Sankey network, and the network’s nodes are clusters. We call the edges between nodes the ‘flow’, which represents the transfer of cluster assignments of cells across a parameter grid search for clustering. Nodes can be colored by cluster evaluation metrics or biological activity. Similarly, edges can be colored by gene expression or co-expression. A ternary chart can also be used to interpret the co-expression of marker genes for each flow. The Sankey representation of multi-parameter clustering enables the rapid simultaneous evaluation of various resolutions for single-cell-type characterization. A Sankey network is an intuitive visualization for multi-resolution clustering because the representation demonstrates the total volume for the flow of cells. In addition, Cell Layers advances multi-resolution clustering for single-cell analysis by providing analysts with a web portable and Jupyter-enabled interactive application, integration with scikit-learn’s cluster evaluation performance metrics, a method for tracing stable cell communities across cluster parameters, marker gene analysis of cell communities between clusters and co-expression of marker genes.

2 Methods

2.1 Clustering strategies

In a typical scRNA-seq analysis, clustering methods operate on a cell-to-cell k-nearest neighbor (kNN) graph. In Cell Layers, the default construction of a kNN graph is based on the Euclidean distance of a user-defined PCA subspace (Blondel ). For modularity and hierarchical clustering methods, cells are then iteratively grouped to optimize a modularity function thresholded by a resolution parameter. Cell communities are numerically labeled, with lower numbers signifying larger clusters. The output of a multi-resolution analysis is a cell-by-resolution-parameter matrix, where values are the cluster assignments of cells at each clustering resolution.

2.2 Data input

Cell Layers requires as input (i) a cell-by-resolution-parameter matrix and (ii) the corresponding cell-by-gene expression matrix. While our examples illustrate the cluster parameter as a resolution value for modularity-based clustering techniques, Cell Layers is agnostic to the user-selected clustering method that has been utilized to generate these inputs. To provide options for generating these objects, Cell Layers includes an R library (SetupCellLayers) that generates a cell-by-resolution-parameter matrix from a scRNA-seq kNN graph using the popular Seurat SLM and SNN clustering methods.

2.3 Data representation

In Cell Layers, each column of nodes represents a community structure C,, where v represents clusters {0,1,.n} at resolution parameter j ∈ ℝ. The Sankey network’s columns are ordered by a linearly increasing cluster parameter specified by a user-defined range and increment q. Each column’s community structure C, is represented by nodes that are scaled by the cluster sample size and arranged to minimize edge overlap. The edges or ‘flow’ between clusters is computed as the number of cells from C, assigned to C,+. The data structure generated by Cell Layers is a directed acyclic graph.

2.4 Single-cell features

The flow may be painted by marker gene expression to facilitate cell-type characterization. Users can define several genes for their expression signature. To assess a single gene, each flow in the network is painted by the gene’s average expression for cells between C, and C,+ (Fig. 1A). Nodes may be painted by cluster metrics, gene ontology enrichment (Fig. 1B), or biological process activity (BPA). BPA uses the aREA method to transform gene expression levels using an ensemble of related genes to provide a robust representation of species-independent cellular states (Ding ).
Fig. 1.

Application of Cell Layers on PBMCs or iPSC-derived cardiomyocyte differentiation. All nodes are labeled by their resolution parameter followed by an underscore indicating their cluster assignment. (A) PBMC multi-resolution analysis from 0.1 to 0.5. Edges are painted by CD3E, a marker gene for CD8 T, Memory CD4 T and Naive CD4 T cells. Nodes are painted by normalized Silhouette score. The lower Silhouette values indicate that samples are near the decision boundary of neighboring clusters. (B) Nodes painted by enrichR gene ontology (GO) 2018 Biological Process combined scores for GO: 0002480. The node-hover template provides users cluster performance metrics, GO term title, enrichR combined score and the top five differentially expressed genes. Edges are colored by the natural killer (NK) cell marker gene CD8A. (C) Multi-resolution analysis from 0.1 to 0.5 and marker gene co-expression of a dataset from iPSC-derived cardiomyocytes (Kathiriya ). The (left) ternary chart depicts the gene expression percentiles (GEPs) for the co-expression of NPPA, MYH6 and TECRL. Each triangle on the outside of the ternary plot is oriented such that the base indicates increasing GEP. Each scatter point in the ternary chart specifies the co-expression of the genes (NPPA, TECRL and MYH6) as GEPs for a corresponding flow in the (right) Sankey plot. The size of a scatter point is a log2 transformation of the number of cells in its corresponding flow, then multiplied by a scalar value of two. The scatter point is generated by mapping each gene’s GEP. The Sankey nodes are painted by normalized Silhouette score, and edges are painted by the GEP of co-expressed NPPA, TECRL and MYH6

Application of Cell Layers on PBMCs or iPSC-derived cardiomyocyte differentiation. All nodes are labeled by their resolution parameter followed by an underscore indicating their cluster assignment. (A) PBMC multi-resolution analysis from 0.1 to 0.5. Edges are painted by CD3E, a marker gene for CD8 T, Memory CD4 T and Naive CD4 T cells. Nodes are painted by normalized Silhouette score. The lower Silhouette values indicate that samples are near the decision boundary of neighboring clusters. (B) Nodes painted by enrichR gene ontology (GO) 2018 Biological Process combined scores for GO: 0002480. The node-hover template provides users cluster performance metrics, GO term title, enrichR combined score and the top five differentially expressed genes. Edges are colored by the natural killer (NK) cell marker gene CD8A. (C) Multi-resolution analysis from 0.1 to 0.5 and marker gene co-expression of a dataset from iPSC-derived cardiomyocytes (Kathiriya ). The (left) ternary chart depicts the gene expression percentiles (GEPs) for the co-expression of NPPA, MYH6 and TECRL. Each triangle on the outside of the ternary plot is oriented such that the base indicates increasing GEP. Each scatter point in the ternary chart specifies the co-expression of the genes (NPPA, TECRL and MYH6) as GEPs for a corresponding flow in the (right) Sankey plot. The size of a scatter point is a log2 transformation of the number of cells in its corresponding flow, then multiplied by a scalar value of two. The scatter point is generated by mapping each gene’s GEP. The Sankey nodes are painted by normalized Silhouette score, and edges are painted by the GEP of co-expressed NPPA, TECRL and MYH6 Drop-down menus allow users to quickly switch between cluster evaluation metrics and BPA, which provide two orthogonal quantitative approaches for cell-type characterization. The first drop-down menu allows users to select a gene, dynamically updating the diagram’s flow and expression scale bar. The second drop-down menu allows the user to update node color by cluster metrics or BPA. Additional drop-down menus allow users to set node width and modify the network layout. Users may choose any Matplotlib colormap for painting the flow and nodes. The co-expression of marker genes characterizes many cell types. To evaluate the co-expression for a user-defined geneset E, which contains n={3} genes over a flow with m cells, we created a gene expression percentage (GEP) for each gene E. For a geneset E in a given flow, we calculate GEP as the ratio of the summed expression of a gene E, over the total expression of all genes E,: The GEPs for a geneset are then mapped to a red, green or blue (RGB) hex code using Matplotlib. A Plotly ternary chart depicts the percentage ratios of co-expressed genes for each flow (Fig. 1C). Each point in the ternary plot corresponds to a flow’s sample size and expression percentage.

2.5 Future directions

Cell Layers was built for versatility, and its application extends beyond the single-cell features outlined here. Node-hover templates may include cluster metadata, which users may use to assess batch composition or integration. Downstream of multi-resolution analysis, Cell Layers can be used to evaluate data imputation models by assessing cluster stability metrics. Multi-resolution marker gene detection methods may be devised using statistical methods, such as the Jaccard Index. Additionally, protein activity profile methods could be integrated to resolve tissue-specific clusters (Ding ).

2.6 Software availability

Cell Layers is incorporated in the JupyterLab computing environment. Plotly is open-source software for data analytics and visualization of data science models. We made significant adaptations to Plotly’s interactive Sankey and Ternary API for scRNA-seq multi-resolution cluster analysis. Cell Layers will be available via pip, GitHub, Docker and Singularity.

3 Conclusion

Clustering of scRNA-seq data is used to identify cell populations computationally. Analysts typically assess multiple cluster parameters, cluster performance metrics and marker genes before annotating clusters. Fixed dimensionality reduction methods for visualizing single-cell clustering are limited by the number of attributes that users can assess. Cell Layers enables analysts to efficiently utilize multi-resolution parameters to explore and characterize single-cell populations interactively.
  10 in total

1.  Resolution limit in community detection.

Authors:  Santo Fortunato; Marc Barthélemy
Journal:  Proc Natl Acad Sci U S A       Date:  2006-12-26       Impact factor: 11.205

2.  Single-Cell Clustering Based on Shared Nearest Neighbor and Graph Partitioning.

Authors:  Xiaoshu Zhu; Jie Zhang; Yunpei Xu; Jianxin Wang; Xiaoqing Peng; Hong-Dong Li
Journal:  Interdiscip Sci       Date:  2020-02-22       Impact factor: 2.233

3.  CellCall: integrating paired ligand-receptor and transcription factor activities for cell-cell communication.

Authors:  Yang Zhang; Tianyuan Liu; Xuesong Hu; Mei Wang; Jing Wang; Bohao Zou; Puwen Tan; Tianyu Cui; Yiying Dou; Lin Ning; Yan Huang; Shuan Rao; Dong Wang; Xiaoyang Zhao
Journal:  Nucleic Acids Res       Date:  2021-07-31       Impact factor: 16.971

4.  Clustering trees: a visualization for evaluating clusterings at multiple resolutions.

Authors:  Luke Zappia; Alicia Oshlack
Journal:  Gigascience       Date:  2018-07-01       Impact factor: 6.524

5.  Modeling Human TBX5 Haploinsufficiency Predicts Regulatory Networks for Congenital Heart Disease.

Authors:  Irfan S Kathiriya; Kavitha S Rao; Giovanni Iacono; W Patrick Devine; Andrew P Blair; Swetansu K Hota; Michael H Lai; Bayardo I Garay; Reuben Thomas; Henry Z Gong; Lauren K Wasson; Piyush Goyal; Tatyana Sukonnik; Kevin M Hu; Gunes A Akgun; Laure D Bernard; Brynn N Akerberg; Fei Gu; Kai Li; Matthew L Speir; Maximilian Haeussler; William T Pu; Joshua M Stuart; Christine E Seidman; J G Seidman; Holger Heyn; Benoit G Bruneau
Journal:  Dev Cell       Date:  2020-12-14       Impact factor: 12.270

6.  Quantitative assessment of protein activity in orphan tissues and single cells using the metaVIPER algorithm.

Authors:  Hongxu Ding; Eugene F Douglass; Adam M Sonabend; Angeliki Mela; Sayantan Bose; Christian Gonzalez; Peter D Canoll; Peter A Sims; Mariano J Alvarez; Andrea Califano
Journal:  Nat Commun       Date:  2018-04-16       Impact factor: 14.919

7.  From Louvain to Leiden: guaranteeing well-connected communities.

Authors:  V A Traag; L Waltman; N J van Eck
Journal:  Sci Rep       Date:  2019-03-26       Impact factor: 4.379

Review 8.  Single-cell RNA sequencing technologies and bioinformatics pipelines.

Authors:  Byungjin Hwang; Ji Hyun Lee; Duhee Bang
Journal:  Exp Mol Med       Date:  2018-08-07       Impact factor: 8.718

9.  BioSankey: Visualization of Microbial Communities Over Time.

Authors:  Alexander Platzer; Julia Polzin; Klaus Rembart; Ping Penny Han; Denise Rauer; Thomas Nussbaumer
Journal:  J Integr Bioinform       Date:  2018-06-13

10.  Biological process activity transformation of single cell gene expression for cross-species alignment.

Authors:  Hongxu Ding; Andrew Blair; Ying Yang; Joshua M Stuart
Journal:  Nat Commun       Date:  2019-10-25       Impact factor: 14.919

  10 in total

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