Microbial functional genes serve as the core genetic foundation driving microbial ecological functions; however, its microbial functional gene composition across varied habitats and its ecological adaptation interplay with plants remain understudied. In this study, we investigated the P. tabuliformis rhizosphere microbial functional genes which are related to N and P cycles across ridge and slope habitats between different elevational gradients, analyzed their composition and abundance, and analyzed their responses to environmental factors. Results showed that slope habitats had a significantly greater abundance of N and P cycling functional genes compared to those of ridge counterparts (p < 0.05). Specifically, slope environments showed an enhanced gene abundance associated with denitrification, nitrogen fixation, nitrification, assimilatory/dissimilatory nitrate reduction, and nitrogen transport processes, along with the superior expression of genes related to inorganic/organic phosphorus metabolism, phosphorus transport, and regulatory gene expression. These nutrient cycling gene levels were positively correlated with soil nutrient availability. Our findings revealed distinct ecological strategies: Ridge communities employ resource-conservative tactics, minimizing microbial investments to endure nutrient scarcity, whereas slope populations adopt competitive strategies through enriched high-efficiency metabolic genes and symbiotic microbial recruitment to withstand resource competition.
Keywords: P. tabuliformis; Qinling Mountains; ecological adaptability; functional genes; habitat heterogeneity.