We identified 7 hub immune-related genes (HLA-DRA, LCK, ITK, CD48, CD247, CD3D, and IL2RG) and a spectrum of immune cell subsets including Monocyte, Neutrophil, and follicular helper T (Tfh) cells were found to be concurrently dysregulated in both DCM and AF. This evidence concerns the gene HLA-DRA and atrial fibrillation.