Taking M. tuberculosis culture as the gold standard, the IFN-γ ELISPOT assay was used to analyze peripheral blood and peritoneal dialysis fluid of patients, and the receiver operating characteristic (ROC) curves in patients with tuberculous peritonitis (TBP) or non-tuberculous peritonitis (NTBP) were analyzed. The gene discussed is IFNG; the disease is tuberculous peritonitis.