Functional phases encode the response of the soil microbiome to environmental change