We developed a novel algorithm that identifies CD163+ TAMs in an objective manner and quantifies spatial interactions between CD163+ TAMs and cancer cells using distance-based metrics. The gene discussed is CD163; the disease is cancer.