Based on the above bioinformatics analysis results, HLA-A and HLA-DRB1 were shown to be involved in various immune-related molecules and pathways, which probably participated in the pathogenesis of encephalitis. This evidence concerns the gene HLA-A and viral encephalitis.