Using the LASSO regression model, RF, and XGBOOST analysis, cd19, cxcl13, fcrl5, and slamf7 were identified as diagnostic markers for IPF. Here, CXCL13 is linked to idiopathic pulmonary fibrosis.