Statistical analyses of the 20 metagenomes and their associated environmental factors. Colored spheres represent the TP soil samples: red, farmlands (sites F); green, alpine meadow (sites G); blue, lake (site L). Sample names are abbreviated due to space constraints: 1, F1U; 2, F1L; 3, F2U; 4, F2L; 5, F3U; 6, F3L; 7, G6U; 8, G6L; 9, G1U; 10, G1L; 11, G2U; 12, G2L; 13, G4U; 14, G4L; 15, G3U; 16, G3L; 17, G5U; 18, G5L; 19, L1U; 20, L1L. (A) PCA based on the relative abundance of all bacterial genera. (B) PCA based on soil environmental factors. Detail data of these factors was deposited in Additional file 1: Table S1 and Additional file 1: Table S2. (C) CCA based on normalized soil environmental factors and the relative abundance of all bacterial genera. MZ means grain size; Triangular region formed by red arrows of Mn and Li, and the gray line between them indicates the range of minor elements’ distribution; Samples (1-8, 10-14) are densely clustered, and their names are not shown. (D) PCA based on relative abundance of functional genes at the third KEGG pathway level.