Differential analysis using control samples led to the precise identification of rare aberrant cell states emerging in IPF, such as the KRT5–KRT17+ basaloid cells2,37 thought to originate from the alveolar epithelium in response to fibrosis38,39 (Extended Data Fig. 8c,d). Here, KRT5 is linked to idiopathic pulmonary fibrosis.