Extended Data Fig. 7: Stromal environments based on their composition of microenvironment communities and their distinct pairwise cell-type interactions.

a, Hierarchical clustering of tumour cores (n = 281) according to stromal community content and splitting into corresponding stromal environments (n = 11). The stacked bar plot at the top indicates the average number of cells from each cellular metacluster present within each type of microenvironment community. b, The presence of significant (P < 0.01) cell–cell interactions (red) and cell–cell avoidances (blue) identified per image based on a permutation test (1,000 permutations). Black outlined regions indicate significant interactions that are enriched in images from the respective stromal environments (P < 0.05 (one-sided Fisher’s exact test for enrichment, corrected for multiple testing). Colour bars on the right indicate the SCP subgroup, grade and clinical subtype of the tumour. Cell-type interactions along the top are indicated by the labelled cell type of interest and neighbouring cell.