Overall, macrophages, CD4 and CD8 T cell subtypes were the immune cells that underwent the most significant abundance changes in epilepsy and were significantly correlated with the expression level of hub ARDEGs. The gene discussed is CD8A; the disease is epilepsy.