TL;DR
Spatial transcriptomics allows us to map gene expression within tissues, but cell type clustering can be improved by combining two types of gene markers: highly variable (HV) genes and spatially variable (SV) genes. This paper demonstrates that this combined approach consistently enhances clustering accuracy across various platforms and datasets, offering a more robust method for understanding tissue architecture.
What Problem Does This Paper Address?
Spatial transcriptomics (ST) technologies have revolutionized biology by enabling the measurement of gene expression while preserving the spatial context of cells or tissue spots. This spatial information is crucial for understanding tissue architecture, disease mechanisms, and cell interactions. Researchers often identify "spatially variable" (SV) genes, whose expression patterns show distinct spatial autocorrelation, to define these spatial domains. Concurrently, "highly variable" (HV) genes, identified by their significant expression variation across cells irrespective of location, are a standard feature for clustering in single-cell RNA sequencing (scRNA-seq).
However, it remained unclear whether combining these two distinct gene sets—SV genes that capture spatial patterns and HV genes that capture cell-to-cell expression differences—could improve cell type clustering performance in ST data. This paper addresses this gap by systematically evaluating the impact of using HV genes, SV genes, and their union for cell type clustering across a diverse range of ST datasets and platforms.
Methods
The study employed a comprehensive benchmarking approach:
- Gene Set Selection:
- Highly Variable (HV) Genes: Identified using LOESS regression (for MERFISH) or by selecting genes with Pearson residual variance > 1 (for other platforms). Thresholds were set at the 50th, 70th, and 90th percentiles to define low, medium, and high stringency levels.
- Spatially Variable (SV) Genes: Detected using SPARK, with P-value cutoffs at 0.05 (low), 25th percentile (medium), and 50th percentile (high).
- Concatenation: The union of HV and SV genes was created, ensuring no duplicate genes were included.
- Clustering: The primary clustering method used was Leiden, a community detection algorithm applied to shared nearest neighbor networks built from Principal Components (PCs) of the gene expression data. Robustness was tested using other methods like k-means, Monocle3, cellTree, and SC3.
- Evaluation Metrics:
- Non-spatial: Adjusted Mutual Information (AMI) and weighted F1 scores (supervised) to assess general accuracy and class-specific accuracy, respectively. Pearson Gamma (unsupervised) to evaluate clustering consistency.
- Spatial: Novel metrics, Spatial Concordance (SC) and Mean Spatial AMI, were developed to specifically evaluate clustering performance within the spatial context, considering local spatial heterogeneity.
- Datasets: The study utilized 51 real ST datasets from four major platforms: Visium (10 datasets), MERFISH (12 datasets), Xenium (10 datasets), and CosMx (20 datasets). These datasets covered various tissue types and disease states, with ground truth labels obtained from original publications.
Datasets
The study evaluated its approach on 51 real spatial transcriptomics datasets from four platforms:
- Visium: 10 datasets (including Mouse Olfactory Bulb, Ovarian Cancer, Breast Cancer).
- MERFISH: 12 datasets (Mouse Brain Hypothalamic region).
- Xenium: 10 datasets (human kidney, Mouse Brain Anterior Thalamic Nuclei).
- CosMx: 20 datasets (human Non-Small Cell Lung Cancer).
The authors also created a "ground control" condition by selecting random gene sets of comparable size to the concatenated HV+SV gene sets, which were neither highly variable nor spatially variable, to ensure the observed improvements were not simply due to an increased number of genes.
Key Insights and Ideas
- Complementarity of HV and SV Genes: The core insight is that HV and SV genes capture distinct but complementary biological information. HV genes highlight genes with significant expression differences between cell types, while SV genes pinpoint genes with localized expression patterns within the tissue. Combining them leverages both aspects for more precise cell type identification.
- Improved Clustering Performance: The union of HV and SV genes consistently outperformed using either set alone across multiple metrics (AMI, weighted F1, Pearson Gamma, SC, Mean Spatial AMI) and platforms. This suggests that a more comprehensive gene set leads to better biological insights.
- Platform-Specific Gains: While concatenation generally improved performance, the gains were particularly pronounced on probe-based platforms (MERFISH, CosMx, Xenium) compared to sequencing-based platforms (Visium). This is attributed to the higher resolution and potentially more targeted gene detection in probe-based methods, leading to richer HV and SV gene sets.
- Robustness to Thresholds and Methods: The benefit of combining HV and SV genes was observed across different stringency thresholds for gene selection (low, medium, high) and was generally consistent across various clustering algorithms (Leiden, k-means, Monocle3, cellTree, SC3), underscoring the robustness of the finding.
- Beyond Gene Set Size: The comparison with random gene sets demonstrated that the improvement was not merely due to an increased number of genes but rather the biological relevance of the combined HV and SV gene sets.
Key Results
- Consistent Improvement: Combining HV and SV genes consistently improved clustering accuracy across all tested metrics (AMI, weighted F1, Pearson Gamma, Spatial Concordance, Mean Spatial AMI) and platforms.
- Significant Gains: For example, in the cosMx, Xenium, and Visium datasets, concatenation generally achieved higher AMI and weighted F1 scores. Heatmaps visually confirmed these improvements across individual datasets.
- Spatial Accuracy Enhancement: The novel spatial metrics (SC and Mean Spatial AMI) also showed consistent improvement when using the combined gene set, indicating better delineation of cell types within their spatial context.
- Specific Cell Type Improvements: In a cosMx dataset, concatenation improved the distinction of tumor cells. In a Xenium kidney dataset, it enhanced the delineation of proximal convoluted tube (PCT) and thick ascending limb (TAL) cells, as well as endothelial and mesangial cells. Similar improvements were noted for inhibitory neurons in MERFISH and for various cell types in Visium breast cancer data.
- Robustness: The benefits of concatenation were preserved even when sequencing depth was synthetically reduced and when alternative HVG/SVG detection methods were used.
Limitations and Future Work
- Ground Truth Dependency: The study relied on ground truth labels from original publications, which are often manually annotated and can have inherent biases or limitations, particularly for rare cell types or complex tissue structures.
- Platform Differences: While concatenation showed general benefits, the magnitude of improvement varied across platforms, with probe-based methods showing more pronounced gains. The paper suggests this might be due to differences in resolution and probe design.
- Rare Cases of No Improvement: In a specific Visium HER2 Breast Cancer sample, concatenation did not improve clustering and slightly reduced discrimination. The authors hypothesize this could be due to the ground truth labels not sufficiently capturing the specific cancer-related or immune function genes used in the manual annotation.
- Future Work: The paper implicitly suggests that further exploration into optimizing gene selection thresholds and exploring novel clustering algorithms tailored for spatial data could yield even better results. The development of more robust and universally applicable ground truth generation methods for ST data would also be beneficial. The authors also highlight the computational practicality of their approach for large-scale analyses.
Summary updated