Fractions of neoplastic and immune cells correctly assigned to the neoplastic cell-dominated and immune cell-dominated TCNs. Each point represents performance on a given compartmentalized tumor image; the horizontal bars represent the mean across n = 15 images. Performances (points) on the same images are connected by gray dashed lines. P values were computed using a one-sided paired t -test. Note that the number of TCNs were set to two for CytoCommunity, SPACE-GM and Spatial-LDA. Clustering resolution was set to 0.05 for UTAG, resulting in one or two identified TCNs in most images but three or four identified TCNs in the rest of the images.