In our study, based on the colon cancer immune gene datasets, we used WGCNA to identify 21 immune-related hub genes affecting patients’ OS and constructed IRGPI based on 8 independent OS prognostic factors (UCN, TRIM58, RBCK1, TPM2, CD36, NMB, PPARGC1A, and LGALS4). The gene discussed is TPM2; the disease is colonic neoplasm.