Additionally, 11 core genes were identified, with HMGCR and CYP27A1 validated as potential markers for diagnosing endometriosis and assessing its severity, respectively. Here, CYP27A1 is linked to endometriosis.