In conclusion, HMGCR and CYP27A1 were identified as potential markers for endometriosis and its severity, respectively. Here, HMGCR is linked to endometriosis.