I'm still playing with how to implement this test. My test data has 5 groups that are extremely well-separated as expected on Community (see below bray curtis dissimilarities). I'm not sure if the test you describe is appropriate for comparisons that contain more than two groups or not. I added the read counts to my mapping file, ran core diversity on the nonnormalized OTU table (I know, more than necessary to get the dm file), and then ran adonis on the bray curtis matrix passing in the new ReadCounts category. The test was very significant, and forgive my rusty stats, but if there are more than two groups, the sums of squares table ought to be a lot more complex. One other concern is that you can see that community 1a sequenced better than community 2b, so if I were to choose those two communities to do a more appropriate test, I might get significance based on read count even though I know that I am resolving the true differences here since I made these mock communities myself. I'll keep playing with this, but let's keep this discussion open.
Adonis output (by ReadCount):
Call:
adonis(formula = as.dist(qiime.data$distmat) ~ qiime.data$map[[opts$category]], permutations = opts$num_permutations)
Permutation: free
Number of permutations: 999
Terms added sequentially (first to last)
Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
qiime.data$map[[opts$category]] 1 1.3986 1.39857 8.1613 0.38567 0.001 ***
Residuals 13 2.2278 0.17137 0.61433
Total 14 3.6263 1.00000
---
formula = as.dist(qiime.data$distmat) ~ qiime.data$map$Library_size + qiime.data$map$effect_studied
However, this will not correct your PCoA plot, or any other downstream analysis.