In particular, SNPs in the cellular receptor for immunoglobulin G FCGR2B and the intracellular nucleic acid sensors IFI16 and LRRFIP1 were found to be associated with mycoplasmal pneumonia of swine or porcine pleuropneumonia in multiple populations and may therefore have wide applications in the improvement of disease resistance in pigs. The gene discussed is LRRFIP1; the disease is Mycoplasma pneumoniae pneumonia.