Correlation analysis between APOE, CYP27A1, SOAT1, and immune cells revealed positive associations between the expression levels of APOE and CYP27A1 and the abundance of six immune cell types in both psoriasis and leprosy patients. Here, CYP27A1 is linked to leprosy.