In rectal cancer tissues before radiotherapy, higher densities of CD4+ TIL, CD8+ TIL, and CD56+ TIL were associated with a greater proportion of patients achieving TRG0, TRG1, and TRG2 grades, while fewer patients exhibited TRG3. The gene discussed is CD8A; the disease is rectal cancer.