Our analysis revealed HLA-B*08:01 as the top risk-conferring HLA allele for MG (OR = 2.349, P = 1.15e−52, SE = 0.056; Supplementary Data 4, Supplementary Fig. 9). This evidence concerns the gene HLA-B and myasthenia gravis.