Introduction
Spatial transcriptomics (ST) has transformed our understanding of tissue biology by mapping gene expression within its physical context. It is now widely recognized that cells do not function in isolation; instead, they organize into "niches"—localized functional units, such as the interface between a tumor and healthy tissue. Identifying these niches consistently across different samples, individuals, or sequencing platforms is critical for understanding disease progression and treatment response.
However, a significant gap remains in the systematic identification of these structures. Existing methods often focus on single-cell embeddings or broad tissue domains, frequently failing to capture the specific structural arrangement (topology) of cells. Furthermore, technical "batch effects" between experiments often mask true biological signals. To address these challenges, we introduce QueST, a framework designed for the Niche Query Task: identifying similar multicellular local environments across diverse ST datasets.
Methodology
QueST treats niches as structured subgraphs rather than simple collections of cells. The architecture consists of three primary components:
- Graph Autoencoder (GAE): Utilizing modified Graph Isomorphism Network (GIN) layers, the GAE learns cell-level embeddings by reconstructing gene expression data while accounting for spatial proximity.
- Contrastive Learning (CL) Module: This represents the core innovation of QueST. By modeling each niche as a $K$-hop subgraph, the model creates "positive" and "negative" niche pairs. By partially shuffling gene expression while maintaining spatial structure, the model is forced to learn the intricate relationship between cell composition and spatial arrangement.
- Adversarial Batch Removal (ABR): To ensure robustness across experiments, an adversarial module uses a discriminator to identify the "batch" or sample origin of a niche. The encoder is trained to minimize this discriminator's accuracy, resulting in embeddings that prioritize biological signal over technical noise.
During inference, the similarity between a Niche of Interest (NOI) and target niches is calculated using the cosine similarity of these learned embeddings.
Experimental Validation
The researchers validated QueST across a diverse range of datasets, including simulated ST data, human brain samples (DLPFC), mouse olfactory bulbs (MOBT), and clinical cancer samples (ccRCC and NSCLC).
Key Results
- Superior Accuracy: In simulations, QueST achieved AUPRC values near 1.0, significantly outperforming competing methods like GraphST and STAGATE, which often struggled to distinguish between niches with similar cell types but different spatial structures.
- Cross-Platform Robustness: QueST successfully identified biological structures across different spatial resolutions (e.g., comparing 50µm Visium spots to 10µm Slide-seq beads), demonstrating its generalizability.
- Benchmarking: On the DLPFC dataset, QueST maintained a Pearson Correlation Coefficient (PCC) of 0.6–0.8 with ground truth annotations, while other methods largely remained below 0.4.
Clinical Insights and Future Directions
A key application of QueST was the study of Tertiary Lymphoid Structures (TLS) in cancer. While TLS are generally associated with positive immune responses, QueST revealed significant functional heterogeneity. The model identified "Type A" (pro-immune) and "Type B" (metabolically stressed) TLS. Crucially, patients with "Type B1" TLS—characterized by high metabolic stress and PD-L1 upregulation—exhibited significantly worse survival outcomes ($p = 0.0041$).
Limitations
While QueST is highly effective, the authors note that it currently uses a fixed-radius ($K$-hop) subgraph. Future work could incorporate multi-scale modeling to capture structures of varying sizes. Additionally, as spatial transcriptomics scales to millions of cells, evolving QueST into a "foundation model" architecture will be a necessary step for atlas-scale analysis.
In conclusion, QueST provides a robust, structure-aware framework for querying the functional architecture of tissues, offering new avenues for discovery in both basic biology and clinical pathology.
Summary updated