Trajectory analysis revealed that fibroblasts in IPF lungs could differentiate into myofibroblasts, and alveolar macrophages could transition into the macrophage_SPP1 subpopulation. This evidence concerns the gene SPP1 and idiopathic pulmonary fibrosis.