The within-sample diversity of fecal microbiota was lower in anti-LGI1 encephalitis patients compared with HCs. The gene discussed is LGI1; the disease is encephalitis.