These unexpected observations showed that prior exposure to high-flow humidified and warmed filtered air improved survival and in certain cases improved it in an SP-A-variant- and sex-dependent manner, underscoring the roles of sex-dependent pathways and SP-A genetics in survival from bacterial pneumonia. This evidence concerns the gene SFTPA2 and bacterial pneumonia.