- Rating
- 3(+1)
- Confidence
- 3
- Informativeness
- 2
- Presentation
- 3
- Soundness
- 2
Read review
Paper summary
In this study, the authors introduced DeSpotX, a deep generative model to address contamination in single cell resolution spatial transcriptomics. It integrated anchor genes with spatially informed contamination estimation to distinguish native gene expression from the transcripts from neighboring cells. The authors performed extensive benchmarking across several datasets and technologies, and showed it outperforms existing methods. The authors further show that decontamination improves downstream analysis including marker gene specificity, spatial coherence and inferred cell-cell communication.
Critical strengths
The method is well designed and novel. Most of the claims are well supported by the experiments.
Critical weaknesses
- The deep investigation of the anchor gene selection is lacking.
- There is potential circularity in validation.
- The spatial validation in the higher resolution is missing.
- There are some caveats in cell-cell communication analysis.
- The quantitative evaluation for clustering needs more metrics.
Questions for authors
- About the anchor genes, I wonder if the number of anchor genes should be adjusted by the size of the clusters. Or whether these two are highly correlated? Whether the cluster with a higher number of cells should have a higher number of anchor genes?
- Whether the anchor genes used in the model are overlapped with marker genes which were shown in Figure 3? If overallped, it’s a circularity about the argument. The validation or the conclusion drawn in Figure 3 should be independent of the anchor genes. Or the anchor genes used in the model should be removed for all downstream analysis.
- For clustering shown by UMAP in Figure 3, I wonder if there is a quantitative way to show the separation of clusters after decontamination is better than before.
- Table 10, I wonder if the bold column should be the “anchor” one?
- For Figure 4, the authors showed the expression is spatially coherent, but some panels are full of signals, for example, panels b and d, which makes it hard to visually see. I wonder if the high-resolution cell type or subtype level analysis will be clear to showcase the spatial coherence. For instance, in MERFISH data, there is subtype level annotation for all cell types, the bottom panel could be replaced by some sparse cell subtypes. Overall, the evaluation on the subtypes or high-resolution level annotations would significantly improve the study.
- About the cell-cell communication analysis, I wonder if CellChat analysis used spatial information. If not, I suggest the authors use a spatial-aware method to do the analysis. Additionally, the results of changes between iterations are not convincing to make any conclusions since there is no ground truth to support which one is better or real. For example, in Figure 5e, the interactions on non-neurons are reduced after decontamination, which may be biased by the remaining signals. The authors should provide more analysis to show which interactions are shifted and which interactions keep left in the decontaminated dataset, and look for literature evidence to support the findings if possible. Otherwise, it’s hard to make a solid conclusion from the predicted CCC shift.
- It would be helpful to have some explanation for Figure 1 in the caption.
5 comments
Response to Reviewer fSmo (Part 2/2)
3. Quantitative evaluation of cluster separation (Weakness 5; Question 3)
Thank you for this suggestion. Yes. In addition to the kNN purity shown on the UMAPs (Figure 18), we added five metrics of cluster separation, and all of them improve after DeSpotX.
First, DeSpotX improves every metric on every dataset. We computed kNN purity in PCA space, the silhouette score, the Davies-Bouldin and Calinski-Harabasz indices, and the NMI between Leiden clusters and the published labels (Table R3). DeSpotX is also the best of all methods in 24 of the 25 combinations.
Table R3. Raw counts → DeSpotX with the published labels.
| Metric | Xenium_Breast | MERFISH_Brain | CosMx_NSCLC | Xenium5k_Breast | Stereo-seq_E14 |
|---|---|---|---|---|---|
| kNN purity, PCA ↑ | 0.772 → 0.943 | 0.927 → 0.992 | 0.501 → 0.828 | 0.365 → 0.814 | 0.742 → 0.936 |
| Silhouette ↑ | 0.027 → 0.179 | 0.058 → 0.244 | −0.094 → −0.003 | −0.045 → −0.036 | 0.047 → 0.168 |
| Davies-Bouldin ↓ | 2.574 → 1.667 | 2.034 → 1.427 | 4.427 → 2.554 | 6.975 → 2.659 | 2.561 → 1.665 |
| Calinski-Harabasz ↑ | 1,473 → 3,068 | 1,034 → 2,377 | 549 → 1,359 | 260 → 1,247 | 1,636 → 2,821 |
| Leiden NMI ↑ | 0.596 → 0.795 | 0.683 → 0.806 | 0.437 → 0.739 | 0.079 → 0.432 | 0.581 → 0.780 |
Second, to check that the gain does not come from the labels given to DeSpotX, we added an analysis with finer subtypes that no method receives. kNN purity in PCA space still rises on every dataset, from 0.232-0.832 to 0.429-0.910, and is the highest among all methods.
Details are in the revised Appendix N (Table 17).
4. Bold column of Table 10 (Question 4)
Thank you for catching this. We now bold the anchor column of Table 10 (Table 11 in the revised paper), which has the highest AUROC in every row, as in our other tables. We had bolded the non-anchor column because it tests whether the AUROC could come from the anchor mask alone, and the caption now states this instead.
Details are in the revised Table 11.
5. High-resolution spatial validation in Figure 4 (Weakness 3; Question 5)
Thank you for this suggestion. We replaced Figure 4a-e with subtype-level maps. Each panel now shows three subtypes, each with its marker, so the spatial coherence is much easier to see. The subtypes are the Allen subclasses on MERFISH_Brain, types transferred from reference atlases on CosMx_NSCLC, Xenium5k_Breast and Stereo-seq_E14, and subclusters of the raw counts on Xenium_Breast.
First, DeSpotX clears the marker from the surrounding cells and keeps it in the subtype. The share of the surrounding cells that detect the marker falls from 5.9-35.4% to 0.2-8.8%, while the subtypes keep 85.4-99.5% of their marker counts.
Second, DeSpotX is given only the paper's labels, not these subtypes, so this is an independent validation.
The new Figure 4 is in Section 4.3.2, and the values of each subtype are in Appendix Q (Table 19).
6. Caveats in the cell-cell communication analysis (Weakness 4; Question 6)
Thank you for these suggestions. We replaced CellChat with the spatial-aware CellChat v2 [1], and the conclusions hold (Figure 5d, 5e).
First, we listed which interactions are shifted and which are kept. On MERFISH_Brain, most lost interactions (14 of 18) are OPIOID interactions sent by non-neuronal cells, while neurons keep all of theirs. On Xenium_Breast, PTN interactions from cancer epithelial and endothelial cells are lost, and those from myoepithelial cells are kept.
Second, to see whether these shifts are real, we checked them against dissociated single-cell atlases and literature evidence. The senders that lose interactions barely express the ligand in the atlases, whereas those that keep them express it highly, consistent with neurons being the main source of enkephalin, the product of Penk [2].
Third, we tested whether the reduced interactions on non-neurons in Figure 5e are biased by the remaining signals. In the raw counts alone, their Penk is 17-26 times higher next to striatal neurons than farther away, consistent with contamination from these neurons.
Details are in the revised Section 4.3.3 and Appendix S (Figure 21).
7. Explanation of Figure 1 in the caption (Question 7)
Thank you for this suggestion. The caption of Figure 1 now explains the encoder, the decoder and the output, each with the equation that defines it.
Thank you again for the detailed comments, which have helped us improve the paper. We would be happy to answer any further questions.
Sincerely,
Authors
References
[1] Jin, Suoqin, Maksim V. Plikus, and Qing Nie. "CellChat for systematic analysis of cell–cell communication from single-cell transcriptomics." Nature protocols (2025).
[2] Le Merrer, Julie, et al. "Reward processing by the opioid system in the brain." Physiological reviews (2009).
Happy to clarify any remaining points
Dear Reviewer fSmo,
Thank you again for your detailed and helpful questions, which have improved the paper. We have responded to each of them and revised the paper accordingly.
We understand that this is a busy time. If you have a moment before the discussion period closes, we would be grateful to hear whether our responses address your concerns, and we would be glad to clarify any remaining points.
Best regards,
Authors
Response to Reviewer fSmo (Part 1/2)
Thank you for the many concrete suggestions! We are encouraged that you found the method well designed and novel, and most of the claims well supported by the experiments. We address each question below, together with the weakness it relates to.
1. Anchor gene selection and cluster size (Weakness 1; Question 1)
Thank you for this question. The number of anchor genes does not need to be adjusted by cluster size, since the two are not correlated and larger clusters do not benefit from more anchors. We added three analyses to show this.
First, the number of anchors does not depend on cluster size. Over the 103 clusters with at least 20 cells in the five real datasets, the Spearman correlation between the two is 0.02 (p = 0.86). Cluster sizes vary up to 1,056-fold within a dataset, but anchor counts only 1.6-4.5-fold, since an anchor is selected by the fraction of a cluster's cells that detect a gene, not by their number.
Second, a larger cluster does not need more anchors. We scored the paper's runs with one anchor per cluster (Figure 2c) separately for each cluster. Compared with all anchors, AUROC changes by at most 0.004 in both large and small clusters, including the largest ones, since Lemma 2 needs, for each cell, only one anchor that receives contamination, whatever the size of its cluster.
Third, giving larger clusters more anchors lowers accuracy. To test this directly, we reassigned the paper's anchor counts so that larger clusters receive more anchors and smaller clusters fewer, with the same total, and retrained DeSpotX. At 20% contamination, relMAE rises from 0.494 to 0.526 on Xenium_Breast and from 0.555 to 0.847 on MERFISH_Brain. The extra anchors are genes these clusters express, so they remove native expression.
Details are in the revised Appendix I.
2. Overlap of anchor genes with the Figure 3 markers (Weakness 2; Question 2)
Thank you for raising this possible circularity. We added analyses that leave the anchors out, and the conclusions hold.
First, the overlap is partial. DeSpotX selects anchors from the data as genes that a cell type rarely detects, without using the markers, so some off-target markers are anchors, but no canonical marker in the red boxes is. Among the off-target dots, 58 of 78 are anchors on Xenium_Breast, 11 of 45 on MERFISH_Brain, 38 of 45 on CosMx_NSCLC, 27 of 40 on Stereo-seq_E14 and 46 of 50 on Xenium5k_Breast.
Second, we left the anchors out and repeated the analysis on the off-target dots that are not anchors. DeSpotX still removes a median of 31-55% of their marker counts on the four datasets with enough such dots, against 2-7% for the canonical markers in the red boxes (Table R1).
Table R1. Median percentage of marker counts that DeSpotX removes per Figure 3a dot.
Third, we also left the anchor entries out of the spike-in scoring on all five datasets. DeSpotX still has the highest AUROC on every dataset (Table R2).
Table R2. AUROC ↑ on non-anchor entries, local cross-cluster spike-in, mean ± std across the five contamination levels.
Fourth, we also validated the downstream cell-cell communication analysis independently of the anchors. Using the raw counts and dissociated atlases, we found that the ligands behind the lost OPIOID and PTN interactions, such as Penk from non-neuronal cells in Figure 5e, are consistent with contamination.
Details are in the revised Section 4.3.1 and Appendices G, M (Figure 17) and S.