TL;DR
Spatial transcriptomics allows us to see gene expression within its tissue context, but errors in cell segmentation can lead to identifying genes that aren't truly specific to a cell type or niche. This paper introduces 2DE, a novel probabilistic method that refines differential expression analysis by filtering out genes falsely flagged due to neighboring cell contamination, thereby improving the precision of identifying true cell-specific markers.
What Problem Does This Paper Address?
Spatial transcriptomics (ST) technologies are revolutionizing our understanding of tissue organization by measuring gene expression while preserving spatial information. A key goal is to identify genes that are differentially expressed in a specific cell type across different micro-environments (niches) within a tissue. This helps us understand how cell states and functions vary depending on their local context. However, a significant challenge in ST is the imperfect accuracy of cell segmentation and transcript assignment. This can lead to "spurious" differential expression, where genes appear to be specific to a cell type or niche but are actually being detected due to transcripts from nearby, different cell types. This noise can obscure genuine biological signals and lead to incorrect conclusions.
Methods
The core of this paper is the introduction of 2DE (Two-Dimensional Differential Expression), a probabilistic framework designed to act as a post-processing step for existing differential expression (DE) analysis methods. Here's how it works:
- Neighborhood Definition: For a group of cells of interest (e.g., endothelial cells in an invasive tumor region, G1), 2DE first defines a "neighborhood" group (N1) consisting of cells of different types that are spatially close to G1. This is achieved by constructing an adjacency matrix based on spatial proximity and then filtering out same-type neighbors.
- Differential Expression Comparison: 2DE then performs DE analysis not only between the primary groups (G1 vs. G2) but also between the cell group and its neighborhood (G1 vs. N1, and G2 vs. N2).
- Probabilistic Scoring: The key innovation is the probabilistic scoring. 2DE hypothesizes that a gene truly upregulated in G1 compared to G2 should show a higher log-fold change (LFC) in the G1 vs. G2 comparison than in the G1 vs. N1 comparison. This is because if a gene is genuinely specific to G1, its expression should be significantly higher in G1 than in its non-G1 neighbors. Genes that show similar or higher expression in the neighborhood (N1) are flagged as potentially spurious.
- Classifier Training: A Gaussian process classifier is trained to distinguish between "local markers" (genes genuinely upregulated in G1 vs. G2 and G1 vs. N1) and "neighborhood genes" (genes upregulated in G1 vs. G2 but also significantly present in N1). This classifier outputs a "marker confidence score" for each gene.
- Filtering: Genes with a confidence score below a certain threshold are filtered out, effectively removing those likely to be contaminated by neighboring cell signals.
The paper also mentions using standard DE methods like a t-test and a latent-variable model DE (lvm-DE) as input to 2DE, and Hotspot for initial gene module discovery.
Datasets
The primary dataset used for evaluation is a 10X Xenium dataset of human breast cancer sections. The authors also leverage a scRNA-seq reference dataset of breast cancer to establish ground truth markers for evaluating the precision of their method. They also mention using the NicheVI model for UMAP embeddings and scvi-tools for the lvm-DE method.
Key Insights and Ideas
- Neighborhood context is crucial: The paper strongly emphasizes that simply comparing cell groups isn't enough in ST. Understanding how a gene's expression compares to its immediate spatial neighbors is critical for distinguishing true cell-intrinsic signals from background noise.
- Segmentation quality matters, but 2DE is robust: While improved cell segmentation (using Proseg) generally leads to better DE results, 2DE demonstrates a significant improvement in precision even with lower-quality original segmentation. This suggests 2DE can help salvage analyses from less-than-ideal segmentation.
- 2DE acts as a universal filter: The method is designed to be a downstream processor, meaning it can be applied to the output of any DE method, making it a versatile tool for the ST analysis pipeline.
- Endothelial cells in breast cancer are spatially compartmentalized: The study highlights distinct endothelial cell populations within invasive tumor regions and the stroma, with specific gene expression profiles related to angiogenesis and mature function, respectively. 2DE helps to precisely identify the markers for these spatially confined populations.
Key Results
- Improved Precision: Table 1 shows a consistent increase in precision across both DE methods (lvm-DE and t-test) and segmentation qualities when using 2DE. For instance, with the Proseg segmentation, precision increased from 0.41 to 0.47 for lvm-DE and from 0.47 to 0.88 for the t-test when using 2DE.
- Robustness to Segmentation: The improvement in precision was even more pronounced when using the original, lower-quality segmentation, demonstrating 2DE's ability to mitigate segmentation artifacts.
- Identification of Spatially Confined Markers: The study successfully identified spatially specific markers for endothelial cells in invasive tumor regions (e.g., ESM1, SNAI1, KDR) and stromal endothelial cells (e.g., EDN1, CAVIN2, CLDN5), providing insights into tumor microenvironment heterogeneity.
- Filtering of Spurious Genes: Figures S2 and S3 visually demonstrate how 2DE effectively filters out genes that were identified as differentially expressed by naive methods but are known to be expressed by other cell types (e.g., FOXA1, KRT7 in non-endothelial cells).
Limitations and Future Work
- Computational Cost: While not explicitly detailed as a limitation, the method involves multiple DE calculations and classifier training, which could be computationally intensive for very large datasets.
- Parameter Sensitivity: The performance of 2DE might depend on the choice of parameters, such as the number of neighbors and the confidence score threshold. The paper mentions tuning hyperparameters for the Gaussian process classifier.
- Future Work: The authors suggest that 2DE is broadly applicable and can help researchers interpret spatial data better and derive meaningful biological insights. Future work could involve exploring its application to other tissue types and biological questions, as well as further optimizing its computational efficiency.
Summary updated