Further screening by LASSO regression, support vector machine, and random forest identified six genes (IGF1, RET, IGFBP2, CDKN2A, JUN, and TFAP2A) that could serve as potential diagnostic biomarkers for IPF. Here, TFAP2A is linked to idiopathic pulmonary fibrosis.