DEGs and metascape analysis revealed increasing antigen processing and presentation and MHC II molecular expression, including HLA-DRA, HLA-DQA1, HLA-DQB1, and HLA-DPB1, which are also MG-associated risk genes. This evidence concerns the gene HLA-DRA and myasthenia gravis.