The results showed that within-sample microbial diversity reduced in the anti-LGI1 encephalitis patients. This evidence concerns the gene LGI1 and encephalitis.