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. This evidence concerns the gene NFKBIA and atrial fibrillation.