 Research
 Open Access
 Published:
Nonnegative lowrank representation based on dictionary learning for singlecell RNAsequencing data analysis
BMC Genomics volumeÂ 23, ArticleÂ number:Â 851 (2022)
Abstract
In the analysis of singlecell RNAsequencing (scRNAseq) data, how to effectively and accurately identify cell clusters from a large number of cell mixtures is still a challenge. Lowrank representation (LRR) method has achieved excellent results in subspace clustering. But in previous studies, most LRRbased methods usually choose the original data matrix as the dictionary. In addition, the methods based on LRR usually use spectral clustering algorithm to complete cell clustering. Therefore, there is a matching problem between the spectral clustering method and the affinity matrix, which is difficult to ensure the optimal effect of clustering. Considering the above two points, we propose the DLNLRR method to better identify the cell type. First, DLNLRR can update the dictionary during the optimization process instead of using the predefined fixed dictionary, so it can realize dictionary learning and LRR learning at the same time. Second, DLNLRR can realize subspace clustering without relying on spectral clustering algorithm, that is, we can perform clustering directly based on the lowrank matrix. Finally, we carry out a large number of experiments on real singlecell datasets and experimental results show that DLNLRR is superior to other scRNAseq data analysis algorithms in cell type identification.
Introduction
The singlecell RNAsequencing (scRNAseq) technology is now a powerful tool that demonstrates unprecedented precision in exploring biological processes and disease mechanisms [1,2,3]. The scRNAseq technology helps to reveal the heterogeneity and diversity between cells. In addition, it can discover new subtypes and rare cell species by effectively dissecting complex and heterogeneous cell clusters [4,5,6]. Analyzing scRNAseq data can help researchers better understand complex biological problems. In the scRNAseq data analysis, one of the relatively significant research is unsupervised cluster analysis, which aims to identify cell types by clustering cells using clustering algorithms [7]. The researchers have previously introduced several traditional clustering methods to analyze these singlecell data. For example, Hartigan et al. proposed the Kmeans [8], which is based on Euclidean distance to minimize the distance between cells in the same class. Later, Luxburg et al. proposed the famous spectral clustering (SC) algorithm [9]. Elhamifar et al. developed the SC method based on the sparse representation sparse subspace clustering (SSC), which further improved the sparsity of subspace clustering and effectively processed the noise in data [10]. Compared with the bulk RNAseq data and microarray data, the major problem of clustering scRNAseq data is that missing values often appear in scRNAseq data. Because of the limitation of current technology, scRNAseq sometimes fails to capture the expression of genes, thus resulting in dropout events in the data. These dropout events cause data loss in the gene expression matrix. These problems may reduce the accuracy of the above traditional clustering methods for identifying cell subtypes on scRNAseq data.
In recent years, a number of specific methods have been proposed to overcome the challenges posed by the inherent nature of scRNAseq data. Xu and Su proposed a quasicliquebased clustering algorithm called SNNCliq [11], which constructs a distance matrix based on the concept of shared nearestneighbor (SNN) to represent the similarity between cells. Wang et al. proposed a similarity learning framework, SIMLR, which uses multikernel similarity learning to analyze the scRNAseq data [12]. SIMLR is essentially a spectral clustering method, which learns an appropriate distance matrix from the data for dimension reduction, clustering and visualization. SC3 [13] combines multiple subclustering results to construct the consistency matrix. Park et al. proposed an improved multikernel spectral clustering method named MPSSC [14]. In the MPSSC method, they modified the spectral clustering framework by imposing sparse structure on the target matrix. Inspired by previous methods that use neighborhood information to measure celltocell similarity, Jiang et al. proposed a new cell similarity measure called Corr [15]. Corr considers the expression patterns of surrounding cells from a global perspective based on the correlation of cellpair differentiability. Zheng et al. proposed SinNLRR to learn more accurate similarity matrix by lowrank representation (LRR) model with nonnegative constraint [16]. SinNLRR can reduce the influence of noise on similarity and effectively obtain accurate and robust clustering results. However, most clustering methods divide subspace clustering into two steps: first, learning an affinity matrix that encodes the subspace memberships of samples; then, the clustering algorithm such as Normalized cutting (NCuts) [9] is used to obtain the final clustering result based on the learned affinity matrix. Because the clustering method used to obtain the clustering results is not necessarily suitable for the learned affinity matrix. Thus, these methods are not guaranteed to obtain the optimal clustering results. In addition, although LRRbased methods have achieved good results in scRNAseq data analysis, they usually choose the original data as the dictionary. Due to the large number of missing values and high noise of scRNAseq data, using the original data as a dictionary to represent the low dimensional subspace is not conducive to obtaining accurate LRR matrix.
Xu et al. proposed Concept Factorization (CF), which attempts to find the data representation by using the linear combination of original data points to represent the cluster center [17]. Inspired by the idea of CF, we reformulated the dictionary in the LRR model with a linear combination of the original data and propose a new LRRbased method called Nonnegative Lowrank Representation based on Dictionary Learning (DLNLRR). In this method, instead of using a fixed dictionary, the dictionary is modeled as the linear combination of the original data. In the optimization process, with the update of linear combination coefficient, the dictionary will be updated accordingly. Therefore, DLNLRR can realize dictionary learning and acquisition of LRR at the same time. Importantly, updating the dictionary can reduce the impact of data noise on the mapping benchmark, which will help to accurately extract the lowdimensional subspace structure of highdimensional data. Secondly, we try to accurately find the corresponding subspaces of highdimensional data through factor decomposition. Specifically, we determine the number of clusters by reasonably selecting the dimension of dictionary matrix. If the number of learned subspaces is the same as the actual number of clusters, we can directly gather the sample points into the corresponding subspace according to the projection of highdimensional data on the lowdimensional subspace. In other words, the clustering results can be obtained without the help of the spectral clustering algorithm. Unlike previous singlecell cluster analysis methods that use NCuts to obtain clustering results, DLNLRR can avoid the influence of clustering algorithms on the final results. In addition, we add the manifold graph regularization to DLNLRR. When highdimensional spatial data are mapped to lowdimensional space, manifold graph regularization can preserve the local geometric structure of highdimensional data, so as to ensure the smoothness of manifold structure embedded in the highdimensional data. Finally, to validate the effectiveness of the proposed method, we carry out a large number of experiments on real scRNAseq datasets. Through comparative experiments, it is found that DLNLRR has higher clustering ability than the stateoftheart scRNAseq data clustering algorithms.
Related work
Before introducing the proposed model, we will review some related methods in this section, including LRR, manifold graph regularization and CF.
Lowrank representation
Because of the good ability to grasp the global data structure and explore the lowdimensional subspace structure, LRR has attracted the attention of a large number researchers and achieved good results in the application of bioinformatics [18]. In the LRR method, each sample can be represented as a linear combination of the bases in a given dictionary, and LRR seeks the lowest rank representation in a given data sample set [19]. So, LRR can realize the lowdimensional representation of highdimensional data and reduce the difficulty of highdimensional data processing. Given the observed data matrix \(X \in R^{m \times n}\) is a combination of unknown independent subspaces \(S = \left[ S_{1} ,S_{2,} ...,S_{b}\right]\). The LRR is formulated as the following rank minimization problem:
Here, \(\lambda\) is a parameter and A is a basis matrix, called a dictionary. H is the LRR matrix with respect to the dictionary A, and the column vector \({h_j}\) denotes the mapping of sample point j in the subspace. The matrix E denotes the noise in the original data. \(\left\ \cdot \right\ _{l}\) indicates a certain regularization strategy. Because of the discreteness of the rank operator, the above optimization problem (1) is difficult to solve. Previous studies [20] proposed the convex relaxation form of the optimization problem:
where \(\left\ \cdot \right\ _{*}\) represents the nuclear norm, which is the sum of all singular values of a matrix. Obviously, an appropriate the dictionary A enables the LRR matrix H to reveal the true subspace structure of the data.
Graph regularization based on manifold
In highdimensional data processing, graph regularization constraint based on manifold learning offers a practicable choice for capturing the local geometry in data. The regularization of graph is based on local invariance assumption that if two data points \(x_{i}\), \(x_{j}\) are close in the original data geometric distribution, then their mappings \(h_{i}\) and \(h_{j}\) in the new space also remains close [21, 22]. Therefore, the graph regularization can reveal the underlying local manifold structure in the original data. For the sake of restoring the local geometric relationship between data points, a simple method is to construct a connected graph to approximate the manifold. We use data points in matrix X as vertices of the connected graph. Then, the symmetric weight matrix S is defined, \({s_{ij}}\) is the weight of the edge that connects the vertex \(x_{i}\) to the vertex \({x_j}\). In this paper, Gaussian kernel is used to construct symmetric weight matrix S as follows:
where \({N_k}\left( x_{i} \right)\) denotes the set of k nearest neighbors of \(x_{i}\). \(\left\ {{x_i}  {x_j}} \right\\) is the Euclidean distance between \(\mathop x\nolimits _i\) and \({x_j}\), and t controls the width of the neighborhoods, which is 1 by default. Based on the local invariance assumption, the definition of graph regularization in low dimensional space is as follows:
Here, \(h_{i}\) and \(h_{j}\) denote the mappings of \(x_{i}\) and \(x_{j}\) under some transformation [23]. D is a diagonal matrix, \(d_{ii} = \sum \limits _{i,j} {{s_{ij}}}\) is its diagonal element. It is obvious that \(d_{ii}\) is the sum of similarities of data point \(x_{i}\). L is the graph Laplacian matrix [24].
Concept factorization
Concept Factorization (CF) was first proposed by Xu et al. [17], which has attracted great attention in dimensionality reduction and data clustering. CF is a variation of Nonnegative Matrix Factorization (NMF) [25]. The goal of NMF is to decompose the data matrix \(X \in {R^{m \times n}}\) into two matrix factors \(U \in {R^{m \times k}}\) and \(V \in {R^{n \times k}}\), so that \(U{V^T}\) can provide a good approximation to X.
Each column of U can be regarded as the basis vector, and each column of \({V^T}\) is the kdimensional representation of the original inputs relative to the new basis. NMF mainly analyze the data matrices whose elements are nonnegative. And NMF imposes the nonnegative constraint on U and \({V^T}\). In the CF model, each base \({u_j}\) is represented by a linear combination of data points.
where \({w_{ij}} \ge 0\). Let \(W = \left[ {{w_{ij}}} \right] \in {R^{n \times k}}\). The idea of CF is to represent each concept (base) as a linear combination of all data points, and approximate each data point by a linear combination of these concepts. That is, given a data matrix X, the goal of CF is to find two nonnegative coefficient matrices \(W \in {R^{n \times k}}\) and \(V \in {R^{n \times k}}\). The coefficient matrices meet the following condition:
Equation (7) actually factorizes the data matrix X into X, W, and V. W is referred to as the association matrix recording the concepts, while V represents the projection corresponding to the concept and is referred to as the representation matrix.
Materials and methods
In this section, we will introduce the proposed DLNLRR method in detail, which uses the linear combination of original data as a dictionary to seek the lowest rank representation of data points.
DLNLRR method
Given a highdimensional data \(X \in {R^{m \times n}}\) with n data points, the main goal of LRR is to find the lowest rank representation of data points based on a given dictionary. LRRbased method usually directly uses the original data matrix X as the dictionary to grasp the similarity matrix or LRR. However, scRNAseq data usually contain a lot of noise and missing values. In view of the characteristics of scRNAseq data, directly using the original data as the dictionary can not accurately represent the basis of lowdimensional projection. Inspired by the idea that CF represents concepts through a linear combination of all data points, we attempt to model the dictionary A as a linear combination of original data points, i.e., \(A = XW\). We can update and reconstruct the dictionary by updating the coefficient matrix W, so that the dictionary can better represent the low dimensional subspace through continuous learning. Compared with using the original data as a dictionary, the dictionary with learning ability is helpful to further identify the potential low dimensional subspace structure. In addition, to improve the interpretability of the model, we impose the nonnegative constraint on H. So, we have
where \(W \in R^{n \times r}\) is the coefficient matrix, the orthogonal constraint \(W{W^T} = I\) is to ensure that the model is stable. r denotes the number of subspaces. XW is referred to as concept matrix in the CF model. If we regard a concept as a subspace, XW can be regarded as the dictionary A in the LRR model. Therefore, the dictionary A can be continuously updated with the iteration of W during the optimization process. \(H \in {R^{r \times n}}\) is the LRR of the original data X with respect to dictionary A. Each column of H represents the mapping of a sample point in a low dimensional subspace. So H can intuitively reflect the nonnegative similarity of different type of cells. When the data is projected from highdimensional space to lowdimensional space, manifold graph regularization can maintain the inherent local geometry of the data. Therefore, we introduce the regularization of manifold graph into problem (8) to constrain the lowrank matrix H. The introduction of manifold graph regularization can ensure the smoothness of the nonlinear manifold structure embedded in the highdimensional data. In addition, we relax the constraint \(X = XWH\) to minimize \(X  XWH\). The mathematical model of our method is as follows:
Here, \({\left\ \cdot \right\ }_{F}\) denotes the Frobenius norm, which is the square root of the sum of squares of all elements in a matrix. \(\lambda\), \(\beta\) are the penalty parameters. We refer to model (9) as Nonnegative Lowrank Representation based on Dictionary Learning (DLNLRR). By optimally solving the DLNLRR model, we can obtain an LRR matrix H with r rows and n columns. We expect the LRR matrix \(H \in {R^{r \times n}}\) to have a clear clustering structure, i.e., the r lowdimensional subspaces found correspond to r clusters. Thus, the element \(h_{ij}\) represents the projection of sample j on subspace i, and we can directly cluster the samples based on the maximum of each column vector in the LRR matrix. For example, if \(h_{ij}\) is the maximum value in the jth column, sample j will be clustered into cluster i. So, we can obtain the clustering labels directly without resorting to other clustering algorithms, which avoids the influence of clustering methods on the clustering results and then improves the clustering performance of our method. Through the above analysis, we can see that the correct selection of the value of r is the key to the direct clustering of sample points. In Section â€˜Selection of Dimension râ€™, we will discuss how to select the appropriate r value.
Optimization
The objective function of DLNLRR is a convex optimization problem with multiple constraints. In this subsection, we use the penalty term adaptive linear alternating direction (LADMAP) method [26] to settle the matter defined by problem (9). Firstly, we introduce two auxiliary variables J and Z, problem (9) is rewritten as
Secondly, we introduce the augmented Lagrangian function to eliminate the linear constraints in problem (10). Therefore, problem (10) can be expressed as following:
where \(\mu\) is a penalty parameter, \({Y_1}\) and \({Y_2}\), are the Lagrange multipliers. Finally, we update J, Z, W and H sequentially using the alternating minimization strategy, that is, when you update one variable, keep the other variables unchanged.
Updating J
To update the variable J, according to problem (11), the subproblem with respect to J is converted to
It can be solved by softthresholding.
where \(sof{t_{\lambda ,1/\mu }}\left( \cdot \right)\) represents the softthresholding operator [19]. And \(sof{t_{\lambda ,1/\mu }}\left( X \right) = U{D_{\lambda ,1/\mu }}\left( \Sigma \right) {V^T}\), \(X = U\Sigma {V^T}\). The element on the diagonal of matrix \(\Sigma\) is \({\sigma _{ii}}\), \({D_{\lambda ,1/\mu }}\left( \Sigma \right) = diag\left( {\max \left( {\sigma _{ii}  \lambda / \mu ,0} \right) } \right)\).
Updating Z
To update the variable Z, according to problem (11), the subproblem with respect to Z is as follows.
We differentiate our objective function with respect to Z, and then we set it to zero. We get
Updating W
Similarly, the subproblem with respect to W is as follows.
Problem (16) can be rewritten as
In order to solve W, let \(Q = Z + \frac{{{Y_1}}}{\mu }\), so the objective function of (17) is equivalent to the following formula:
Derivation of formula (18):
For (19), the Lagrangian function L is constructed using symmetric matrix multipliers of \(\Lambda\).
Then,
Thus, \({\Lambda ^T}\Lambda = {\Lambda ^T}{W^T}W\Lambda = HQ^{T} Q{H^T} = V\Omega {U^T}U\Omega {V^T}\), since \(\Lambda = {\Lambda ^T}\), \(\Lambda = V\Omega {V^T}\). From (21), the optimal W is given by the singular vectors:
where \(\left( {U,\Omega ,V} \right)\) is the SVD decomposition of \(Q{H^T}\).
Updating H
We update H by solving the following problems
By taking the derivative of the function with respect to H and setting it to zero, we find that the optimal solution H should satisfy
Problem (24) is looks like
where \(A \in R^{m \times m}\), \(B \in R^{n \times n}\) and \(Q \in R^{m \times n}\) are three given matrices, and X is a matrix to be solved. This is a standard Sylvester equation that has a unique solution for X if and only if no eigenvalue of A is the negative of an eigenvalue of B [27]. Thus, we directly use the lyap function in matlab to solve for H according to problem (24). After all variables are updated, these Lagrange multipliers are updated by
The parameter \(\mu\) is updated by \(\mu = \min \left( {\rho \mu ,{\mu _{\max }}} \right)\), after all variables and multipliers have been updated [18]. The main procedure of DLNLRR is described in Algorithm 1.
Framework for DLNLRR
In this subsection, we will describe the framework of DLNLRR. DLNLRR consists of two basic steps, including lowrank matrix learning, downstream analysis. The framework of the DLNLRR algorithm is shown in Fig. 1. Given a scRNAseq expression matrix, to reduce the technical noise in each scRNAseq dataset, we first preprocess the data by gene filtering and median normalization. In the gene filtering, we remove bad genes expressed in less than or equal to two cells. In the median normalization, the raw read count is normalized by the size factor, followed by a log transformation \({\log }_{10} \left( {x + 1} \right)\). Then, the preprocessed data are input to the DLNLRR model. After continuous iterative solving, we obtain the LRR matrix H of the original data matrix relative to the dictionary. As mentioned earlier, if the appropriate r value is selected, we can cluster the samples according to the maximum value of each column vector in the LRR matrix H to obtain the final clustering result. Finally, the tSNE algorithm is used to visualize the LRR matrix H to validate the effectiveness of DLNLRR in learning celltocell similarity from scRNAseq data.
Running time and memory usage
The DLNLRR method runs on PC with i510210U CPU @ 1.60GHz and 16.0G RAM. We tested the running time of the algorithm developed by the MATLAB on eight single cell datasets with different cell numbers. The actual running time of the algorithm is all the running steps of each method, including data preprocessing. Table 1 shows the actual computation time. We find that the running time of most algorithms increases with the increase of the number of samples. DLNLRR and sinNLRR are both LRR based methods, which run faster on single cell data and take less than 2 minutes on all eight data sets. Since the sinNLRR method does not carry out dictionary learning, its running time is faster. However, from clustering experiments, it is found that our method can obtain more accurate results. In addition, MPSSC is a multiple kernel based method that requires more running memory.
Results and discussion
scRNAseq datasets
We tested the DLNLRR method across eight scRNAseq datasets generated by different platforms. We downloaded these data sets from databases provided by the National Biotechnology Information Retrieval Database (NCBI) and the European Institute for Bioinformatics (EMBLEBI). Specifically, these datasets include Treutlein [28], Ting [29], Deng [30], Pollen [31], Goolam [32], Engel [33], Kolod [34], Darmanis [35]. The brief description of the eight scRNAseq datasets is listed in Table 2. They are observed to vary in sample size from 80 (Treutlein) to 704 (Kolod), and the number of cell clusters ranges from 3 (Kolod) to 11 (Pollen).
Evaluation measurements
In this experiment, we used Normalized Mutual Information (NMI) [36] and Adjusted Rand Index (ARI) [37, 38] to validate the performance of the proposed method. Both NMI and ARI can be used to compare the agreement of data distribution between clustering algorithm and real clustering labels. NMI is an evaluation standard to detect the degree of difference between two types of clustering results according to the relationship between joint entropy and individual entropy. NMI measures the mutual information between the obtained clustering labels and the truth labels, followed by a normalization operation to assure NMI ranges from 0 to 1.
Let \(M = \left\{ {{M_1},{M_2}, \cdot \cdot \cdot ,{M_K}} \right\}\) and \(N = \left\{ {{N_1},{N_2}, \cdot \cdot \cdot ,{N_K}} \right\}\) represent the known real cluster and the inferred cluster by some clustering method respectively. Mathematically, NMI is defined as:
where \(H\left( \cdot \right)\) represents the entropy of the cluster and \(MI\left( { \cdot , \cdot } \right)\) represents the mutual information among cluster [39]. ARI is a kind of evaluation criterion to measure the consistency between real clusters M and inferred clusters N. Mathematically, it is defined as:
where\(a_{mn}\) represents the number of a pair of objects placed in the same group in M and N, \(a_{m}\) represents the number of pairs in the same group M but in the different groups in N, \(a_{n}\) represents the number of pairs in the same group in N but in the different groups in M, a represents the number of objects in a pair that are placed in the different groups in M and N. The value range of NMI and ARI are [0,1]. In general, if the values of NMI and ARI are close to 1, it indicates that the clustering results are close to the real situation.
Selection of Dimension r
According to section â€˜DLNLRR Methodâ€™, each column vector of the LRR matrix \(H \in R^{r \times n}\) is a new representation of the original data set in the lowdimensional subspace. Each subspace found by DLNLRR corresponds to an actual cluster. Therefore, the selection of dimension r of LRR matrix H becomes the key of this method, which will affect the accuracy of clustering results. We choose the Ting dataset as an example to further verify the influence of different dimensions r on the learning lowrank matrix. To more intuitively demonstrate the learning ability of low rank matrix to subspace structure, we show the heatmap of \(\left {{H^T}H} \right\) under different dimensions r in Fig. 2. In ideal state, \(\left {{H^T}H} \right\) should have the clear block diagonal structure. The block structure presented by the heat map of \(\left {{H^T}H} \right\) reflects the clustering structure, i.e., the clearer the block diagonal structure is, the more desirable the clustering result is. If r is chosen appropriately, the number of presented blocks should be consistent with the number of the cell types. It can be seen from Fig. 2 that when \(r = 2\) and \(r = 3\), \(\left {{H^T}H} \right\) is divided into several blocks, but nondiagonal areas are also bright, even brighter than the diagonal area. This indicates that the value of r is not appropriate, and its value is lower than the real number of clusters, resulting in considerable similarity between different types of cells. Obviously, it is inappropriate to set \(r = 2\) and \(r = 3\). When \(r = 4\), \(\left {{H^T}H} \right\) has the clear block diagonal structure and is divided into five modules. However, the number of modules does not match the value of r. According to the previous discussion, subspace clustering can be realized directly based on H only when the value of r is consistent with the number of clustering clusters. We note that when \(r = 5\), there is no significant difference compared with \(r = 4\), and the number of blocks does not increase. When \(r = 6\) and \(r = 7\), the number of diagonal blocks is still 5. This indicates that the number of blocks does not increase with the increase of r. So, we can infer that the number of clusters is 5. In order to achieve direct clustering, we choose the r value consistent with the number of diagonal blocks, that is, \(r = 5\). Therefore, in the Ting dataset, r is set to 5.
Parameter selection
This subsection analyzes the impact of parameters in DLNLRR on the clustering performance. According to formula (9), there are two parameters \(\lambda\) and \(\beta\) in the DLNLRR model. We use grid search to find the most appropriate parameters on each dataset. We let the two parameters vary in the interval [\(10^{5}\), \(10^2\)] and show the NMI on eight datasets in Fig. 3. From Fig. 3, it is found that except Pollen dataset, the other seven datasets with \(\lambda\) in [\(10^{1}\) \(\sim\) \(10^1\)] and \(\beta\) in [1 \(\sim\) 10] can obtain satisfactory results. For Pollen dataset, we can obtain the best results when \(\lambda \mathrm{{ = 1}}{\mathrm{{0}}^\mathrm{{0}}}\), \({} \beta = {10^{  3}}\). Then, through further search, we list the optimal parameters of each dataset in Table 3.
Clustering performance of DLNLRR
Cell clustering is one of the important tasks in the mining and analysis of scRNAseq data, and its main purpose is to distinguish cell types. In this subsection, to validate the clustering performance of DLNLRR, DLNLRR and several most advanced singlecell data clustering methods are applied to cluster cells on eight real scRNAseq datasets described in Table 2. Specifically, the compared methods include SSC [10],SIMLR [12], SC3 [13], SNNCliq [11], Corr [15], MPSSC [14], SinNLRR [16], ScLCA [40], Seurat [41], CIDR [42], RaceID [43], Spectrum [44], and SHARP [45],respectively. The procedures for the above comparison methods can be found in the scRNA tool database [46, 47]. We used NMI and ARI introduced in Section â€˜Evaluation measurementsâ€™ to evaluate the performance of the clustering method. Table 4 shows the specific ARI values of the above methods.To reflect the overall clustering performance of each clustering method on all data sets, we show the experimental results of SSC, SIMLR, SC3, SNNCliq, Corr, MPSSC, SinNLRR and DLNLRR in the form of Boxplot in Fig. 4.
Firstly, it can be seen from Table 4 that although our method does not achieve the best results on all data sets, DLNLRR has achieved ARI values greater than 50\(\%\) on all data sets and the highest average value, indicating its robustness. In addition, no other method can obtain the highest ARI value on more than two datasets.
Secondly,we can see from Fig. 4 that the position of the box generated by our method is relatively high compared with other methods. In addition, we can find that the median line of DLNLRR is the highest of all methods. This indicates that our method has the best overall performance on all datasets. And, the compactness of the box in Boxplot shows the stability of the performance of the method. As can be seen from Fig. 4A, the boxes for SC3, Corr, SinNLRR and DLNLRR are relatively compact. This shows that the performance of these four methods is relatively stable. Similar results can be found for ARI in Fig. 4B. Summarizing the above analysis, we can conclude that DLNLRR is stable and efficient in scRNAseq data clustering. In addition, we further compare our method with SinNLRR. Because our method and SinNLRR are both based on LRR model. The main difference between the two methods is that the SinNLRR method directly uses the original data as a fixed dictionary, while DLNLRR uses the linear combination of the original data as the dictionary to update the dictionary in iterations. As can be seen from Fig. 4, our method is superior to SinNLRR in NMI and ARI value. Compared with the average performance of SinNLRR, the average NMI and ARI of our method are increased by 0.119 and 0.061, respectively. We can infer that updating the dictionary in the optimization process instead of using the predefined fixed dictionary can more accurately learn the structural information in the data and improve the clustering performance of singlecell data.
Visualization and gene markers
Visualization analysis
Visualizing scRNAseq data in lowdimensional space is a powerful way to preidentify cell subpopulations. Previous studies proposed an improved tdistributed Stochastic Neighbor Embedding (tSNE) for dimensionality reduction and visualization of data to verify the performance of the learned similarity matrix [48]. In this subsection, to investigate the performance of DLNLRR in learning intercellular similarity from original scRNAseq data, we input the lowrank matrix learned by DLNLRR into tSNE to visualize scRNAseq data. We shown the visualization results of tSNE, MPSSC, SinNLRR and DLNLRR on Ting dataset and Pollen dataset in Fig. 5. In Fig. 5, dots with the same color indicate that they have the same cell type. Among the four methods, tSNE visualizes the data directly based on the original singlecell expression data, while for MPSSC, SinNLRR and DLNLRR method, the data is visualized based on the obtained similarity matrix. Therefore, we first compare tSNE with MPSSC, SinNLRR and DLNLRR. As can be seen from Fig. 5, in the visualization of tSNE, the cells of various cell types are mixed and cannot be well separated, whether on Ting or Pollen. Compared with tSNE, the cells of different cell types can be clearly separated in the visualization of MPSSC, SinNLRR and DLNLRR. This indicates that the similarity matrix learned by MPSSC, SinNLRR and DLNLRR can better reflect the structural information of data points in lowdimensional subspace. Secondly, we compare DLNLRR with MPSSC and SinNLRR. From Fig. 5A, we can find that, compared with SinNLRR and MPSSC, the visualization of DLNLRR can better reflect the distribution law in the data. Specifically, in the visualization of DLNLRR on Ting dataset, the cells of the same type are highly aggregated, while the cells of different types are clearly distinguishable. This shows that the learning dictionary in DLNLRR is conducive to grasp the subspace structure of highdimensional data. Finally, we would like to further explain the visualization of DLNLRR on Pollen dataset. As shown in Fig. 5B, for the Pollen dataset of 11 clusters, no method can completely separate the clusters. Compared with tSNE and MPSSC, the DLNLRR method shows less overlap and compactness. Compared with SinNLRR, the DLNLRR method shows better distinguish ability between different types of data.
Gene markers
Gene marker prioritization has attracted extensive attention since it was proposed. Gene markers have rich in biological information, which helps to distinguish cell subpopulations and reveals the complexity of cells. In this subsection, we identify the gene markers for each cell type in the Darmanis dataset based on the learned lowrank matrix. First, Bootstrap Laplacian scoring [12] is performed on the lowrank matrix to extract its gene markers. Then, the gene markers are arranged in descending order according to their importance in identifying subsets of cells. The top 10 gene markers in the Damanis dataset are shown in Fig. 6. In Fig. 6, we use the depth of color to express their expression level. The darker the color is, the higher the expression level is. The size of the circle indicates the percentage of genes expressed in each cell. The Darmanis dataset contains 420 brain cells from fetuses and adults. They included 16 microglia, 18 oligodendrocyte progenitor cells (OPC), 20 endothelial cells, 25 fetal replating neurons, 38 oligodendrocytes, 62 astrocytes, 110 fetal quiescent neurons, and 131 neurons [35]. In Fig. 6, the MAP1B, TUBA1A genes get trapped in the development of fetal quiescent neurons and become important components of cell survival and differentiation [49, 50]. Furthermore, MAP1B gene overexpression is also connected with neuronal activation. The SLC1A2, SLC1A3, AQP4, GLUL and SPARCL1 genes have been confirmed to be highly expressed in astrocytes, and their mutations or mutations are often closely related to various diseases [16, 51, 52]. PLP12, CLDND1 and TMEM144 genes are stably expressed in the myelin of oligodendrocytes [53]. The protein encoded by PLP12 may play important roles in myelin compaction, stabilization and maintenance, and promote oligodendrocyte development and axon survival. The protein encoded by AQP4 is the main aquaporin in the brain and plays a key role in cerebral hydro homeostasis. Articles published confirm PLP12 and AQP4 were astrocytes and oligodendrocytes marker genes [54].
Conclusions
The development of scRNAseq and highthroughput technologies has facilitated the exploration of singlecell function and brings computational challenges to reveal the relationship between cell lineages. Cell clustering and extraction of gene markers are important research components of analyzing scRNAseq data. In this paper, we propose the DLNLRR method for scRNAseq data analysis. Inspired by the idea of CF, DLNLRR uses the linear combination of original data to construct the dictionary. Instead of using the predefined dictionary, DLNLRR can update the dictionary in the iterative solution process, which is helpful to obtain the mapping benchmark that can better represent the subspace, and then obtain the subspace structure of data accurately. In addition, in the DLNLRR model, we can cluster the samples directly based on the LRR matrix, which can avoid the influence of spectral clustering algorithms on the clustering results.A large number of experiments in this paper show that DLNLRR can capture local structures in the data, and can quickly and accurately obtain clustering results, which has advantages in cell type recognition.
However, our method still has some limitations. More comprehensive experiments and analysis are needed. Our method has only been tested on real single cell sequencing datasets, and has not verified whether it is effective on other datasets or largescale datasets. In addition, our method requires preset parameters, which may affect the performance of the method. The scRNAseq data analysis still faces some challenges, such as the identification of cluster numbers, the independent selection of appropriate parameters, etc. In the next work, we will continue to explore adaptive parameter selection methods and the application of LRR on the scRNAseq datasets, and pay attention to the development of ensemble clustering technology for scRNAseq data analysis.
Availability of data and materials
There are no new data associated with this article. We downloaded Published datasets from databases provided by the National Biotechnology Information Retrieval Database (NCBI) and the European Institute for Bioinformatics (EMBLEBI).In addition, the source code and experimental data of the DLNLRR method can be found at https://github.com/NANAZHANG95/DLNLRRmaster.
Abbreviations
 scRNAseq:

Singlecell RNAsequencing
 SC:

Spectral clustering
 SSC:

Sparse subspace clustering
 LRR:

Lowrank representation
 CF:

Concept Factorization
 NMF:

Nonnegative Matrix Factorization
 NMI:

Normalized Mutual Information
 ARI:

Adjusted Rand Index
 LADMAP:

the penalty term adaptive linear alternating direction
References
Cao JY, Packer JS, Ramani V, Cusanovich DA, Huynh C, Daza R, Qiu X, Lee C, Furlan SN, Steemers FJ, Adey A, Waterston RH, Trapnell C, Shendure J. Comprehensive singlecell transcriptional profiling of a multicellular organism. Science. 2017;357(6352):661â€“7.
Wang CC, Han CD, Zhao Q, Chen X. Circular rnas and complex diseases: from experimental results to computational models. Brief Bioinform. 2021;22(6):bbab286.
Tang Q, Nie FL, Zhao Q, Chen W. A merged molecular representation deep learning method for bloodbrain barrier permeability prediction. Brief Bioinform. 2022;23(5):bbac357.
Saliba AE, Westermann AJ, Gorski SA, Vogel J. Singlecell rnaseq: advances and future challenges.Nucleic Acids Res. 2014;42(14):88458860.
Macaulay IC, Voet T. Single cell genomics: advances and future perspectives. PLoS Genet. 2014;10(1): e1004126.
Shalek AK, Satija R, Shuga J, Trombetta JJ, Gennert D, Lu D, Chen P, Gertner RS, Gaublomme JT, Yosef N, Schwartz S, Fowler B, Weaver S, Wang J, Wang X, Ding R, Raychowdhury R, Friedman N, Hacohen N, Park H, May AP, Regev A. Singlecell rnaseq reveals dynamic paracrine control of cellular variation. Nature. 2014;510(7505):363â€“9.
Trapnell C. Defining cell types and states with singlecell genomics. Genome Res. 2015;25(10):1491â€“8.
Steinley D. Kmeans clustering: A halfcentury synthesis. Br J Math Stat Psychol. 2006;59(1):1â€“34.
von Luxburg U. A tutorial on spectral clustering. Stat Comput. 2007;17(4):395â€“416.
Lu CY, Yan SC, Lin ZC. Convex sparse spectral clustering: Singleview to multiview. IEEE Trans Image Process. 2016;25(6):2833â€“43.
Xu C, Su ZC. Identification of cell types from singlecell transcriptomes using a novel clustering method. Bioinformatics. 2015;31(12):1974â€“80.
Wang B, Zhu J, Pierson E, Ramazzotti D, Batzoglou S. Visualization and analysis of singlecell rnaseq data by kernelbased similarity learning. Nat Methods. 2017;14(4):414â€“6.
Kiselev VY, Kirschner K, Schaub MT, Andrews T, Yiu A, Chandra T, Natarajan KN, Reik W, Barahona M, Green AR, Hemberg M. Sc3: consensus clustering of singlecell rnaseq data. Nat Methods. 2017;14(5):483â€“6.
Park S, Zhao H. Spectral clustering based on learning similarity matrix. Bioinformatics. 2018;34(12):2069â€“76.
Jiang H, Sohn LL, Huang H, Chen L. Single cell clustering based on cellpair differentiability correlation and variance analysis. Bioinformatics. 2018;34(21):3684â€“94.
Zheng RQ, Li M, Liang ZL, Wu FX, Pan Y, Wang JX. Sinnlrr: a robust subspace clustering method for cell type detection by nonnegative and lowrank representation. Bioinformatics. 2019;35(19):3642â€“50.
Wei Xu YG. Document clustering by concept factorization. ACM conference on Research and development in information retrieval  SIGIRâ€™. 2004;04:202â€“9.
Wei L, Wang XF, Wu AH, Zhou RG, Zhu CM. Robust subspace segmentation by selfrepresentation constrained lowrank representation. Neural Process Lett. 2018;48(3):1671â€“91.
Liu GC, Lin ZC, Yan SC, Sun J, Yu Y, Ma Y. Robust recovery of subspace structures by lowrank representation. IEEE Trans Pattern Anal Mach Intell. 2013;35(1):171â€“84.
Cai JF, Candes EJ, Shen ZW. A singular value thresholding algorithm for matrix completion. SIAM J Optim. 2010;20(4):1956â€“82.
Cai D, He XF, Han JW, Huang TS. Graph regularized nonnegative matrix factorization for data representation. IEEE Trans Pattern Anal Mach Intell. 2011;33(8):1548â€“60.
Sun FY, Sun JQ, Zhao Q. A deep learning method for predicting metabolitedisease associations via graphb neural network. Brief Bioinform. 2022;23(4):bbac266.
Yin M, Gao JB, Lin ZC. Laplacian regularized lowrank representation and its applications. IEEE Trans Pattern Anal Mach Intell. 2016;38(3):504â€“17.
Liu XM, Zhai DM, Zhao DB, Zhai GT, Gao W. Progressive image denoising through hybrid graph laplacian regularization: A unified framework. IEEE Trans Image Process. 2014;23(4):1491â€“503.
Lee DD, Seung HS. Learning the parts of objects by nonnegative matrix factorization. Nature. 1999;401(6755):788â€“91.
Ren X, Lin ZC. Linearized alternating direction method with adaptive penalty and warm starts for fast solving transform invariant lowrank textures. Int J Comput Vis. 2013;104(1):1â€“14.
Lu CS. Solution of the matrix equation ax+xb = c. Electronics Letters. 2007;7(8):185186.
Treutlein B, Brownfield DG, Wu AR, Neff NF, Mantalas GL, Espinoza FH, Desai TJ, Krasnow MA, Quake SR. Reconstructing lineage hierarchies of the distal lung epithelium using singlecell rnaseq. Nature. 2014;509(7500):371â€“5.
Ting DT, Wittner BS, Ligorio M, Jordan NV, Shah AM, Miyamoto DT, Aceto N, Bersani F, Brannigan BW, Xega K, Ciciliano JC, Zhu HL, MacKenzie OC, Trautwein J, Arora KS, Shahid M, Ellis HL, Qu N, Bardeesy N, Rivera MN, Deshpande V, Ferrone CR, Kapur R, Ramaswamy S, Shioda T, Toner M, Maheswaran S, Haber DA. Singlecell rna sequencing identifies extracellular matrix gene expression by pancreatic circulating tumor cells. Cell Rep. 2014;8(6):1905â€“18.
Deng QL, Ramskold D, Reinius B, Sandberg R. Singlecell rnaseq reveals dynamic, random monoallelic gene expression in mammalian cells. Science. 2014;343(6167):193â€“6.
Pollen AA, Nowakowski TJ, Shuga J, Wang X, Leyrat AA, Lui JH, Li N, Szpankowski L, Fowler B, Chen P, Ramalingam N, Sun G, Thu M, Norris M, Lebofsky R, Toppani D, Kemp nDW, Wong M, Clerkson B, Jones BN, Wu S, Knutsson L, Alvarado B, Wang J, Weaver LS, May AP, Jones RC, Unger MA, Kriegstein AR, West JA. Lowcoverage singlecell mrna sequencing reveals cellular heterogeneity and activated signaling pathways in developing cerebral cortex. Nat Biotechnol. 2014;32(10):10531058.
Goolam M, Scialdone A, Graham SJL, Macaulay IC, Jedrusik A, Hupalowska A, Voet T, Marioni JC, ZernickaGoetz M. Heterogeneity in oct4 and sox2 targets biases cell fate in 4cell mouse embryos. Cell. 2016;165(1):61â€“74.
Engel I, Seumois G, Chavez L, SamaniegoCastruita D, White B, Chawla A, Mock D, Vijayanand P, Kronenberg M. Innatelike functions of natural killer t cell subsets result from highly divergent gene programs. Nat Immunol. 2016;17(6):728â€“39.
Kolodziejczyk AA, Kim JK, Tsang JCH, Ilicic T, Henriksson J, Natarajan KN, Tuck AC, Gao XF, Buhler M, Liu PT, Marioni JC, Teichmann SA. Single cell rnasequencing of pluripotent states unlocks modular transcriptional variation. Cell Stem Cell. 2015;17(4):471â€“85.
Darmanis S, Sloan SA, Zhang Y, Enge M, Caneda C, Shuer LM, Gephart MGH, Barres BA, Quake SR. A survey of human brain transcriptome diversity at the single cell level. Proc Natl Acad Sci U S A. 2015;112(23):7285â€“90.
Knops ZF, Maintz JBA, Viergever MA, Pluim JPW. Normalized mutual information based registration using kmeans clustering and shading correction. Med Image Anal. 2006;10(3):432â€“9.
Meila M. Comparing clusterings an information based distance. J Multivar Anal. 2007;98(5):873â€“95.
Zhang SH, Wong HS, Shen Y. Generalized adjusted rand indices for cluster ensembles. Pattern Recog. 2012;45(6):2214â€“26.
Liu W, Jiang Y, Peng L, Sun XG, Gan WQ, Zhao Q, Tang HR. Inferring gene regulatory networks using the improved markov blanket discovery algorithm. Interdisc SciComput Life Sci. 2022;14(1):168â€“81.
Cheng CD, Easton J, Rosencrance C, Li Y, Ju BS, Williams J, Mulder HL, Pang YK, Chen WA, Chen X. Latent cellular analysis robustly reveals subtle diversity in largescale singlecell rnaseq data. Nucleic Acids Res. 2019;47(22):e143â€“e143.
Hao YH, Hao S, AndersenNissen E, Mauck WM, Zheng SW, Butler A, Lee MJ, Wilk AJ, Darby C, Zager M, Hoffman P, Stoeckius M, Papalexi E, Mimitou EP, Jain J, Srivastava A, Stuart T, Fleming LM, Yeung B, Rogers AJ, McElrath JM, Blish CA, Gottardo R, Smibert P, Satija R. Integrated analysis of multimodal singlecell data. Cell. 2021;184(13):3573â€“87.
Lin PJ, Troup M, Ho JWK. CIDR: Ultrafast and accurate clustering through imputation for singlecell rnaseq data. Genome Biol. 2017;18(1):59.
Grun D, Lyubimova A, Kester L, Wiebrands K, Basak O, Sasaki N, Clevers H, van Oudenaarden A. Singlecell messenger rna sequencing reveals rare intestinal cell types. Nature. 2015;525(7568):251â€“5.
John CR, Watson D, Barnes MR, Pitzalis C, Lewis MJ. Spectrum: fast densityaware spectral clustering for single and multiomic data. Bioinformatics. 2020;36(4):1159â€“66.
Wan S, Kim J, Won KJ. Sharp: hyperfast and accurate processing of singlecell rnaseq data via ensemble random projection. Genome Res. 2020;30(2):205â€“13.
Zappia L, Phipson B, Oshlack A. Exploring the singlecell rnaseq analysis landscape with the scrnatools database. PLoS Comput Biol. 2018;14(6): e1006245.
Yu LJ, Cao Y, Yang JYH, Yang PY. Benchmarking clustering algorithms on estimating the number of cell types from singlecell rnasequencing data. Genome Biol. 2022;23(1):1â€“21.
van der Maaten L, Hinton G. Visualizing data using tsne. J Mach Learn Res. 2008;9:2579â€“605.
Gardner JF, Cushion TD, Niotakis G, Olson HE, Grant PE, Scott RH, Stoodley N, Cohen JS, Naidu S, AttieBitach T, Bonnieres M, Boutaud L, EnchaRazavi F, PalmerSmith SM, Mugalaasi H, Mullins JGL, Pilz DT, Fry AE. Clinical and functional characterization of the recurrent tuba1a p.(arg2his) mutation. Brain Sci. 2018;8(8):145.
Handel AE, Chintawar S, Lalic T, Whiteley E, Vowles J, Giustacchini A, Argoud K, Sopp P, Nakanishi M, Bowden R, Cowley S, Newey S, Akerman C, Ponting CP, Cader MZ. Assessing similarity to primary tissue and cortical layer identity in induced pluripotent stem cellderived cortical neurons through singlecell transcriptomics. Hum Mol Genet. 2016;25(5):989â€“1000.
Bridel C, KoelSimmelink MJA, Peferoen L, Troletti CD, Durieux S, Gorter R, Nutma E, Gami P, Iacobaeus E, Brundin L, Kuhle J, Vrenken H, Killestein J, Piersma SR, Pham TV, De Vries HE, Amor S, Jimenez CR, Teunissen CE. Brain endothelial cell expression of sparcl1 is specific to chronic multiple sclerosis lesions and is regulated by inflammatory mediators in vitro. Neuropathol Appl Neurobiol. 2018;44(4):404â€“16.
Kumar RG, Breslin KB, Ritter AC, Conley YP, Wagner AK. Variability with astroglial glutamate transport genetics is associated with increased risk for posttraumatic seizures. J Neurotrauma. 2019;36(2):230â€“8.
Ying YQ, Yan XQ, Jin SJ, Liang Y, Hou L, Niu WT, Luo XP. Inhibitory effect of lps on the proliferation of oligodendrocyte precursor cells through the notch signaling pathway in intrauterine infectioninduced rats. Curr Med Sci. 2018;38(5):840â€“6.
NumasawaKuroiwa Y, Okada Y, Shibata S, Kishi N, Akamatsu W, Shoji M, Nakanishi A, Oyama M, Osaka H, Inoue K. Involvement of er stress in dysmyelination of pelizaeusmerzbacher disease with plp1 missense mutations shown by ipscderived oligodendrocytes. Stem Cell Rep. 2014;2(5):648â€“61.
Acknowledgements
No applicable.
Funding
This work was supported in part by the National Natural Science Foundation of China (NSFC) under grant Nos. 62172253, 62172254, 61902215, 61902216 and 61972226.
Author information
Authors and Affiliations
Contributions
J.W. provided the methodology. J.W., N.N.Z. and S.S.Y. designed the algorithm. L.Y.D., F.L. and J.L.S. arranged the datasets and performed the analysis. N.N.Z. drafted the manuscript. J.W. and J.X.L. reviewed and edited the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisherâ€™s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Wang, J., Zhang, N., Yuan, S. et al. Nonnegative lowrank representation based on dictionary learning for singlecell RNAsequencing data analysis. BMC Genomics 23, 851 (2022). https://doi.org/10.1186/s12864022090270
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s12864022090270
Keywords
 Dictionary learning
 Lowrank representation
 scRNAseq data analysis
 Subspace clustering
 Cell type identification