Abstract
Motivation
The rapid single-cell transcriptomic technology developments have led to an increasing interest in cellular heterogeneity within cell populations. Although cell-type proportions can be obtained directly from single-cell RNA sequencing (scRNA-seq), it is costly and not feasible in every study. Alternatively, with fewer experimental complications, cell-type compositions are characterized from bulk RNA-seq data. Many computational tools have been developed and reported in the literature. However, they fail to appropriately incorporate the covariance structures in both scRNA-seq and bulk RNA-seq datasets in use.
Results
We present a covariance-based single-cell decomposition (CSCD) method that estimates cell-type proportions in bulk data through building a reference expression profile based on a single-cell data, and learning gene-specific bulk expression transformations using a constrained linear inverse model. The approach is similar to Bisque, a cell-type decomposition method that was recently developed. Bisque is limited to a univariate model, thus unable to incorporate gene-gene correlations into the analysis. We introduce a more advanced model that successfully incorporates the covariance structures in both scRNA-seq and bulk RNA-seq datasets into the analysis, and fixes the collinearity issue by utilizing a linear shrinkage estimation of the corresponding covariance matrices. We applied CSCD to several publicly available datasets and measured the performance of CSCD, Bisque and six other common methods in the literature. Our results indicate that CSCD is more accurate and comprehensive than most of the existing methods.
Availability and implementation
The R package is available on https://github.com/empiricalbayes/CSCDRNA.
1 Introduction
Gene expression profiling measures mRNA levels, showing the pattern of genes expressed by a cell at the transcription level (Fielden and Zacharewski, 2001). It is widely practised by a variety of biomedical researchers, molecular biologists and environmental toxicologists, to characterize cellular or disease states (Tsoucas et al., 2019).
RNA-sequencing of the individual cell or single-cell RNA-sequencing (scRNA-seq) has enabled dissecting transcriptomic heterogeneity, and led to the discovery of novel cell types (Zheng et al., 2017). The rapid single-cell transcriptomic technology developments have led to an increasing interest in cellular heterogeneity within cell populations. Cell-type compositions may be characterized from bulk RNA-seq data, which typically represent total gene expression levels of heterogeneous cell types within tissues.
Many computational tools have been developed in the literature for dissecting cellular content from bulk samples. Perhaps the non-negative least-squares (NNLS) and ordinary least squares (OLS) methods are the most simple approaches utilized in the cell-type decomposition literature (Abbas et al., 2009; Avila Cobos et al., 2020). However, as we show in our data analysis, they may either fail or lead to poor performance. CIBERSORT (Newman et al., 2015) and its next generation, CIBERSORTx (Newman et al., 2019), extract cell-type-specific gene expression signatures from a reference scRNA-seq dataset. They learn cell-type decomposition in bulk expression data by applying a linear support vector regression (SVR) method. These machine learning-based tools were originally designed to analyze microarray data and are expected to perform well for purified cell populations. BSEQ-sc (Baron et al., 2016) extends CIBERSORT and allows for building a reference profile based on scRNA-seq gene expression. Similar to the above methods, the dampened weighted least squares (DWLS) approach of Tsoucas et al. (2019) uses scRNA-seq data to extract cell-type-specific gene expression signatures, and estimates cell-type proportions by improving the OLS approach. The corresponding tool also outputs cell-type proportions estimated by the OLS and SVR approaches based on the generated signature matrix. Note that because the signature matrices created by DWLS and CIBERSORTx are different, the SVR approach used in both tools leads to distinct estimates for the same cell-type proportions.
MuSiC (Wang et al., 2019) performs cell-type decomposition without the need to build a gene expression signature matrix. It utilizes gene expression levels in the scRNA-seq reference data and applies a constrained NNLS regression model to estimate cell-type proportions in the bulk expression data. The corresponding tool also outputs estimated cell-type proportions using the ordinary NNLS method. MuSiC was shown to outperform NNLS, CIBERSORT and BSEQ-sc on two real datasets.
The above-mentioned approaches do not apply any transformation to either scRNA-seq or bulk RNA expression datasets, and assume that there is a direct proportional relationship between both datasets. Bisque (Jew et al., 2020) highlights that different technologies used to generate bulk and scRNA-seq data may cause an issue for decomposition models and the direct proportional relationship assumption may not be true. It was shown in the corresponding publication that these differences may introduce gene-specific biases that negatively impact the correlation between cell-type-specific and bulk tissue measurements. It was concluded that expression profiles of cell types in heterogeneous tissues may not follow the direct proportionality assumptions of regression-based methods. By accounting for such biases, Bisque estimates cell-type proportions in bulk expression data through robust integration of single-cell information, and uses a normalizing transformation on both bulk and single-cell expressions. Bisque was applied on two datasets in which both bulk and single-cell expressions were collected from the same individuals. It was shown that Bisque outperforms CIBERSORT, CIBERSORTx, MuSiC and BSEQ-sc. However, Bisque does not account for gene–gene correlations. The normalization in Bisque is done for each gene separately, while multivariate normalization that accounts for gene–gene correlations seems to be more appropriate. Indeed, to the best of our knowledge, none of the existing methods in the literature have incorporated a multivariate normalization technique to provide such useful information into the analysis, perhaps due to the existence of high gene-gene correlations which in turn leads to the collinearity issue. Here we introduce covariance-based single-cell decomposition (CSCD), an advanced model for analyzing bulk RNAseq datasets that improves on the Bisque method. It estimates cell-type proportions more accurately and successfully utilizes gene-gene correlations into the analysis. We fix the collinearity issue by utilizing a linear shrinkage estimation of the corresponding covariance matrix. We apply CSCD to several publicly available datasets in which both bulk and scRNA-seq were collected from the same individuals. Using gene expression levels in both bulk RNAseq and scRNA-seq data for the same individuals maximizes measurement accuracy, as the real cell-type proportions are known in advance. We compare the performance of CSCD with Bisque, CIBERSORTx, MuSiC, DWLS, OLS, NNLS and SVR. Although our primary aim is to improve on Bisque, our results indicate that CSCD is more accurate and comprehensive than most of the other existing methods used in this article, as well.
The structure of this article is as follows. In Section 1, we introduce the notations used in this article, and explain the method in detail. As our proposed method is built on the model used in Bisque, we quickly review its workflow. In Section 2, we evaluate the performance of CSCD, Bisque, CIBERSORTx, MuSiC, DWLS, OLS, NNLS and SVR on simulated data as well as four publicly available datasets. In Section 3, we compare runtimes of these methods. Discussion and concluding remarks are provided in Section 4.
2 Methods
2.1 Notation
Let C, J and I represent cell types, subjects in the single-cell data and subjects in the bulk expression data, respectively. Also let G represent the total number of genes common in both bulk and single-cell data. For each gene and cell type , we denote average relative abundances across all subjects in the single-cell dataset by Zgc. For each cell type c and subject , let pcj represent the fraction of cell type c. For each gene g and subject , we denote counts per million converted relative abundances in the bulk data by Xgi.
Given pcj and Zgc, the pseudo-bulk for each gene g and subject j is given by , which is a weighted sum of average relative abundances. Let be the matrix containing all Ygj with genes in rows and subjects in columns. Also, let represent the bulk expression data matrix. The corresponding sample mean vectors are given by and , with and . The sample covariance matrices associated with the bulk and single-cell expression datasets are then respectively given by
where for and .
2.2 A novel method
Bisque estimates cell-type proportions pci in bulk RNA-seq data through the integration of single-cell information. In a pre-processing step, Bisque excludes genes with zero variance in the single-cell dataset, unexpressed genes in the bulk expression and mitochondrial genes. Since the distribution of bulk expression (Xgi) may differ from the distribution of the single-cell expression (Ygj), Bisque re-scales the bulk expression data so that the two distributions match more closely. This maximizes the linear relationship across all genes for improved decomposition. Bisque replaces Xgi by the gene-specific transformation so that it satisfies , where is a variance shrinkage factor, due to the small number of subjects in the single-cell dataset. Then, for each subject i in the bulk expression data, cell-type proportion pci is estimated using the NNLS regression with a sum-to-one constraint, i.e. by minimizing the norm
| (1) |
where
such that .
We apply the same pre-processing steps used in Bisque. Although the univariate transformation in Bisque accounts for changes across individuals in both the bulk and single-cell datasets, it is unable to account for gene-gene correlations. Consequently, this may affect the estimation accuracy. Instead of the transformation , we suggest replacing X by so that it satisfies, or equivalently , where and stand for the root of the sample covariance matrix and the inverse of the root of the sample covariance matrix , respectively. The above transformation leads to inclusion of gene-gene correlations into the model. However, calculating the inverse and/or the root of the covariance matrices appeared in the transformation may be a challenge. Gene expression covariance matrices have a very large dimension, compared to the number of observations/subjects. It is well known that such covariance matrices perform poorly, are expected to suffer from ill-conditioning, and might not even be invertible. To overcome such challenges, there are ways to arrive at modified covariance matrix estimators. Incorporating some additional knowledge in the estimation process, such as sparseness, a graph model ora factor model may be ideal, see for example Bickel and Levina (2008), Khare and Rajaratnam (2011) and Cai and Zhou (2012) among many others. However, such additional knowledge is not always available. Alternatively, it may be reasonable to look for rotation-equivariant covariance matrix estimators, i.e. matrices with the same eigenvectors. This implies that a sample covariance matrix can be differentiated by its eigenvalues. On the other hand, according to Ledoit and Wolf (2004), the largest sample eigenvalues are biased upwards, and the smallest ones downwards. Therefore, it is possible to modify the sample covariance matrix by shrinking its eigenvalues towards their grand mean. Indeed, shrinkage estimation of the covariance matrix has become one of the most successful approaches. Ledoit and Wolf (2004) introduce a linear shrinkage estimation of the covariance matrix, and later, Ledoit and Wolf (2012) present a non-linear shrinkage estimation method. The latter clarifies that if the number of variables (genes in the current study) are significantly higher than the number of observations, the linear shrinkage estimation is more appropriate than the non-linear approach. To fix the above-mentioned issue, we apply the linear shrinkage estimation of Ledoit and Wolf (2004) on the sample covariance matrices and , and denote the resulting estimates by and , respectively. The final transformed bulk expression data matrix is then given by
| (2) |
Cell-type proportions can now be obtained by minimizing the norm (1), with being replaced by the i-th column of .
The covariance-based bulk expression transformation in (2) is ideal due to the fact that it is able to extract and utilize all the information (univariate and multivariate changes) from both bulk and single-cell datasets into analysis. Nevertheless, the inclusion of all genes to the analysis may lead to imprecise results. Obviously, if one categorizes all genes to several cell-type clusters, some genes may appear in all or most of them. This may negatively influence the cell-type proportion estimation accuracy. To overcome this issue, we identify cluster marker genes (marker genes that are recognized to be differentially expressed within the cell-type clusters) using the FindAllMarkers function of the Seurat package (Hao et al., 2021). In this approach, the expression for a given gene g among cells in a given cell-type cluster c is compared against the expression of that gene among cells in all other cell-type clusters, say . We look at the percentage of cells in the cluster c where the gene is detected (say pgc) and the percentage of cells of other types (say ). Ideally, a cluster marker gene is expected to be expressed exclusively in that cluster and silenced in all other clusters and thus for each gene g in cluster c, pgc is expected to be high (towards one) and is expected to be low (towards zero). It may be reasonable to consider a 0.5 threshold for the difference between pgc and . Thus, we excluded marker genes for which . The 0.5 threshold may be replaced by some arbitrary values. The smaller this threshold, the more genes to be included in the final list of gene markers. We further remove common marker genes that appear in multiple clusters. This leads to a list of final marker genes that each falls into only one cell-type cluster and reduces the number of common genes between cell types to zero. The final gene list is then used to compute the transformed expression levels in (2). The final cell-type proportions are given by minimizing the norm (1) with being replaced by the i-th column of .
3 Results
The reference-based decomposition approach presented in this article requires both bulk and scRNA-seq datasets that contain expression levels of multiple subjects. ScRNA-seq data may be collected from individuals involved in the same study or similar studies conducted by other labs. It is assumed that scRNA-seq data includes cell-type as well as subject labels. A reference profile (Z) is constructed by read count abundance averaging within each cell-type category. Given the generated single-cell profile and cell-type proportions observed in the single-cell data, the method applies a multivariate transformation to the original bulk data. Given the single-cell reference profile and transformed bulk expression data, CSCD learns cell-type composition using a constrained linear inverse model (Wang et al., 2017).
3.1 Performance evaluation
In this section, we evaluate the performance of CSCD and seven other common tools (Bisque, CIBERSORTx, MuSiC, DWLS, OLS, NNLS and SVR) on several publicly available datasets. Table 1 represents cell counts in the single-cell datasets used in this article. Accuracy was maximized by using datasets for which both bulk and single-cell expression levels were available from the same individuals. Thus, real cell-type proportions for all samples in the bulk expression data are known.
Table 1.
Cell counts in different single-cell datasets used in this article
| Dataset | Cells and counts | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Human embryonic stem cells | Neuronal progenitor cell (NPC) 173 | Definitive endoderm cell (DEC) 138 | Endothelial cell (EC) 105 | Trophoblast-like (TB) 69 | Human foreskin fibroblast (HFF) 159 | H1 212 | H9 162 | |||||
| Melanoma tumor data | Malignant | Cancer-associated fibroblast (CAF) | Natural killer (NK) | Endothelial (Endo) | Macrophage (Macro) | T | B | |||||
| 1668 | 56 | 51 | 62 | 120 | 1954 | 512 | ||||||
| Pancreatic islets data | Pluripotent stem cell (PSC) | Acinar | Alpha | Beta | Co-expression | Delta | Dacutal | Endothelial | Epsilon | Gamma | Unclassified endocrine | Unclassified cell |
| 18 | 86 | 254 | 101 | 17 | 21 | 89 | 9 | 4 | 48 | 9 | 1 | |
| Cortex tissue data | Astrocyte (Astr) | Endothelial (Endo) | Excitatory neuron (Exc) | Inhibitory neuron (Inh) | Microglia (Micr) | Oligodendrocyte progenitor cell (OPC) | Oligodendrocyte (Olig) | Pericyte (Peri) | ||||
| 10 256 | 876 | 19 150 | 8233 | 2496 | 2586 | 16 232 | 559 | |||||
The Spearman correlation (R) has become a common tool in measuring cell-type estimation accuracy in the literature. In addition to reporting R, we measure the difference between the real and estimated cell-type proportions by mean squared error (MSE) and mean absolute error (MAE) to evaluate the performance of different methods. The higher the correlation R, the better the model performance. Similarly, the smaller the MSE (or MAE), the more accurate the corresponding method.
3.2 Evaluation using simulated data
To evaluate the performance of CSCD, we first performed a simulation study. We used ESCO (Tian et al., 2021) to simulate realistic single-cell expression data by incorporating gene co-expression. The simulator relies on parameters such as number of genes , number of cells , number of cell types , probability that a gene is differentially expressed in a group (), location parameter for the differential expression factor log-normal distribution (), scale parameter for the differential expression factor log-normal distribution () and percentage of different cell types. Using ESCO, we simulated single-cell datasets in 100 iterations with parameters ng = 10 000, nc = 1000, Nc = 5, . These parameter values where chosen randomly. To ensure that the simulation allows for different cell-type proportions, in each iteration, we generated random percentages of different cell types, say, so that . We also generated pseudo-bulk data based on the single-cell data simulated in each iteration. We then used all the eight methods to estimate cell-type proportions in each iteration and calculated averages of the corresponding R, MSE and MAE values, as presented in Table 2. As we observe from the table, CSCD led to the highest correlation among the other methods. CIBERSORTx and Bisque reported very close correlation values and led to the second and third top methods, respectively. Looking at the MSE and MAE values, it is observed that CSCD outperformed all the other methods. Bisque, as the second top method, led to very close MSE and MAE values to CSCD. DWLS is the third top method in terms of both MSE and MAE values. Overall, it is concluded that CSCD performed better than the other methods in the simulated data.
Table 2.
Performance measures of different cell-type estimation methods in the simulated data
| Measure | CSCD | Bisque | CIBERSORTx | MuSiC | SVR | NNLS | DWLS | OLS |
|---|---|---|---|---|---|---|---|---|
| R | 0.3359 | 0.1660 | 0.1673 | 0.0147 | 0.0070 | 0.0005 | 0.0861 | −0.0059 |
| MSE | 0.00010 | 0.00011 | 0.06868 | 0.03352 | 0.06623 | 0.03589 | 0.03313 | 0.03810 |
| MAE | 0.00769 | 0.00836 | 0.18951 | 0.13952 | 0.19509 | 0.14375 | 0.13597 | 0.14944 |
3.3 Evaluation on human embryonic stem cells
We first benchmarked all the eight decomposition methods using expression data collected from 1018 purified human embryonic stem cell samples of seven cell types generated from various lineage-specific progenitors (Chu et al., 2016). See Table 1 for the distribution of the cells in the corresponding single-cell reference data. A total of 19 bulk samples from these cell types were sequenced. This includes duplicates for definitive endoderm cell, neuronal progenitor cell and trophoblast-like, triplicates for H9, EC and HFF, and four replicates for H1. Both bulk and scRNA-seq data were collected from the same individuals. For more accuracy, we merged replicates of different cell types which reduced the bulk data to seven samples. Here, with a different purpose than Chu et al. (2016), we analyzed the bulk and single-cell expression data to assess the accuracy of the different cell-type decomposition methods.
Figure 1 represents a jitter plot of the estimated cell-type proportions using the different methods for the seven purified bulk samples. Each panel represents real and estimated values for the labeled cell type. Because cell samples are purified, only one individual in each panel is expected to have a cell-type proportion of one and the remaining cell-type proportions should be zero. The figure represents proportions estimated by CSCD, Bisque, CIBERSORTx, SVR, OLS and DWLS. MuSiC and NNLS failed due to a ‘not enough valid cell type’ error. Based on the real and estimated cell-type proportions, it is obvious from the jitter plot that CIBERSORTx and SVR performed very well. This was expected, as CIBERSORTx was originally developed for data that utilizes a reference generated from purified cell populations, see Jew et al. (2020). The SVR approach implemented in DWLS also uses a similar approach to estimate cell-type proportions. Based on the figure, DWLS seems to be the third top method. The performance of these tools is compared in Table 3, which summarizes the R, MSE and MAE measurements. The results in the table also confirm CIBERSORTx and SVR methods significantly outperformed the other methods. DWLS also outperformed the rest of the methods. Although Bisque led to a bit higher correlation than CSCD, it led to higher MSE and MAE values than CSCD. In two of the three measurements, CSCD outperformed Bisque.
Fig. 1.
Jitter plot of estimated cell-type proportions for seven bulk samples in human embryonic stem cells data. Each panel represents estimated values for the labeled cell type. Different colors represent different estimation methods. MuSiC and NNLS failed to estimate cell-type proportions
Table 3.
Performance measures of different cell-type estimation methods based on seven bulk samples in the human embryonic stem cells data
| Measure | CSCD | Bisque | CIBERSORTx | MuSiC | SVR | NNLS | DWLS | OLS |
|---|---|---|---|---|---|---|---|---|
| R | 0.6124 | 0.6513 | 0.7203 | — | 0.7445 | — | 0.6042 | 0.5823 |
| MSE | 0.0245 | 0.0321 | 0.0047 | — | 0.0058 | — | 0.0123 | 0.1109 |
| MAE | 0.1051 | 0.1063 | 0.0281 | — | 0.0179 | — | 0.0361 | 0.1813 |
Note: MuSiC and NNLS failed to estimate cell-type proportions.
3.4 Evaluation on melanoma tumor data
We also benchmarked all the eight decomposition methods using expression data collected from 19 freshly procured melanoma tumors spanning a range of clinical and therapeutic backgrounds (Tirosh et al., 2016). The corresponding scRNA-seq data includes cells isolated from 19 patients, profiling malignant, immune, stromal and endothelial cells. The cells have been grouped as either malignant (1668 cells) or non-malignant (2755 cells) on the basis of their expression profiles and using the t-distributed stochastic neighbor embedding (t-SNE) method (Van der Maaten and Hinton, 2008), see Table 1. Bulk gene expression levels for the same individuals were retrieved from Cibersortx’s tutorial webpage.
Figure 2 represents a jitter plot of the estimated cell-type proportions using the different methods for the 19 bulk samples. Comparing the real and estimated cell-type proportions, one may conclude that CSCD, Bisque and Cibersortx outperformed the other methods. However, for a more quantitative comparison, Table 4 summarizes the R, MSE and MAE measurements. The table illustrates that all methods led to high correlation, with CIBERSORTx gaining the highest correlation, followed by CSCD and Bisque. Looking at the MSE and MAE values, we observe that CSCD outperformed all the other methods. Bisque and CIBERSORTx were the second and third top methods leading to minimum MSEs and MAEs.
Fig. 2.
Jitter plot of estimated cell-type proportions for 19 bulk samples in the melanoma tumor data. Each panel represents estimated values for the labeled cell type. Different colors represent different estimation methods
Table 4.
Performance measures of different cell-type estimation methods based on 19 bulk samples in the melanoma tumor data
| Measure | CSCD | Bisque | CIBERSORTx | MuSiC | SVR | NNLS | DWLS | OLS |
|---|---|---|---|---|---|---|---|---|
| R | 0.7548 | 0.7471 | 0.7609 | 0.7036 | 0.6534 | 0.4700 | 0.6694 | 0.6067 |
| MSE | 0.0040 | 0.0052 | 0.0063 | 0.0154 | 0.0166 | 0.0733 | 0.0085 | 0.0143 |
| MAE | 0.0357 | 0.0406 | 0.0465 | 0.0750 | 0.0739 | 0.1585 | 0.0548 | 0.0715 |
3.5 Evaluation on pancreatic islets data
We also benchmarked these decomposition methods using expression data collected from human pancreatic islets (Segerstolpe et al., 2016). The scRNA-seq data were collected from six healthy and four type-2 diabetic (T2D) donors. The bulk data were collected from three of the six healthy individuals in the scRNA-seq data and four different T2D donors.
To maximize measurement precision, we evaluated the performance of the different methods based on the three healthy donors for which both bulk and scRNA-seq data are available. See Table 1 for the cell counts. We excluded the unclassified cell from our analysis.
Figure 3 represents a jitter plot of the estimated cell-type proportions using the different methods for the three common donors. Different methods performed differently. It is not easy to make an overall judgment based on this figure alone. However, the figure is informative in the beta estimates, which was reported to be very important (Wang et al., 2019). The real beta proportions in the scRNA-seq data are around 20 percent. Also, CSCD was the only method that correctly detected real beta proportions in the bulk samples. For a more quantitative comparison, Table 5 summarizes the R, MSE and MAE values. The table illustrates that all methods led to positive correlation, with CSCD gaining the highest correlation. Looking at the MSE and MAE measurements, we observe that CSCD outperformed all the other methods. Bisque and SVR were the second and third top methods leading to minimum MSEs and MAEs.
Fig. 3.
Jitter plot of estimated cell-type proportions for three bulk samples in the pancreatic islets data. Each panel represents estimated values for the labeled cell type. Different colors represent different estimation methods
Table 5.
Performance measures of different cell-type estimation methods based on three bulk samples in the pancreatic islets data
| Measure | CSCD | Bisque | CIBERSORTx | MuSiC | SVR | NNLS | DWLS | OLS |
|---|---|---|---|---|---|---|---|---|
| R | 0.7727 | 0.5787 | 0.6708 | 0.3000 | 0.4213 | 0.2134 | 0.5455 | 0.3025 |
| MSE | 0.0031 | 0.0050 | 0.0518 | 0.0209 | 0.0118 | 0.0317 | 0.0197 | 0.0168 |
| MAE | 0.0313 | 0.0436 | 0.1191 | 0.0762 | 0.0687 | 0.1004 | 0.0763 | 0.0873 |
Cell-specific decomposition accuracy was also evaluated using two other well-characterized datasets. Fadista et al. (2014) provide a comprehensive catalog of novel genetic variants influencing gene expression and metabolic phenotypes in human pancreatic islets. Their study includes expression levels of 89 bulk donors. The data also includes hemoglobin A1c (HbA1c) levels, which is an important biomarker for T2D and is expected to have a negative relationship with beta proportions (Wang et al., 2019). Indeed, T2D is characterized by the inability of the beta cells to secrete enough insulin to overcome insulin resistance in peripheral tissues (Xin et al., 2016). Of the 89 bulk samples, the HbA1c level information is available for 77 individuals, which includes 51 healthy and 26 diabetic individuals. Xin et al. (2016) used single-cell RNA-seq to measure the transcriptomes in 1492 human islet cells from 12 healthy and 6 T2D organ donors. They focused on four major endocrine cell types (alpha, beta, delta and gamma). The scRNA-seq data for healthy samples was composed of 354 alpha, 194 beta, 28 delta and 33 gamma cells, while the scRNA-seq data for T2D samples was composed of 532 alpha, 278 beta, 21 delta and 52 gamma cells.
We used the scRNA-seq datasets to capture cell-type proportions in the bulk samples. Figure 4 represents estimated beta cell-type proportions versus HbA1c levels (after outlier removal) as well as P-values for a negative Spearman correlation test (a one-sided Spearman test for a negative correlation) between the beta cell-type proportions and HbA1c levels. Based on the P-values, DWLS, CSCD, SVR and CIBERSORTx were successfully able to detect a strong negative relationship between beta proportions and HbA1c levels. It is remarkable that SVR and OLS reported lower estimated values than the other methods.
Fig. 4.
HbA1c levels versus estimated beta proportions in bulk samples in the pancreatic islets data (Fadista et al., 2014). The P-values were obtained using a negative Spearman correlation test between beta proportions and HbA1c levels
3.6 Evaluation on cortex tissue data
As another application, we benchmarked all these decomposition methods using expression data collected from dorsolateral prefrontal cortex (DLPFC). This dataset was generated by the Rush Alzheimer’s Disease (AD) Center (Mostafavi et al., 2018) and includes 636 postmortem bulk RNA-seq samples. The scRNA-seq data were collected from 24 of the 636 individuals. The scRNA-seq data include 162 767 cells that have already been clustered into eight clusters, as provided in Table 1. To manage the memory limit available on our system, we randomly selected eight individuals and this reduced the number of cells to 60 388 cells, see Table 1. We remark that most scRNA-seq data consist of only a few samples. Similarly, Bisque (Jew et al., 2020) developers also used eight individuals to study the performance of their method. We further, similar to Bisque, sampled 25% of the nuclei in the scRNA-seq data to accommodate CIBERSORTx’s uploading limitation, which currently is 1 GB.
Figure 5 represents a jitter plot of the estimated cell-type proportions using the different methods for the eight individuals common in both bulk and scRNA-seq samples. Each panel represents real and estimated values for the labeled cell type. From the figure, it is obvious that all methods except Bisque and CSCD either under-estimated or over-estimated the proportions. CIBERSORTx, MuSiC and NNLS under-estimated Peri cell-type proportions while SVR, DWLS and OLS over-estimated them. All the methods except Bisque and CSCD under-estimated Exc proportions. Quantitative comparison of data is summarized in Table 6 and shows the corresponding R, MSE and MAE values. From this table, we observe that all methods led to poor correlation results. CIBERSORTx led to a negative correlation, and CSCD, DWLS and SVR led to a bit higher correlation. Looking at MSE and MAE measurements in Table 6, it is observed that CSCD outperformed all the other tools. Bisque and DWLS were the second and third top methods, respectively.
Fig. 5.
Jitter plot of estimated cell-type proportions for eight bulk samples in the cortex tissue data. Each panel represents estimated values for the labeled cell type. Different colors represent different estimation methods
Table 6.
Performance measures of different cell-type estimation methods based on eight bulk samples in the cortex data
| Measure | CSCD | Bisque | CIBERSORTx | MuSiC | SVR | NNLS | DWLS | OLS |
|---|---|---|---|---|---|---|---|---|
| R | 0.1250 | 0.0179 | −0.0598 | 0.0003 | 0.1499 | 0.0206 | 0.1577 | 0.0486 |
| MSE | 0.0014 | 0.0015 | 0.0749 | 0.0663 | 0.0231 | 0.1230 | 0.0129 | 0.0274 |
| MAE | 0.0234 | 0.0266 | 0.1818 | 0.1812 | 0.1235 | 0.2188 | 0.0881 | 0.1340 |
We further applied these decomposition methods to estimate cell-type proportions in the remaining 628 individuals based on expression levels of the eight distinct individuals in the scRNA-seq data. Figure 6 represents the observed scRNA-seq proportions as well as estimated proportions using the eight methods. The figure illustrates that both CSCD and Bisque were successfully able to preserve the distribution of the scRNA-seq data, and produced estimates in bulk data that were significantly close to the scRNA-seq observations.
Fig. 6.
Jitter plot of estimated cell-type proportions for 628 bulk samples in the cortex tissue data. Each panel represents estimated values for the labeled cell type. Different colors represent different estimation methods
To determine cell-specific decomposition accuracy, we measured association between neuron proportions (the sum of Exc and Inh proportions) and each individual physician cognitive diagnostic category at time of death (cogdx). Neural death is a hallmark symptom of AD (Yankner, 1996), and a negative association between cogdx and neuron proportion is expected (Jew et al., 2020). The cogdx provides a semiquantitative measure of dementia severity ranging from 1 (no cognitive impairment) to 5 (a confident diagnosis of AD by physicians). Figure 7 represents estimated neuron proportion according to different cogdx levels. Based on this figure alone, it is difficult to make any inference on association between cogdx and proportions. We further validated the negative relationship between codex levels and neuron proportions. Because the cogdx variable has ordered discrete levels from 1 to 5, we used the Jonckheere–Terpstra test (Jonckheere, 1954), after outlier removal. We included the resulting P-values in Figure 7. Based on the P-values and the significance level 0.01, we observe that all methods except NNLS were able to identify the expected negative association between neuron proportions and cogdx levels. It is notable that SVR, OLS, NNLS and MuSiC reported lower estimated proportion values than the other methods.
Fig. 7.
Jitter plot of estimated neuron proportions for 628 bulk samples in the cortex tissue data, according to individuals physician cognitive diagnostic category at time of death. Each panel represents neuron proportions estimated by one of the eight different methods
4 Runtime comparison
In this section, we benchmarked these decomposition methods in terms of their runtime on a shared computer cluster with 40 CPUs and 500 GB of RAM. Table 7 summarizes runtimes in seconds on the datasets analyzed in the proceeding section. From the table, we observe that Bisque, MuSiC/NNLS and CSCD were faster than CIBERSORTx, SVR, DWLS and OLS. For example, looking at the cortex tissue data, Bisque, CSCD and MuSiC/NNLS took 2.1, 4.0 and 41.1 s, respectively, while CIBERSORTx took 236.1 s, and SVR, DWLS and OLS took more than 1500 s to run. The table illustrates that CSCD is a bit slower than Bisque, which is due to the implementation of the covariance-based transformation, but it is still faster than most of the other methods.
Table 7.
Runtimes of different decomposition methods in seconds
| Datasets | CSCD | Bisque | CIBERSORTx | MuSiC NNLS | SVR | DWLS | OLS |
|---|---|---|---|---|---|---|---|
| Embryonic cells | 11.5 | 8.1 | 64.7 | — | 675.3 | 690.4 | 669.1 |
| Pancreatic islets | 64.5 | 7.6 | 63.4 | 11.2 | 1123.6 | 1182.4 | 1098.3 |
| Cortex tissue | 4.0 | 2.1 | 236.1 | 41.1 | 1549.8 | 1621.9 | 1528.1 |
| Melanoma | 45.5 | 19.8 | 95.8 | 4.9 | 1226.3 | 1257.6 | 1225.6 |
Note: Dashes stand for failed methods.
5 Discussion and concluding remarks
In this article, we presented a reference-based decomposition method. We introduced the CSCD approach and illustrated the method performance by analyzing several datasets. Our primary goal was to improve on Bisque. However, CSCD outperformed most of the existing methods evaluated in this study. By using both bulk and scRNA-seq datasets that were collected from the same individuals, we observed that CSCD is able to capture the expected cell-type proportions.
The method is executable by the inclusion of all genes in the bulk and/or scRNA-seq data in the analysis. However, it may lead to imprecise results, as some genes may appear in most (or all) of cell-types categories. To overcome this issue, one may select genes to be included in the analysis based on a preferred marker gene list. This is indeed the way scRNA-seq data are often prepared. Clusters in scRNA-seq data are constructed based on a pre-collected list of identified marker genes. Genes not on the original list are then assigned to clusters using some probabilistic approaches such as the nearest neighbor or t-SNE clustering, which could in turn be a source of noise. If such an original marker gene list was available in addition to a given scRNA-seq dataset, one could just base the analysis on the makers on the given list. Otherwise, we suggest identifying marker genes using one of the existing approaches in the literature. We used the MAST approach (Finak et al., 2015) implemented in the FindAllMarkers function of the Seurat package (Hao et al., 2021), and our results indicated that this approach works well. However, the fact that the CSCD algorithm removes all genes that are expressed in more than one cluster may be problematic for cell types with few marker genes or closely related cell types that share many marker genes.
CSCD is similar to Bisque in the sense that it is a transformation-based approach and standardizes gene expression levels but its strength is the ability to successfully incorporate the covariance structures in both scRNA-seq and bulk RNA-seq datasets into the analysis. This leads to a more accurate transformation and more accurate cell-type estimates. Also, CSCD applies the linear shrinkage estimation of the covariance matrices, accounting for the collinearity issue, which is common in every multivariate large-scale data analysis.
CSCD and Bisque were robust to changes in data sources. For example, looking at the cortex tissue data, CSCD was the top method, and Bisque and DWLS were the second and third top methods, respectively. Looking at the pancreatic islets data, CSCD and Bisque were the first and second top methods, with SVR being the third. Both Bisque and CSCD rely on transformations to match the distribution of both single-cell expression and bulk expression data. This requires enough samples in both datasets. Having a small number of individuals may lead to unreliable results. Also, both Bisque and CSCD preserve the distribution of data in scRNA-seq. Both methods assume that the resulting single-cell-based estimates of cell-type proportions accurately reflect the true cell-type proportions of interest. If cell-type proportions captured by single-cell experiments differ significantly from the true physiological distributions, the accuracy of Bisque and CSCD may decrease. Users are advised to be cautious in case of existence of a known significant bias in the single-cell measurements of a tissue of interest. For more discussion, readers may refer to Jew et al. (2020).
Acknowledgements
The author is grateful to the Associate Editor and two anonymous reviewers for their constructive comments. The author is also thankful to Nicholas Petronella from the Bureau of Food Surveillance and Science Integration and Dr Ivan Curran from the Bureau of Chemical Safety of the Health Products and Food Branch, Health Canada, for reviewing the manuscript and offering helpful comments. The author wishes to thank Brandon Jew for providing useful information about Bisque as well as the DLPFC data. The author also would like to thank the Bioinformatics Division of the Bureau of Food Surveillance and Science Integration, Health Canada, for the computing facilities and support. This research was enabled in part by support provided from Health Canada, University of Ottawa and Compute Canada (www.computecanada.ca).
Funding
This research was financially supported by the Bureau of Food Surveillance and Science Integration of the Food Directorate, Health Products and Food Branch, Health Canada.
Conflict of Interest: none declared.
Data availability
The embryonic stem cells data (both bulk and scRNA-seq) were downloaded from the Gene Expression Omnibus (GEO) database with accession number GSE75748. The melanoma tumor data were downloaded from the GEO database with accession number GSE72056. The corresponding bulk gene expression levels were retrieved from Cibersortx’s tutorial webpage https://cibersortx.stanford.edu/download.php. The pancreatic islets data of Segerstolpe et al. (2016) were downloaded from the ArrayExpress (EBI) database with accession numbers E-MTAB-5061 (bulk) and E-MTAB-5060 (scRNA-seq). Processed bulk data of Fadista et al. (2014) and scRNA-seq data of Xin et al. (2016) were download from https://xuranw.github.io/MuSiC/data. The DLPFC data are available on Synapse (10.7303/syn3219045). ScRNA-seq data (syn23554292), bulk RNA-seq data (syn3505720) and phenotypes (syn3191087) are available under controlled use conditions set by human privacy regulations. A data use agreement are required to access these data.
References
- Abbas A.R. et al. (2009) Deconvolution of blood microarray data identifies cellular activation patterns in systemic lupus erythematosus. PLoS One, 4, e6098. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Avila Cobos F. et al. (2020) Benchmarking of cell type deconvolution pipelines for transcriptomics data. Nat. Commun., 11, 5650. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Baron M. et al. (2016) A single-cell transcriptomic map of the human and mouse pancreas reveals inter- and intra-cell population structure. Cell Syst., 3, 346–360. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bickel P.J., Levina E. (2008) Regularized estimation of large covariance matrices. Ann. Stat., 36, 199–227. [Google Scholar]
- Cai T.T., Zhou H.H. (2012) Minimax estimation of large covariance matrices under norm. Stat. Sin., 1319–1349. [Google Scholar]
- Chu L.F. et al. (2016) Single-cell RNA-seq reveals novel regulators of human embryonic stem cell differentiation to definitive endoderm. Genome Biol., 17, 1–20. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Fadista J. et al. (2014) Global genomic and transcriptomic analysis of human pancreatic islets reveals novel genes influencing glucose metabolism. Proc. Natl. Acad. Sci. USA, 111, 13924–13929. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Fielden M.R., Zacharewski T.R. (2001) Challenges and limitations of gene expression profiling in mechanistic and predictive toxicology. Toxicol. Sci., 60, 6–10. [DOI] [PubMed] [Google Scholar]
- Finak G. et al. (2015) MAST: a flexible statistical framework for assessing transcriptional changes and characterizing heterogeneity in single-cell RNA sequencing data. Genome Biol., 16, 1–13. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hao Y. et al. (2021) Integrated analysis of multimodal single-cell data. Cell, 184, 3573–3587.e29. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jew B. et al. (2020) Accurate estimation of cell composition in bulk expression through robust integration of single-cell information. Nat. Commun., 11, 1971. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jonckheere A.R. (1954) A distribution-free k-sample test against ordered alternatives. Biometrika, 41, 133–145. [Google Scholar]
- Khare K., Rajaratnam B. (2011) Wishart distributions for decomposable covariance graph models. Ann. Stat., 39, 514–555. [Google Scholar]
- Ledoit O., Wolf M. (2004) A well-conditioned estimator for large-dimensionalcovariance matrices. J. Multivariate Anal., 88, 365–411. [Google Scholar]
- Ledoit O., Wolf M. (2012) Nonlinear shrinkage estimation of large-dimensional covariance matrices. Ann. Stat., 40, 1024–1060. [Google Scholar]
- Mostafavi S. et al. (2018) A molecular network of the aging human brain provides insights into the pathology and cognitive decline of Alzheimer’s disease. Nat. Neurosci., 21, 811–819. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Newman A.M. et al. (2019) Determining cell type abundance and expression from bulk tissues with digital cytometry. Nat. Biotechnol., 37, 773–7882. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Newman A.M. et al. (2015) Robust enumeration of cell subsets from tissue expression profiles. Nat. Methods, 12, 453–457. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Segerstolpe Å. et al. (2016) Single-cell transcriptome profiling of human pancreatic islets in health and type 2 diabetes. Cell Metab., 24, 593–607. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tian J. et al. (2021) ESCO: single cell expression simulation incorporating gene co-expression. Bioinformatics, 37, 2374–2381. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tirosh I. et al. (2016) Dissecting the multicellular ecosystem of metastatic melanoma by single-cell RNA-seq. Science, 352, 189–196. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tsoucas D. et al. (2019) Accurate estimation of cell-type composition from gene expression data. Nat. Commun., 10, 2975. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Van der Maaten L., Hinton G. (2008) Visualizing data using t-SNE. J. Mach. Learn. Res., 9,2579–2605. [Google Scholar]
- Wang X. et al. (2019) Massively parallel digital transcriptional profiling of single cells. Nat. Commun., 8, 14049. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wang Y. et al. (2017) lsei: Solving Least Squares Problems under Equality/Inequality Constraints. R package version 1.3-0. https://cran.r-project.org/package=lsei [Published 17 September 2020]. [Google Scholar]
- Xin Y. et al. (2016) RNA sequencing of single human islet cells reveals type 2 diabetes genes. Cell Metab., 24, 608–615. [DOI] [PubMed] [Google Scholar]
- Yankner B.A. (1996) Mechanisms of neuronal degeneration in alzheimer’s disease. Neuron, 16, 921–932. [DOI] [PubMed] [Google Scholar]
- Zheng G. et al. (2017) Massively parallel digital transcriptional profiling of single cells. Nat. Commun., 8, 14049. [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.
Data Availability Statement
The embryonic stem cells data (both bulk and scRNA-seq) were downloaded from the Gene Expression Omnibus (GEO) database with accession number GSE75748. The melanoma tumor data were downloaded from the GEO database with accession number GSE72056. The corresponding bulk gene expression levels were retrieved from Cibersortx’s tutorial webpage https://cibersortx.stanford.edu/download.php. The pancreatic islets data of Segerstolpe et al. (2016) were downloaded from the ArrayExpress (EBI) database with accession numbers E-MTAB-5061 (bulk) and E-MTAB-5060 (scRNA-seq). Processed bulk data of Fadista et al. (2014) and scRNA-seq data of Xin et al. (2016) were download from https://xuranw.github.io/MuSiC/data. The DLPFC data are available on Synapse (10.7303/syn3219045). ScRNA-seq data (syn23554292), bulk RNA-seq data (syn3505720) and phenotypes (syn3191087) are available under controlled use conditions set by human privacy regulations. A data use agreement are required to access these data.







