By intersecting DEGs between GC and OM from the FUSCC cohort and IRGs from the ImmPort and InnateDB, we identified 19 immune‐related hub genes and constructed OMIRPS based on six genes (TNFRSF18, CARD11, BCL11B, NRP1, BNIP3L, and ATF3), among which TNFRSF18 and BCL11B was positively associated with patient OS while the rest were the opposite. This evidence concerns the gene NRP1 and ocular melanoma.