Compared with the HCs, Hcy (p = 0.002), ApoB (p = 0.004), Lpa (p = 0.045), and ApoB/ApoA-1(p = 0.001) were significantly increased in patients with anti-NMDAR encephalitis. The gene discussed is APOB; the disease is viral encephalitis.