M2-TAMs infiltration and PD-L1 expression are associated with the prognosis of PCa patients. Here, CD274 is linked to posterior cortical atrophy.