Abstract
Recent advancements in both single-cell RNA-sequencing technology and computational resources facilitate the study of cell types on global populations. Up to millions of cells can now be sequenced in one experiment; thus, accurate and efficient computational methods are needed to provide clustering and post-analysis of assigning putative and rare cell types. Here, we present a novel unsupervised deep learning clustering framework that is robust and highly scalable. To overcome the high level of noise, scAIDE first incorporates an autoencoder-imputation network with a distance-preserved embedding network (AIDE) to learn a good representation of data, and then applies a random projection hashing based k-means algorithm to accommodate the detection of rare cell types. We analyzed a 1.3 million neural cell dataset within 30 min, obtaining 64 clusters which were mapped to 19 putative cell types. In particular, we further identified three different neural stem cell developmental trajectories in these clusters. We also classified two subpopulations of malignant cells in a small glioblastoma dataset using scAIDE. We anticipate that scAIDE would provide a more in-depth understanding of cell development and diseases.
INTRODUCTION
The advancement in single-cell RNA-sequencing technology has grown exponentially in terms of sample sizes and accuracy (1–3). Identifying different cell types and sub-types remains one of the initial core analysis in single-cell data, prior to further downstream analysis. As the amount of data increases, we can gain a more holistic view of the identity and functionality of each cell. With recent large-scale pilot studies such as the Human Cell Atlas (4), unsupervised scalable and accurate computational approaches are essential for identifying different cell types.
Although many different computational methods have been developed to cluster and classify single-cell datasets, there is a trade-off between computational time and accuracy. Briefly, classification approaches are fast in analysis (provided that the model has been trained) with relatively reliable accuracy. However, such methods (5–7) require prior knowledge and labeled datasets for training (8). On the other hand, most clustering methods follow the pipeline of (i) clustering into groups, (ii) identify significantly expressed genes and (iii) manually validate marker genes with cell types. In general, there are three main categories of clustering methods. Traditional methods, including SC3, pcaReduce, Seurat, SIMLR and various others, rely on conventional dimensionality reduction methods such as PCA or t-SNE and then apply k-means or graph-based clustering to identify clusters (9–13). Secondly, iterative methods such as BackSPIN, SAIC and Panoview (14–16), attempt to provide a hierarchical structure over the identified cell clusters. More recent studies focus on developing deep learning methods to model the dropout events and provide nonlinear dimensionality reduction to represent single-cell datasets better (17–20). Despite the efforts in developing efficient and complex models, the clustering performance can be severely affected by hyper-parameters and varies accordingly in different datasets (21).
Identifying rare cell types is important in dissecting the cellular heterogeneity in global cell population. Recent methods, including RaceID, CellSIUS and GiniClust3, utilize clustering steps followed by an assignment step to identify rare cell types (22–25). In particular, CellSIUS first partitions the cells into coarse clusters and then identifies rare cell subpopulations based on correlated genes sets with respect to each subpopulation. The benefit of CellSIUS is that upregulated genes sets could be obtained for the identified cell types. Another recent method, FiRE (26), developed an algorithmic approach by directly assigning a rareness score to each cell without clustering.
In this manuscript, we propose a fully unsupervised deep learning clustering analysis framework, scAIDE (Figure 1A). First, we implemented an autoencoder-imputed distance-preserved embedding network (AIDE) to obtain a good representation of single-cell data which separates different cell types well. Subsequently, to identify small or rare cell types as well as common cell types, we developed a random projection hashing based k-means algorithm (RPH-kmeans). We can also automatically detect the number of clusters based on RPH-kmeans. Moreover, we provide a systematic biological analysis on the annotation of cell types. The performance and stability of scAIDE are extensively compared to existing state-of-the-art methods on seven single-cell datasets across different sequencing protocols. We further applied our clustering framework to analyze cell subpopulations in a small tumor dataset, a 68k peripheral blood mononuclear cells (PBMC), and finally, a 1.3 million neural dataset (27). We were able to identify small distinct cell populations, such as Cajal-Retzius cells (accounting for about 1.6% of the total population, expressing Reln and Tbr1), which are important to modulate early cortical patterning (28). In general, scAIDE is a scalable and efficient clustering framework which is consistent when applied to different single-cell datasets.
MATERIALS AND METHODS
Overview of scAIDE
There are two main components in scAIDE, namely AIDE for dimensionality reduction and RPH-kmeans for clustering, as shown in Figure 1A. Subsequently, we developed a general pipeline to provide biological analysis using marker genes and visualization of possible cell type development based on AIDE embedding.
Most clustering methods include a variable gene selection process to reduce the matrix to a reasonable size. However, to retain most information, we believe that the full gene expression should be used with minimal pre-processing (Supplementary Note VI and Table S25). We first filtered cells and genes with a minimum count of 1, followed by cell normalization and log transformation used in Scanpy and Seurat (11,29). As a result, most of the datasets contained about 10 000–20 000 genes after pre-processing (Table 1).
Table 1.
Datasets | No. of cells | No. of genes used | No. of cell types | Group size (min, max) | Technology (reads/cell) |
---|---|---|---|---|---|
Brain 1.3m | 1 300 774 | 23 909 | - | - | 10× V2 (18 500) |
Mouse brain | 160 796 | 20 803 | 7 | (1826, 74 539) | 10× V1 |
PBMC 68k | 68 579 | 20 387 | 10 | (176, 21 429) | 10× V1 (20 000) |
PBMC 4k | 4271 | 16 653 | 8 | (135, 1292) | 10× V2 (87 000) |
Mouse bladder | 2746 | 19 771 | 16 | (13, 717) | Microwell-seq |
Mouse retina | 27 499 | 13 166 | 19 | (48, 10 888) | Drop-seq (8200) |
Mouse ES | 2717 | 24 047 | 4 | (303, 933) | Droplet-based |
Worm neuron | 4186 | 13 488 | 10 | (70, 1015) | sci-RNA-seq |
Jurkat 293T cells | 1580 | 1000 | 2 | (40, 1540) | 10× |
MGH107 (WHO II) | 252 | 23 686 | 3 | (4, 98) | Smart-seq2 |
Simulation datasets | 5000 | 10 000 | 10 | Approx. (68, 1099) |
Autoencoder-imputed distance-preserved embedding (AIDE)
The architecture of AIDE consists of an imputation module and a dimension reduction module, as shown in Figure 1A. In the imputation module, the gene expression vector is fed to an autoencoder (AE) to correct biological noise such as dropout events. As AE captures the important latent structure of the data in the hidden layer and learns to regenerate the data, it is a natural extension that we can recover an imputed expression vector. We also added dropout layers in AE to avoid overfitting. Considering that the hidden vectors produced by simple AE may not be suitable for Euclidean-based clustering methods (e.g., k-means), we developed a fully connected network called multidimensional scaling (MDS) encoder in the dimension reduction module. The MDS encoder represents the dissimilarity/distance between the imputed expression vectors (produced by AE) as the Euclidean distance between projected points in a low-dimensional space. This matches with our latter developed random projection hashing based clustering algorithm which is also Euclidean-based.
Specifically, let be the dataset with denoting the gene expression vector of cell i, G denotes the number of genes and denotes all the cell pairs. The reconstruction loss of AE is defined as:
where is also a G-dimensional vector with imputed gene expression, and denotes the learnable weights of the AE, . MDS (30) is a dimension reduction technique that preserves the dissimilarity/distance between pairs of objects. Here, we developed a neural network adaption of MDS to generate a low-dimensional representation of by preserving the dissimilarity between . The corresponding loss is defined as follows:
where is a d-dimensional vector , and is the learnable weight of MDS encoder, denotes a specific dissimilarity/distance metric in the space of the imputed gene expression, and we used the Euclidean distance in this paper:.
The training of AIDE can be divided into two stages: pre-training and joint tuning. In the pre-training stage, parameters of AE are optimized by minimizing . In the joint tuning phase, both the AE and MDS encoder are trained by minimizing
where is the coefficient that controls the relative weights of and which also affects the degree of fitness of AE. Note that there is no need to generate all possible combinations of cell pairs for AIDE training. In practice, we feed the model with a mini-batch of cell pairs randomly selected from dataset D iteratively until the training converges. After training, we use the MDS encoder to generate the embeddings taking the gene expression vectors as input.
We further compared the performance of AIDE against single components of AE and MDS encoder to show the outperformance of the novel architecture (Supplementary Figure S1, Note II and Tables S12–13).
Random projection hashing-based k-means clustering (RPH-kmeans)
As k-means is simple with low time complexity, many studies adapt it to cluster single-cell RNA-seq data (9,10,22). However, one major downside is that k-means is highly sensitive to initial cluster centers. Thus, when the size of the underlying cluster groups is highly imbalanced, which is often the case with single-cell data (Table 1), the resulting clusters become biased toward larger cell populations. The standard random initialization and the most popular k-means++ (31) initialization strategy both choose initial centers located in large-size groups with extremely high probability. As a result, the cluster centers will be stuck in large groups since small groups have little impact on calculating new centers during each iteration. The larger groups may eventually be partitioned into several parts, leading to poor clustering performance. (Supplementary Figure S2).
In order to solve the data imbalance problem, we proposed a random projection hashing based k-means termed RPH-kmeans, which initializes the cluster centers using one of the locality sensitive hashing (LSH) (32) techniques. The key principle of LSH is to project close data points to the same bucket with high probability. D. Datar et al. (33) proposed an LSH family for distance metric. When p is 2 (the distance between two data points is evaluated by the Eulidean metric), the random projection-based hashing (RPH) function that maps a data point to an integer is defined as:
where denotes a data point, is a random vector with drawn i.i.d. from the standard Gaussian distribution , b is a random variable drawn from the uniform distribution , and w denotes the quantization step. Next, a composite hash function is constructed by combining l hash functions:
Thus, given a data point ν, the LSH function g will project ν to an integer hash code vector. Data points are considered to be hashed into the same bucket if their hashed code vectors are exactly the same. In general, the closer (evaluated by the Euclidean distance) two data points are, the more likely they will be hashed into the same bucket.
The pipeline of cluster center initialization of RPH-kmeans can be summarized in two phases. In the first phase, the number of data points is reduced iteratively using LSH. In each iteration, the data points hashed to the same bucket will be merged to a weighted point. Finally, a data skeleton with much fewer points is generated. In the second phrase, weighted k-means (Algorithm S2) with k-means++ initialization will be applied to the skeleton to produce initial centers for RPH-kmeans. Since the number of points in large groups is significantly reduced, potential bias caused by data imbalance can be alleviated (as shown in Supplementary Figure S3). The pseudocode for RPH-kmeans initialization is described in Algorithm 2, and the full RPH-kmeans algorithm is described in Algorithm 1.
Due to the random property/character of LSH, error may be induced when generating the skeleton. For example, data points belonging to two large close groups are likely to be hashed into the same bucket, resulting in a poorly represented skeleton. Here, we provide two optional bucket correction strategy to solve the problem. Inspired by DACE (34), we first developed a radius-based strategy (Algorithm S3). Each bucket will be divided into sub-buckets by successively assigning every point to its closest center. If the distance to the center is greater than a given radius r, a new center will be created. The other one is called a size-based strategy (Algorithm S4). It retains only partial buckets with a small size because large buckets usually lead to the potential merging of two different groups.
Based on the weighted skeleton points generated by random projection, we further developed a weighted Bayesian Information Criterion (BIC) approach to estimate the number of clusters in the dataset (Supplementary Note I, Table S1, and Figure S4).
We noticed that the framework proposed by Li et al. (35) is similar to RPH-kmeans. However, they focused on using LSH to speed up k-means. To the best of our knowledge, we are the first to use LSH to approach the data imbalance problem in clustering.
Evaluation metrics
All clustering results are measured by the adjusted rand index (ARI) (36) and normalized mutual information (NMI) (37). Given two partitions U and V, let be the number of common data points of groups , and . ARI is defined as:
where .
NMI is defined as:
where n is the number of data points.
Data visualizations and biological analysis
In order to visualize the distribution of cluster groups and the embedding of scAIDE, we used t-stochastic neighboring embedding (t-SNE) for all our visualizations. The default parameters are applied without tuning using the R package, Rtsne.
For the discovery of marker genes, we first calculated the Wilcoxon's rank-sum test for each gene in the cluster. Then the log fold change values were measured to ensure that the identified marker gene is supported by sufficient samples. The threshold cut-off for the rank-sum test is set to a small value near 0 (for a strict detection of a small number of marker genes) and 1.5 for fold-change. Fold-change values were calculated as the ratio between group average gene expressions. We are only interested in the up-regulation of markers within a specific cluster, compared to the remaining cells.
In some current studies, cell types are assigned according to a few top marker genes. We believe that developing a systematic approach to assign cell types would be more reliable. To classify the cell types in the clustering analysis, we use gene markers from previous studies (38) and a single-cell gene marker database (39). We used a simple matching rate and the Jaccard index to quantify the number of overlapping marker genes. To test the significance of the assigned cell type, we implemented an enrichment P-value based on a hypergeometric distribution (40). After filtering, we define the total number of genes, G as the number of background genes. Suppose α denotes the number of identified markers from a particular cluster, and b the number of markers for a specific cell type, the number of overlapping genes is regarded as k. The enrichment P-value was calculated as follows:
Additionally, manual validations were also made by comparing specific top markers with existing studies.
Identifying possible trajectory development is one of the important downstream analysis in single-cell data. We utilize the AIDE embedding vectors to reflect the development of cell clusters. The intuition behind this is that cells from a similar lineage would be closer. First, we calculate the average AIDE vector for each respective cluster, and then we apply the Euclidean distance to clusters to obtain a k by k matrix, where k is the number of clusters. Then we perform a simple hierarchical clustering (with complete linkage) to reflect the relationship between cell clusters. Finally, we visualize the cell clusters using heatmap and dendrogram to depict the groupings of possible trajectory development.
Datasets
Real datasets
We used a total of 9 real single-cell datasets to quantify the performance of scAIDE in clustering analysis. The summary of each dataset is listed in Table 1, spanning across different sequencing technologies and varying dropout rates.
Simulation datasets
Concerning the rate of dropout events in more efficient sequencing technologies, it is necessary to develop robust clustering methods that can be generalized. We compared the current methods on multiple simulated datasets using splatter (41), ranging from 60% of dropouts to 93% dropouts (hereby referred to as sparsity). We simulated single-cell datasets with 5000 cells and 10 000 genes, with a highly imbalanced cell group assignment. The smallest cluster contained about 1.5%, while the largest contained roughly 23.2% of cells. Simulation parameters were obtained from a pre-processed smart-seq2 single-cell dataset of the development in mouse embryonic cells (42). The sparsity was tuned by altering the dropout parameters in splatter. The performance of the algorithms is evaluated using pre-determined group labels.
Additionally, we simulated another mouse embryonic dataset (43) by increasing the dropout sparsity of the dataset. We followed the pipeline of simulating dropout as used in splatter. The dataset had an original sparsity of about 70%; then, we simulated the data for 85, 90 and 96%.
RESULTS
Quantitative evaluation of scAIDE
To benchmark the general performance of scAIDE, we compared it to multiple state-of-the-art methods. This includes simple baselines such as MDS, PCA and PCA_2D followed by k-means, complex approaches like SC3 (9), SIMLR (12), MAGIC (44) and numerous deep learning methods: DCA (17), scDeepCluster (19), ZIFA (20), scVI (45) and scScope (46) (Figure 1B). One interesting observation was that PCA performed well when the gene expression was reduced to 256 components (PCA) instead of two components (PCA_2D) before applying the k-means clustering. Although PCA_2D (with two components) is commonly used as the baseline in many studies, we argue that significantly better results could be achieved by simply increasing the number of components (which better captures the information of the data). Thus, we hypothesized that a good representation of the gene expression data might lead to profound biological insights, even with simple clustering methods.
We used ARI and NMI to quantify how similar the clustering results are to the cell labels given in their respective original studies. A total of seven single-cell datasets were used to evaluate the performance, ranging from very distinct cell populations (for example, mouse embryonic stem cells) to very diverse populations (such as neural cells and PBMCs). Although some labels were not of the gold standard, these datasets provide a general baseline to compare the performance of current state-of-the-art clustering methods. scAIDE first reduces the gene expression input to a reduced AIDE embedding of 256-dimensions, followed by our developed RPH-kmeans clustering approach. In order to maintain a fair comparison for deep learning methods, we followed their pre-processing steps for each respective method. Also, we tested both their default embedding dimensions, and parameters which had similar model complexity to AIDE (Supplementary Note III and Tables S14–21). We plotted the best results and compared their performance in Figure 1B and Supplementary Note III. Overall, scAIDE demonstrates high stability and overall performance over current methods. In particular, our method outperformed other methods significantly in the mouse retina dataset (47), which contained 19 cell types with a total of 27 499 cells. Although it is highly imbalanced (the smallest group only contained 48 cells), our approach achieved a high average of 0.875 ARI and 0.825 NMI. Additionally, we also show that RPH-kmeans improves the clustering performance by benchmarking against k-means++ and k-means (with random initialization) on these seven datasets (Supplementary Note IV and Table S22).
We kept a small number of parameters for convenience and provided default parameters which demonstrate consistent performance across datasets (Supplementary Figure S5 and Table S2). We demonstrate that scAIDE is relatively stable using default parameters with little tuning required; the details for the parameters used in the experiments are included in the supplementary materials (Supplementary Tables S2-S6 and Note III).
Robustness of scAIDE under different dropout simulations
Although more accurate sequencing technology is emerging, cost and efficiency still constrain deep sequencing. Scalable technology, such as 10×, sequences at an average of 10–20k reads per cell, while smart-seq2 can sequence up to millions of reads per cell but at a higher cost. Thus, it is vital that computational methods can accurately recover the cell-type populations at various dropout rates.
We first evaluated the performance on fully simulated datasets using splatter (41), ranging from roughly 60% of zero expressions (similar proportion as seen in smart-seq2 datasets) to 93% (similar to 10× datasets). We simulated 5000 single-cell profiles of 10 000 genes, with 10 imbalanced cell groups (Figure 2A). In cases of lower sparsity levels (60–85%), the performance of scAIDE was on par with the consensus and imputation methods, SC3 and MAGIC; while outperforming other deep learning methods. scDeepCluster performed well in the two simulation cases with higher dropout rates (90 and 93%), despite its moderate performance on real datasets. This could be due to the use of a zero-inflated negative binomial (ZINB) layer in its model.
In order to further validate this result, we generated more realistic simulations by adding dropout events based on a logistic regression model (41). We used a well-defined reference dataset that consists of mouse embryonic stem cells (Mouse ES (43)) with four leukemia inhibitory factor (LIF) withdrawal time interval labels (day 0, 2, 4 and 7). SC3 was used as a baseline for comparison due to its superior performance on this dataset. We also included scDeepCluster as it performed relatively well in the previous simulation experiments. In Figure 2B, each algorithm was run five times, and their respective performance indexes were plotted. Despite the good performance of scDeepCluster in the previous simulated datasets, it fails to separate the cells here. scAIDE is highly consistent in all scenarios and outperforms SC3 when sparsity level exceeds 90%. Furthermore, the AIDE embedding clearly separates cells from the four different intervals, even in cases of high dropout events (Figure 2C). We show that scAIDE has a high potential to separate and delineate cell groups regardless of dropout situations.
Identification of putative and rare subpopulations in single-cell datasets
De novo clustering analysis has the potential to provide biological insight into the identification of rare cell types. In general, there are two important aspects in accurately separating different cell types and identifying rare subpopulations. First, cells should be well-represented in low dimensions; subsequently, clustering algorithms should accommodate the identification of small groups of cells. In simulation experiments, we first depict that the AIDE embedding is capable of separating different cell types, and that RPH-kmeans is tailored for the detection of rare cell types. Then, we applied scAIDE to three different datasets (case studies) to reveal novel biological findings. Particularly, not only did we identify different subpopulations within each dataset, but we also identified primed differentiation development of cell types.
Rare cell type detection in simulated datasets
Following Zheng's study (3) and a rare cell type detection method named FiRE (26), we mixed 2.5% (40 cells) of Jurkat cells into an abundant population of 293T cells, totaling to 1580 cells. Using a pre-processed and normalized expression containing 1000 filtered genes, we evaluated the performance of scAIDE (Figure 3A). According to the original publication and reproduced results, FiRE achieved an F1-score of 0.71 with 32 false positives. Using the clustering setting, we set k = 2 and obtained an F1-score of 1.0 for scAIDE (with default parameters), while SC3 achieved 0.94 with five false positives. CellSIUS also achieved an F1-score of 1.0, and GiniClust3 (parameter neighbors set to 10) achived a high score of 0.97 with two false positives. As depicted on the left panel of Figure 3A, five 293T cells (red) were well-mixed into the rare subpopulation of Jurkat cells (green). The AIDE embedding precisely delineates the subpopulation from the abundant group (right panel of Figure 3A). As mentioned in a previous study (24), clustering methods may perform poorly when the rare subpopulation percentage drops below 2%. We compared scAIDE with CellSIUS, GiniClust3 and FiRE for 0.5, 1, 1.5 and 2% mixtures of Jurkat cells (Supplementary Figure S10). scAIDE was able to separate the rare cell type (Jurkat cells) exactly in all four cases (Supplementary Figure S11).
To address the imbalanced composition of cell types, we further simulated rare cell type composition in datasets. We retained the largest two cell types and then sampled 50 or 500 (depending on the size of the dataset) cells for each of the remaining cell types. If the number of cells was less than the sampling number, we retained all cells of that particular cell type. RPH-kmeans is extensively compared with k-means++ and k-means (random initialization) to show its outstanding capability in detecting rare cell type subpopulations (Supplementary Figure S6, Note V and Tables S23–24). For both PCA and AIDE dimensional reduction techniques, RPH-kmeans (default parameters) outperformed the others in detecting small clusters (evaluated by ARI and NMI). Specifically, on PCA embeddings of the PBMC 68k dataset (Supplementary Figure S6a), RPH-kmeans achieved an ARI of 0.544 with only one initialization while traditional k-means++ algorithm only achieved 0.343 (with 100 initializations). On the mouse retina dataset (Supplementary Figure S6b), where the composition of cell types is highly imbalanced, RPH-kmeans also achieved significantly better clustering results (ARI = 0.88 with 1 initialization) than k-means++ (ARI = 0.437 with 100 initializations). Thus, these results reflect that RPH-kmeans can identify rare subpopulations more accurately.
Case study I: Subpopulations of malignant cells in glioblastoma
Next, we applied scAIDE to a glioblastoma dataset (MGH107) (48). It is important to understand and dissect the underlying cell types in tumor micro-environments (TME). This dataset contains only 252 cells, and we were able to identify subpopulations in malignant cells (Figure 3B) using AIDE. As analyzed in one of our previous work (49), a subset of malignant cells express astrocytic and stem-cell-like genes (GFAP, ALDOC, ATP1A2, VIM), resembling the results shown in Figure 3B and C. Furthermore, we classified the second subset of malignant cells to be oligodendrocyte progenitor cell-like (OPC-like), expressing OLIG1, OLIG2, as well as proliferative markers such as SOX4 and CCND2. Additionally, discovered markers can be found in Supplementary Table S7 (P-value < ). The results demonstrate that malignant cells within TME have the potential to proliferate. By global unsupervised clustering analysis, we were able to identify a subgroup of malignant cells, adding to the understanding of development in tumors.
Case study II: Identification of common and rare subtypes in PBMCs
Subsequently, we applied our method to a larger dataset, containing about 68 000 PBMC cells (3). The original study reveals 11 cell types by calculating the correlation between reference transcriptomes to single-cell expressions. We first applied AIDE to generate a reduced embedding of the PBMC data (Figure 3D). We used weighted BIC (Methods) to automatically determine the number of clusters from the embedding (k = 13, Supplementary Figure S4a). Cluster-specific marker genes were cross-referenced with known markers (38) to annotate each cell type (‘Materials and Methods’ section). As a result, we identified subpopulations of natural killer (NK) cells, dendritic cells (DC), and monocytes. In particular, CD56+ CD16+ NK cell expresses SIGLEC7 and GNLY, while CD56+ CD16- NK cell expresses KLRG1 (50). Furthermore, four different subpopulations of DCs were identified as plasmacytoid DC (pDC), inflammatory DC, CD141+ DC and CD1C- CD141- DC. Some of their respective top markers are shown in Figure 3E. As t-SNE components may not fully capture the global structure of data (51), we developed a simple approach (Methods) to visualize and identify possible development trajectory of cell clusters (Supplementary Figure S8). Interestingly, cell clusters of the lymphoid progenitor lineage (T cells, B cells and NK cells) are clearly separated from those of the myeloid progenitor lineage (dendritic cells, monocytes and megakaryocytes). Notably, we identified the rare cluster of megakaryocytes (about 0.24% of profiled cells) and the subpopulations of dendritic cells (ranged from 0.5 to 2.3% of the profiled population), similar to the results reported by the authors of FiRE (26).
Case study III: Cell type decomposition and primed differentiation process in a 1.3m neural dataset
Finally, to investigate the underlying biological insights in neural brain development, we applied scAIDE to provide a global clustering analysis on a 1.3 million neural dataset (27). Within 30 min, we obtained our embedding and 64 cluster assignments (Figure 4A and Supplementary Figure S4b). Using a curated list of markers from PanglaoDB (39), including both markers of neural and the immune system, we eventually mapped the 64 clusters to 19 putative cell types by their respective marker genes (Figure 4B). We further validated their cell types with an enrichment P-value (P-value < 0.05), shown in Supplementary Tables S8 and 9, except for the cluster of megakaryocytes which significantly expressed Gata1. Neuronal markers such as Meg3 separates neuron cells from the rest of the cells. Stmn1, which had been reported to be highly expressed in later stages of neurogenesis (52), is consistently expressed throughout most neural cells (Figure 4B). Together, these results show that our clustering approach is capable of identifying putative cell types.
To further define cell subpopulations, we focus on the population of neural stem/precursor cells (orange cells shown in Figure 4A). A total of seven clusters were mapped to this cell type from global clustering (ranging from ∼0.28 to 2.4% of the total population). Hence, we attempted to delineate the different sub-types of neural stem cells or neural precursor cells. First, we visualized the separation of different cell clusters in a heatmap (Supplementary Figure S9) and identified three possible neural stem cell development based on AIDE embedding. Then, we utilized quiescent markers (Clu, Id3), activation markers (Egfr, Atp1a2, Gfap, Prom1), neurogenesis markers (Dlx1, Dlx2, Dcx, Dlx6as1) and astrocytic markers (Fgfr3, Gja1, Jag1) (53), to assign possible stages of cell types to each cluster (Figure 4C and Supplementary Tables S10–11). Interestingly, cluster 33 significantly expressed Clu, suggesting that a small portion of quiescent cells may be present. Since cluster 33 is clustered with OPCs and astrocytes (Supplementary Figure S9), we believe that these are early- to mid-aNSCs primed for OPCs (significantly expressed in astrocytic markers with P-value < 0.05). Clusters 16, 30 and 59 distinctively express neurogenesis markers, suggesting a cell fate toward interneurons and neurons. For cluster 34, although it groups with gamma delta T cells, oligodendrocyte markers of Pdgfra and Olig2 are significantly expressed, suggesting an OPC lineage. The last two groups of mid- to late-neural stem/progenitor cells (clusters 15 and 39) are grouped between gamma delta T cells and neuronal cells (Figure S9). Although gamma delta T cells respond to neuroinflammation, a recent study shows that they promote short-term memory by controlling synaptic plasticity in hippocampus neurons at steady-state (54). The organization of our identified cell clusters also suggests a supportive role of gamma delta T cells within neuronal cell types. In conclusion, we were able to define detailed cell subpopulations in single-cell datasets using the scAIDE clustering analysis framework.
Scalability
In Figure 5, we compared the scalability and efficiency of AIDE against the embedding step in current deep learning methods (except for scDeepCluster which directly generates the clustering result). Different sample sizes were sampled from the 1.3 million single-cell dataset to assess their performance, where the number of genes remains consistent. All experiments were performed on our CentOS system with 24 CPU cores at 2.5GHz, 125GB of memory and one 1080Ti graphics card. By default, AIDE reduces the data to 256 dimensions. The number of reduced dimensions were shown on the plot for all other methods. It should be noted that scScope pre-processed the data by selecting only the top 1000 variable genes as input to their algorithm. All other methods had the input of the full gene expression profile. Even with early stop disabled, we were able to obtain an AIDE embedding within 24 min using only 7 GB of memory on the full 1.3 million single-cell dataset.
Additionally, our clustering algorithm (RPH-kmeans) not only improves the detection of rare populations but is also more efficient than k-means++ or k-means (with random initialization) in some cases; where better-initialized centers lead to faster convergence and better result (Supplementary Figure S7). Thus, scAIDE is a highly efficient approach for analyzing huge single-cell datasets.
DISCUSSION
To date, it has been of great interest to use single-cell sequencing technology to identify both common and rare cell types in complex tissues. Most common cell types have been discovered long and are well-studied; however, rare sub-populations often remain obscure, particularly in diseases. Typical clustering approaches may be limited in both their ability to identify minor populations and computational time (55). We developed scAIDE to provide accurate and efficient clustering analysis, delineating both putative and rare cell types in single-cell datasets.
While many deep learning-based methods have been developed (17,19), including scalable methods such as scScope (46), we show that their performance is inconsistent between simulations and real datasets. Our analysis demonstrated the robustness of scAIDE in cases of high dropout rates and its ability to delineate rare cell types. In most cases, default parameters or small tuning would be sufficient.
In particular, we analyzed a small tumor dataset with scAIDE, identifying important sub-populations of malignant cells that express different lineage markers. Additionally, scAIDE was able to cluster rare cell types of megakaryocytes and dendritic subpopulations (ranging from 0.24 to 2.3% of profiled cells) in the PBMC 68k dataset. We also showed its ability to determine clusters which were correctly assigned to putative cell types (with significant enrichment p-values) in a 1.3 million neural cell dataset. Three different lineage development branches were identified by further investigation of seven clusters assigned to the neural stem/progenitor cells. Together, we demonstrate the capability of scAIDE to reveal putative and rare cell types in single-cell datasets. We believe that there is excellent potential for scAIDE to be further incorporated into trajectory development analysis in the future.
Within only 30 min, scAIDE could cluster the 1.3 million single-cell dataset using only 7 GB of memory. Together with its consistent performance and downstream biological analysis, we believe that our clustering analysis framework would provide a deepened understanding of cell types and developments within complex tissues and diseases.
DATA AVAILABILITY
scAIDE is publicly available via https://github.com/tinglabs/scAIDE.
Supplementary Material
ACKNOWLEDGEMENTS
K.X., Y.H., Z.F. and T.C. conceived and designed the study. Y.H. developed the computational method and evaluated the clustering performance. K.X. developed and performed the biological analysis. K.X., Y.H., Z.F. and Z.L. interpreted the results. K.X. and Y.H. wrote the manuscript. T.C. supervised the study. All authors have read and approved the submitted version.
Notes
Present address: Department of Computer Science and Technology, Tsinghua University, Beijing, China.
Contributor Information
Kaikun Xie, Institute for Artificial Intelligence, Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China; Tsinghua-Fuzhou Institute of Digital Technology, Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China.
Yu Huang, Institute for Artificial Intelligence, Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China; Tsinghua-Fuzhou Institute of Digital Technology, Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China.
Feng Zeng, Department of Automation, Xiamen University, Xiamen 361005, China; National Institute for Data Science in Health and Medicine, Xiamen University, Xiamen 361005, China.
Zehua Liu, Center for Computational and Integrative Biology, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02114, USA; Department of Molecular Biology, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02114, USA; Broad Institute of Massachusetts Institute of Technology and Harvard, Cambridge, MA 02142, USA.
Ting Chen, Institute for Artificial Intelligence, Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China; Tsinghua-Fuzhou Institute of Digital Technology, Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China.
SUPPLEMENTARY DATA
Supplementary Data are available at NARGAB Online.
FUNDING
National Natural Science Foundation of China [61872218, 61721003, 61673241, 61906105]; National Key R&D Program of China [2019YFB1404804]; Tsinghua-Fuzhou Institute of Digital Technology; Beijing National Research Center for Information Science and Technology (BNRist); Tsinghua University-Peking Union Medical College Hospital Initiative Scientific Research Program.
DECLARATION
The funders had no roles in study design, data collection and analysis, the decision to publish and preparation of the manuscript.
Conflict of interest statement. None declared.
REFERENCES
- 1. Tanay A., Regev A.. Scaling single-cell genomics from phenomenology to mechanism. Nature. 2017; 541:331–338. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2. Picelli S., Faridani O.R., Bjorklund A.K., Winberg G., Sagasser S., Sandberg R.. Full-length RNA-seq from single cells using Smart-seq2. Nat. Protoc. 2014; 9:171–181. [DOI] [PubMed] [Google Scholar]
- 3. Zheng G.X., Terry J.M., Belgrader P., Ryvkin P., Bent Z.W., Wilson R., Ziraldo S.B., Wheeler T.D., McDermott G.P., Zhu J. et al.. Massively parallel digital transcriptional profiling of single cells. Nat. Commun. 2017; 8:1–12. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Rozenblatt-Rosen O., Stubbington M.J.T., Regev A., Teichmann S.A.. The Human Cell Atlas: from vision to reality. Nature. 2017; 550:451–453. [DOI] [PubMed] [Google Scholar]
- 5. Pliner H.A., Shendure J., Trapnell C.. Supervised classification enables rapid annotation of cell atlases. Nat. Methods. 2019; 16:983–986. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Wagner F., Yanai I.. Moana: a robust and scalable cell type classification framework for single-cell RNA-Seq data. 2018; bioRxiv doi:30 October 2018, pre-print: not peer-reviewed 10.1101/456129. [DOI]
- 7. Kiselev V.Y., Yiu A., Hemberg M.. scmap: projection of single-cell RNA-seq data across data sets. Nat. Methods. 2018; 15:359–362. [DOI] [PubMed] [Google Scholar]
- 8. Abdelaal T., Michielsen L., Cats D., Hoogduin D., Mei H., Reinders M.J.T., Mahfouz A.. A comparison of automatic cell identification methods for single-cell RNA sequencing data. Genome Biol. 2019; 20:194. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Kiselev V.Y., Kirschner K., Schaub M.T., Andrews T., Yiu A., Chandra T., Natarajan K.N., Reik W., Barahona M., Green A.R. et al.. SC3: consensus clustering of single-cell RNA-seq data. Nat. Methods. 2017; 14:483–486. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Zurauskiene J., Yau C.. pcaReduce: hierarchical clustering of single cell transcriptional profiles. BMC Bioinformatics. 2016; 17:140. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Stuart T., Butler A., Hoffman P., Hafemeister C., Papalexi E., Mauck W.M. 3rd, Hao Y., Stoeckius M., Smibert P., Satija R.. Comprehensive integration of single-cell data. Cell. 2019; 177:1888–1902. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Wang B., Zhu J., Pierson E., Ramazzotti D., Batzoglou S.. Visualization and analysis of single-cell RNA-seq data by kernel-based similarity learning. Nat. Methods. 2017; 14:414–416. [DOI] [PubMed] [Google Scholar]
- 13. Sinha D., Kumar A., Kumar H., Bandyopadhyay S., Sengupta D.. dropClust: efficient clustering of ultra-large scRNA-seq data. Nucleic Acids Res. 2018; 46:e36. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Zeisel A., Munoz-Manchado A.B., Codeluppi S., Lonnerberg P., La Manno G., Jureus A., Marques S., Munguba H., He L., Betsholtz C. et al.. Brain structure. Cell types in the mouse cortex and hippocampus revealed by single-cell RNA-seq. Science. 2015; 347:1138–1142. [DOI] [PubMed] [Google Scholar]
- 15. Yang L., Liu J., Lu Q., Riggs A.D., Wu X.. SAIC: an iterative clustering approach for analysis of single cell RNA-seq data. BMC Genomics. 2017; 18:689. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Hu M.W., Kim D.W., Liu S., Zack D.J., Blackshaw S., Qian J.. PanoView: an iterative clustering method for single-cell RNA sequencing data. PLoS Comput. Biol. 2019; 15:e1007040. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Eraslan G., Simon L.M., Mircea M., Mueller N.S., Theis F.J.. Single-cell RNA-seq denoising using a deep count autoencoder. Nat. Commun. 2019; 10:390. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Risso D., Perraudeau F., Gribkova S., Dudoit S., Vert J.P.. A general and flexible method for signal extraction from single-cell RNA-seq data. Nat. Commun. 2018; 9:284. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Tian T., Wan J., Song Q., Wei Z.. Clustering single-cell RNA-seq data with a model-based deep learning approach. Nat. Mach. Intel. 2019; 1:191–198. [Google Scholar]
- 20. Pierson E., Yau C.. ZIFA: dimensionality reduction for zero-inflated single-cell gene expression analysis. Genome Biol. 2015; 16:241. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21. Krzak M., Raykov Y., Boukouvalas A., Cutillo L., Angelini C.. Benchmark and parameter sensitivity analysis of single-cell RNA-sequencing clustering methods. Front. Genet. 2019; 10:1253. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Grun D., Lyubimova A., Kester L., Wiebrands K., Basak O., Sasaki N., Clevers H., van Oudenaarden A.. Single-cell messenger RNA sequencing reveals rare intestinal cell types. Nature. 2015; 525:251–255. [DOI] [PubMed] [Google Scholar]
- 23. Jiang L., Chen H., Pinello L., Yuan G.C.. GiniClust: detecting rare cell types from single-cell gene expression data with Gini index. Genome Biol. 2016; 17:144. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Wegmann R., Neri M., Schuierer S., Bilican B., Hartkopf H., Nigsch F., Mapa F., Waldt A., Cuttat R., Salick M.R. et al.. CellSIUS provides sensitive and specific detection of rare cell populations from complex single-cell RNA-seq data. Genome Biol. 2019; 20:142. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Dong R., Yuan G.C.. GiniClust3: a fast and memory-efficient tool for rare cell type identification. BMC Bioinformatics. 2020; 21:158. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26. Jindal A., Gupta P., Jayadeva, Sengupta D.. Discovery of rare cells from voluminous single cell expression data. Nat. Commun. 2018; 9:4719. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Genomics X. 1.3 million brain cells from E18 mice. 2017; https://support.10xgenomics.com/single-cell/datasets/1M_neurons.
- 28. Griveau A., Borello U., Causeret F., Tissir F., Boggetto N., Karaz S., Pierani A.. A novel role for Dbx1-derived Cajal-Retzius cells in early regionalization of the cerebral cortical neuroepithelium. PLoS Biol. 2010; 8:e1000440. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29. Wolf F.A., Angerer P., Theis F.J.. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol. 2018; 19:15. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Cox T., Cox M.. Multidimensional Scaling. 2000; 2nd ednBoca Raton: Chapman and Hall/CRC. [Google Scholar]
- 31. Arthur D., Vassilvitskii S.. K-means++: The advantages of careful seeding. Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms. 2007; Society for Industrial and Applied Mathematics; 1027–1035. [Google Scholar]
- 32. Gionis A., Indyk P., Motwani R.. Similarity search in high dimensions via hashing. Proceedings of the 25th International Conference on Very Large Data Bases. 1999; Springer; 518–529. [Google Scholar]
- 33. Datar M., Indyk P., Immorlica N., Mirrokni V.. Locality-sensitive hashing scheme based on p-stable distributions. Proceedings of the Twentieth Annual Symposium on Computational Geometry. 2004; Association for Computing Machinery; 253–262. [Google Scholar]
- 34. Jiang L., Dong Y., Chen N., Chen T.. DACE: a scalable DP-means algorithm for clustering extremely large sequence data. Bioinformatics. 2017; 33:834–842. [DOI] [PubMed] [Google Scholar]
- 35. Li Q., Wang P., Wang W., Hu H., Li Z., Li J.. An efficient K-means clustering algorithm on MapReduce. International Conference on Database Systems for Advanced Applications. 2014; Springer; 357–371. [Google Scholar]
- 36. Hubert L., Arabie P.. Comparing partitions. J. Classification. 1985; 2:193–218. [Google Scholar]
- 37. Strehl A., Ghosh J.. Cluster ensembles—a knowledge reuse framework for combining multiple partitions. J. of Machine Learning Res. 2003; 3:583–617. [Google Scholar]
- 38. Villani A.C., Satija R., Reynolds G., Sarkizova S., Shekhar K., Fletcher J., Griesbeck M., Butler A., Zheng S., Lazo S. et al.. Single-cell RNA-seq reveals new types of human blood dendritic cells, monocytes, and progenitors. Science. 2017; 356:eaah4573. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39. Franzen O., Gan L.M., Bjorkegren J.L.M.. PanglaoDB: a web server for exploration of mouse and human single-cell RNA sequencing data. Database (Oxford). 2019; 2019:baz046. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40. Zhou Q., Chipperfield H., Melton D.A., Wong W.H.. A gene regulatory network in mouse embryonic stem cells. Proc. Natl. Acad. Sci. U.S.A. 2007; 104:16438–16443. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Zappia L., Phipson B., Oshlack A.. Splatter: simulation of single-cell RNA sequencing data. Genome Biol. 2017; 18:174. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Deng Q., Ramskold D., Reinius B., Sandberg R.. Single-cell RNA-seq reveals dynamic, random monoallelic gene expression in mammalian cells. Science. 2014; 343:193–196. [DOI] [PubMed] [Google Scholar]
- 43. Klein A.M., Mazutis L., Akartuna I., Tallapragada N., Veres A., Li V., Peshkin L., Weitz D.A., Kirschner M.W.. Droplet barcoding for single-cell transcriptomics applied to embryonic stem cells. Cell. 2015; 161:1187–1201. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44. van Dijk D., Sharma R., Nainys J., Yim K., Kathail P., Carr A.J., Burdziak C., Moon K.R., Chaffer C.L., Pattabiraman D. et al.. Recovering gene interactions from single-cell data using data diffusion. Cell. 174:716–729. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45. Lopez R., Regier J., Cole M.B., Jordan M.I., Yosef N.. Deep generative modeling for single-cell transcriptomics. Nat. Methods. 2018; 15:1053–1058. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46. Deng Y., Bao F., Dai Q., Wu L.F., Altschuler S.J.. Scalable analysis of cell-type composition from single-cell transcriptomics using deep recurrent learning. Nat. Methods. 2019; 16:311–314. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47. Shekhar K., Lapan S.W., Whitney I.E., Tran N.M., Macosko E.Z., Kowalczyk M., Adiconis X., Levin J.Z., Nemesh J., Goldman M. et al.. Comprehensive classification of retinal bipolar neurons by single-cell transcriptomics. Cell. 2016; 166:1308–1323. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48. Venteicher A.S., Tirosh I., Hebert C., Yizhak K., Neftel C., Filbin M.G., Hovestadt V., Escalante L.E., Shaw M.L., Rodman C. et al.. Decoupling genetics, lineages, and microenvironment in IDH-mutant gliomas by single-cell RNA-seq. Science. 2017; 355:6332. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49. Xie K., Liu Z., Chen N., Chen T.. redPATH: reconstructing the pseudo development time of cell lineages in single-cell RNA-seq data and applications in cancer. 2020; bioRxiv doi:06 March 2020, pre-print: not peer-reviewed 10.1101/2020.03.05.977686. [DOI] [PMC free article] [PubMed]
- 50. Amand M., Iserentant G., Poli A., Sleiman M., Fievez V., Sanchez I.P., Sauvageot N., Michel T., Aouali N., Janji B. et al.. Human CD56(dim)CD16(dim) cells as an individualized natural killer cell subset. Front. Immunol. 2017; 8:699. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51. Kobak D., Berens P.. The art of using t-SNE for single-cell transcriptomics. Nat. Commun. 2019; 10:5416. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52. Shin J., Berg D.A., Zhu Y., Shin J.Y., Song J., Bonaguidi M.A., Enikolopov G., Nauen D.W., Christian K.M., Ming G.L. et al.. Single-cell RNA-seq with waterfall reveals molecular cascades underlying adult neurogenesis. Cell Stem Cell. 2015; 17:360–372. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53. Dulken B.W., Leeman D.S., Boutet S.C., Hebestreit K., Brunet A.. Single-cell transcriptomic analysis defines heterogeneity and transcriptional dynamics in the adult neural stem cell lineage. Cell Rep. 2017; 18:777–790. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54. Ribeiro M., Brigas H.C., Temido-Ferreira M., Pousinha P.A., Regen T., Santa C., Coelho J.E., Marques-Morgado I., Valente C.A., Omenetti S. et al.. Meningeal gammadelta T cell-derived IL-17 controls synaptic plasticity and short-term memory. Sci. Immunol. 2019; 4:eaay5199. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55. Campbell J.N., Macosko E.Z., Fenselau H., Pers T.H., Lyubetskaya A., Tenen D., Goldman M., Verstegen A.M., Resch J.M., McCarroll S.A. et al.. A molecular census of arcuate hypothalamus and median eminence cell types. Nat. Neurosci. 2017; 20:484–496. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
scAIDE is publicly available via https://github.com/tinglabs/scAIDE.