CellNiche represents cellular microenvironments in atlas-scale spatial omics data with contrastive learning
Deciphering cellular microenvironments at atlas scale remains challenging because molecular identity, spatial context, and platform heterogeneity are tightly coupled. Here we present CellNiche, a scalable contrastive-learning framework that identifies and characterizes cellular microenvironments from spatial omics data using cell-centric spatial-proximity subgraphs. CellNiche combines spatial co-localization and molecular co-expression cues to learn microenvironment-aware embeddings. Across spatial omics datasets from multiple platforms (>10 million cells in total), scaling experiments show improved representations with more training data and competitive clustering and embedding-quality performance with efficient computation. In a multi-sample human non-small-cell lung cancer (NSCLC) cohort, CellNiche identifies conserved and sample-specific tumor and immune microenvironments and captures localized spatial transitions. In four independent mouse brain atlases, CellNiche integrates 293 slices into a unified virtual brain map for cross-atlas annotation transfer and spatial refinement.
Authors
- Mingqi Jiao
- Bingxu Zhong (ORCID: https://orcid.org/0000-0002-9961-2212)
- Zhongming Liang (ORCID: https://orcid.org/0009-0000-0791-9253)
- Shiping Liu (ORCID: https://orcid.org/0000-0003-0019-619X)
Institutions
- BGI Group (China) (CN)
- Shanghai Jiao Tong University (CN)
- State Administration of Traditional Chinese Medicine of the People's Republic of China (CN)
- Westlake University (CN)
- Academy of Mathematics and Systems Science (CN)
- Institute for Advanced Study (DE)
- University of Chinese Academy of Sciences (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Nature Communications
- Published
- 2026-04-22
- DOI
- https://doi.org/10.1038/s41467-026-71759-4
- Primary Topic
- Single-cell and spatial transcriptomics
- Type
- article
- Field-Weighted Citation Impact
- 0.00