Extended Data Fig. 1: Abundance of the five additional spore compounds affected by social immunity.

Further to ergosterol (compound 18; Fig. 3b insert), five additional compounds were identified by the random forest as important in differentiating between the two selection histories (shown in the order of their derived compound importance; Supplementary Fig. 2). Three of these (compounds 16, 17, 19) were classified as ergosterol derivatives, one as an ester (compound 25) and one is unknown (compound 7; for mass spectrum see Supplementary Fig. 3). All of the identified important compounds were significantly lower in abundance in the social than the individual lines (WRST, comp. 7 and 17, p = 0.007; comp. 19, p = 0.025; comp. 25 and 16: p = 0.031; Supplementary Table 1; significant differences denoted by different letters). Dots represent the 10 replicate lines each of the individual and social selection history (with enlarged dots indicating R1-dominant lines; for separate statistics see Supplementary Table 2), shades the 95% CIs around the medians (black lines). Colours as in Fig. 2.