The hub genes NFKBIA and ITGB2 were both significantly related to immune cell function in AF and SLE, implying these hub genes could contribute to the occurrence of AF. Here, ITGB2 is linked to atrial fibrillation.