a, ICS data generated using Mtb-specific proteins ESAT6 and CFP10 (Peptide Pool 1) were analyzed using COMPASS, and the results from six functionally relevant T cell subsets are displayed as a heatmap of the probability of detecting a response above background. Subsets containing IFN-γ are noted in red. Rows represent study subjects and the columns represent CD4 T cell functional subsets. b, Subject-specific COMPASS results were summarized for 41 individuals using the polyfunctionality score, which weights T cell subsets that include more than one function. Medians and interquartile ranges are depicted. The statistical significance was calculated using the Mann–Whitney U test, and the two-tailed P value is indicated. c, The absolute magnitude of responding CD4 T cells after background correction is displayed for each of the functional subsets identified by COMPASS. Individual data points for n = 41 (22 ‘resisters’, 19 LTBI controls) are shown with bars indicating medians. To facilitate visualization, we have not displayed a single LTBI outlier with a value of 3.12%. Statistical testing was performed using the Mann–Whitney U test, with correction for multiple hypothesis testing using Bonferroni’s method, and two-tailed P values are depicted. d, Representative flow cytometry plots from a ‘resister’ and a control subject examining an IFN-γ-containing or an IFN-γ-lacking T cell subset in response to stimulation with DMSO or Peptide Pool 1, with each experiment performed once. Frequencies of the relevant T cells are shown and indicated as red dots in the typical two-dimensional layout.