The expression levels of immune genes such as CHGB, HLA-DRA, LYZ, IGKV1-17 and TYROBP were significantly upregulated in patients with AF, which were correlated with infiltration of immune cells. This evidence concerns the gene HLA-DRA and atrial fibrillation.