Among the seven key genes identified, GREM1, UGT1A6, CDH2, TDO2, and HS3ST1 were found to be risk factors for IPF, whereas ADGRF5 and MPO were identified as protective factors. Here, TDO2 is linked to idiopathic pulmonary fibrosis.