I want to evaluate the effect of different treatments on the composition of microbial community. The treatments consist in different crop rotations and I have two repetitions (communities) per treatment. Every community is characterized as number of sequence per each taxa detected. To complicate the analyses there are some soil parameters (pH, P, N..) that are not uniform even among the repetitions. Is there any kind of analysis to split the influence of environmental factors from the influence of my treatments?