Among DEGs, APOE, CYP27A1, and SOAT1 confirmed as critical mutually exclusive genes, exhibiting opposite expression patterns in psoriasis and leprosy. Here, SOAT1 is linked to leprosy.