With the LASSO logistic regression model, 20 hub genes (SPP1, MTHFD2, SLC20A1, TRIP13, PLA2G7, MKI67, ENO2, MICAL2, MMP9, GSTM5, GALNT2, STAG1, TSPAN31, ECHDC2, ATP10D, PAMR1, SLC24A3, GULP1, ID4, and KLF4) were identified and could effectively distinguish between gynecologic cancer and normal tissues. This evidence concerns the gene MTHFD2 and female reproductive organ cancer.