Prognostic associations of B cells were observed in the IM and OM and those of CD8+ T cells in the PT region. Here, CD8A is linked to ocular melanoma.