Spatial immune analysis from H&E using the radial distribution function. Cellpose nucleus segmentation, rule-based cell classification, Gaussian tumor nest mask, and boundary-based RDF to quantify lymphocyte enrichment at every distance from the tumor nest boundary. No deep learning required. -
View it on GitHub