A benchmarking study published in Genome Biology finds that most contemporary spatial domain segmentation algorithms, when run in their default configurations, fail to accurately recover biologically defined immune niches in single-cell spatial transcriptomics data from a human lymph node. Yuxuan Wang, Hongyi Xin, and colleagues evaluated 16 representative algorithms against an expert-curated reference of 19,718 cells drawn from a 1.85-million-cell CosMx dataset of human reactive follicular lymphoid hyperplasia. Although key immune lineages occupy largely distinct spatial territories across the tissue, the analysis shows that stochastic infiltration by peripheral cell types weakens local compositional contrast and lowers the spatial signal-to-noise ratio. Because existing frameworks prioritize local transcriptomic variance and homogeneity over global lineage organization, they frequently miss functional niche boundaries unless guided by core cell-type weighting, local aggregation, or spatial focusing.
The authors ground their benchmark in a conceptual distinction between spatial domains and tissue niches. Spatial domain segmentation partitions a tissue slice into non-overlapping regions by maximizing intra-domain transcriptomic similarity, spatial continuity, and local cell-type consistency. Functional tissue niches, by contrast, reflect localized signaling gradients, intercellular communication, and context-dependent cellular states; they need not include every cell in a pocket, can overlap within the same anatomical space, and can recur as scattered microenvironments. To evaluate how current methods handle this complexity, the team grouped 16 algorithms into four families: probabilistic and statistical models (BayesSpace, BANKSY, and MENDER), graph neural network and contrastive methods (SpaGCN, GraphST, CytoCommunity, STAGATE, and SpaceFlow), deep generative models (SEDR, scNiche, DeepLinc, NicheCompass, STACI, and CellCharter), and foundation models (Novae and Nicheformer). Novae pre-trains local neighborhood graph representations on nearly 30 million spatially resolved cells across 18 tissues, whereas Nicheformer pre-trains on expression-ranked gene sequences from over 110 million cells without physical coordinates.
To build a high-resolution reference lacking physical membrane barriers, the team curated a 19,718-cell region of interest from a public Bruker CosMx human lymph node dataset showing reactive follicular lymphoid hyperplasia, a benign adaptive response that expands lymphoid follicles while preserving core architecture. Using unsupervised clustering, hierarchical differential expression, and canonical markers, they resolved 16 cellular subtypes, including CD4-positive helper and CD8-positive cytotoxic T cells, naïve and memory B cells, dark-zone and light-zone germinal-center B cells, plasma cells, macrophages, T-zone reticular cells, and follicular dendritic cells. Applying Gaussian kernel density estimation and subtractive color mixing verified against histological staining, they manually delineated four canonical compartments—the B cell zone, germinal center, T cell zone, and medulla—organized by chemokine gradients including CXCL13, CCL19, CCL21, and CXCL12. Crucially, although key lineages showed strong regional enrichment, they often did not form a local numerical majority because auxiliary populations were extensively intermingled across zones.
The researchers also characterized functional niches through cross-lineage proximal gene co-expression, curating five 30-gene panels spanning four architecture-associated programs—reticular-immune support, follicular B-cell organization, medullary secretion-clearance, and germinal-center reaction—alongside a condition-dependent interferon-responsive state. That fifth program featured coordinated expression of canonical interferon-stimulated genes, including IFIT2, IFIT3, MX1, RSAD2, ISG15, OAS1, PLSCR1, and STAT1, across subsets of pericytes, macrophages, T-zone reticular cells, follicular dendritic cells, and CD4-positive T cells. Spatial co-localization testing on a 30-nearest-neighbor graph with 500 permutations confirmed statistically enriched multicellular networks for all five programs after Benjamini-Hochberg correction. Continuous spatial module scores further showed that functional activity is graded and hierarchically overlapping rather than strictly partitioned: the interferon-responsive state was superimposed within the broader T-cell-zone context, while germinal-center reactions formed compact foci nested inside the wider follicular B-cell field.
Benchmarked on all 6,195 detected genes in the lymph node reference with outputs harmonized to four domains, none of the 16 algorithms fully recapitulated the manual annotation, though most produced internally coherent partitions under their own assumptions. Methods were scored across five equally weighted dimensions covering ground-truth accuracy, biological composition similarity, spatial connectivity, latent-space silhouette score, and computational efficiency. MENDER achieved the highest aggregate score (0.863), combining the top reference agreement (Adjusted Rand Index 0.37; Macro-F1 0.46) with high spatial connectivity (0.96), the clearest latent-space separation (silhouette score 0.15), and modest cost (161 seconds; 0.17 gigabytes). NicheCompass (aggregate 0.855; ARI 0.29) and STACI (aggregate 0.821; ARI 0.28) followed closely, each attaining 0.98 connectivity and high composition similarity (0.83 and 0.81). Among foundation models, Novae remained competitive (aggregate 0.743; ARI 0.24), whereas unsupervised Nicheformer scored substantially lower (ARI 0.01; Macro-F1 0.23).
Diagnostic analyses explained why overall agreement remained modest. Several algorithms—including NicheCompass, STACI, CellCharter, CytoCommunity, STAGATE, and SEDR—separated the central T cell zone from flanking follicles yet split the left and right B-cell zones into separate domains, while only CellCharter and MENDER reliably recovered a coherent germinal-center-like region at full-region scale. Several tools instead assigned one of their four domains to the localized 818-cell interferon-responsive microenvironment inside the T cell zone. Tested against an independent expression-based binary reference for that state, SpaceFlow (F1 0.90) and CellCharter (0.88) achieved the strongest recovery, followed by GraphST (0.74), SEDR (0.73), BANKSY (0.67), and MENDER (0.54). Robustness checks showed MENDER, NicheCompass, and STACI stayed in the top three across six weighting schemes and in over 90 percent of 10,000 weight combinations. Across five random seeds, MENDER maintained the highest mean ARI (0.4181 ± 0.0579), whereas SEDR (0.3442 ± 0.1457) and GraphST (0.3340 ± 0.1751) showed wider variability.
The team next evaluated whether extrinsic preprocessing could restore niche resolution, testing three 2,000-gene panels—highly variable genes, Moran’s I spatially variable genes, and a core-lineage curated gene panel—alongside hexagonal pseudo-spot aggregation (averaging 7.48 cells across 2,637 pseudo-spots) and core-cell-type-guided refinement, which segments dominant lineages first before propagating labels via k-nearest-neighbor diffusion. Relative to the all-genes baseline (median ARI 0.220), pseudo-spot aggregation raised the median ARI to 0.340 and core-cell-type refinement raised it to 0.280, whereas curated genes maintained a 0.215 median while selectively improving scNiche (0.200 to 0.320) and STACI (0.280 to 0.310). Responses were strongly method-specific. Core-cell-type refinement delivered the highest single-method accuracy overall, lifting GraphST to an ARI of 0.612, MENDER to 0.554, STACI to 0.504, SpaceFlow to 0.434, and scNiche to 0.356 while sharpening germinal-center recovery. Pseudo-spot smoothing boosted MENDER (0.495), CellCharter (0.405), BayesSpace (0.353), and STACI (0.339), but lowered GraphST to 0.199, showing that no single strategy suits every algorithm.
To probe non-contiguous and continuous niche geometries, the researchers isolated B-cell-zone subregions of 5,521 and 7,319 cells containing embedded germinal-center islands and a folded naïve-to-memory B-cell maturation gradient. That transition zone, delineated via k-nearest-neighbor signal diffusion, was marked by elevated TLR10 and CXCL13 in naïve B cells alongside CR2, CD24, and RACK1 in memory B cells. Removing out-of-follicle background signals improved island detection for several methods: GraphST (ARI 0.660), STAGATE (0.606), and STACI (0.529) recovered compact germinal centers with cell-type enrichment closely matching ground truth, followed by MENDER (0.358), SEDR (0.203), and CellCharter (0.137). Because the germinal center and maturation niche physically overlap, however, discrete partitioning methods struggled with the transition task; although several reached high F1 scores against the binary thresholded reference, none reproduced the complete continuous gradient. Across both tasks, GraphST, STAGATE, STACI, and MENDER were most balanced, though relying on follicle isolation underscores their context sensitivity.
Controlled simulations and cross-platform comparisons reinforced why dynamic immune tissues pose distinct challenges. Using SRTsim to generate 4,000-cell synthetic lymph-node tissues in which dominant lineage proportions were progressively reduced from baseline to 80, 60, and 40 percent—reallocating 70 percent of displaced mass to adjacent compartments and 30 percent to background cells—the authors observed performance degradation across all 16 algorithms as compositional mixing increased. Conversely, on anatomically compartmentalized datasets with physical boundaries, including the 10x Visium human dorsolateral prefrontal cortex (slice 151673) and the Stereo-seq MOSTA E16.5 mouse brain, most algorithms generated partitions topologically analogous to tissue anatomy, with STAGATE performing reliably on both. Finally, scalability testing across six dataset sizes from 20,000 to 1.8 million cells showed that only MENDER, NicheCompass, and CellCharter scaled fully to 1.8 million cells, whereas Nicheformer and Novae remained feasible up to 1 million cells.
The authors emphasize that their results do not invalidate domain segmentation methods, which perform well on structurally distinct macroscopic compartments, but instead clarify that functional niche discovery is a separate analytical objective in spatially diffuse tissues. At single-cell resolution, transcriptomic similarity between distant cells of the same lineage often outweighs similarity between neighboring cells of different lineages, indicating that future niche-aware frameworks should model transcriptional variance conditionally within cell types and anchor compositional similarity to core functional lineages. The study notes key limitations: manual niche annotation is labor-intensive and reflects expert-specific choices about resolution and biological priority; each dataset was analyzed independently using RNA alone without multi-slice integration or spatial protein, chromatin, or metabolite layers; and algorithm selection involves application-specific trade-offs. Both the lymph node annotations and the MIT-licensed benchmarking suite are publicly available on GitHub and Zenodo.
Subject of Research: Benchmarking spatial domain segmentation algorithms for identifying functional tissue niches in spatial transcriptomics data
Article Title: Benchmarking niche identification via domain segmentation for spatial transcriptomics data
Article References: Wang, Y., Chen, Y., Yang, L., Wang, C., Cai, J., & Xin, H. (2026). Benchmarking niche identification via domain segmentation for spatial transcriptomics data. Genome Biology. https://doi.org/10.1186/s13059-026-04346-x
Image Credits: AI Generated
DOI: 10.1186/s13059-026-04346-x
Keywords: Spatial transcriptomics, Tissue niches, Domain segmentation, Human lymph node, Reactive follicular lymphoid hyperplasia, CosMx, Germinal centers, B-cell maturation, MENDER, GraphST, NicheCompass, STACI, CellCharter, STAGATE, Interferon-stimulated genes, Pseudo-spot aggregation, Core cell-type refinement, Computational scalability, 10x Visium, Stereo-seq
News Source: Drew Townsend. (December 2, 2026). Most spatial domain algorithms miss lymph node immune niches by default. Scienmag.



