Moreover, anti-LGI1 encephalitis had the highest proportion of cognitive impairment, with a significant difference compared to anti-NMDAR encephalitis [71.43% (15/21) vs. 31.82% (7/22), p = 0.009]. This evidence concerns the gene LGI1 and viral encephalitis.