Ex vivo lung perfusion enables assessment of the resident adaptive immune system and provides insight into the lung response to pathogen exposure.