Four hub genes (GALNT16, HTR2B, RAB8A, and BEX2) were revealed to be significantly correlated with AF by LASSO logistic regression and the SVM-RFE algorithm. Here, GALNT16 is linked to atrial fibrillation.