Moreover, single-gene GSEA, GeneMANIA, ceRNA network, immune infiltration, and single-cell analyses revealed the biological pathways, molecular mechanisms, regulatory networks, and expression patterns of BMP6 and SLC48A1 in macrophages and stromal cells, thereby providing valuable insights into endometriosis diagnosis and treatment strategies. This evidence concerns the gene SLC48A1 and endometriosis.