Skip to main content

Beta diversity

Analysis question

Does overall community composition differ between mice colonised with stool from donors with ADHD and mice colonised with stool from control donors, after accounting for cohort?

Analysis information

  • Samples: 27 mice (Control n = 14, ADHD n = 13)
  • Features: all 151 taxa (genus-level sensitivity analysis on 54 groups)
  • Transformation: relative abundance
  • Distance: Bray–Curtis dissimilarity
  • Ordination: principal coordinates analysis (PCoA), descriptive
  • Test: PERMANOVA, distance ~ cohort + donor group, marginal tests, 9,999 permutations
  • Dispersion check: test of homogeneity of multivariate dispersion between donor groups
  • Finding threshold: p < 0.05 for the donor-group term

PERMANOVA partitions Bray–Curtis dissimilarity between model terms. Marginal tests assess each term after all others, so the donor-group term is adjusted for cohort. R² is the share of total dissimilarity attributed to a term. PERMANOVA tests overall composition; it does not identify which taxa differ (see the differential-abundance page).

PERMANOVA can return a small p-value when groups differ in spread rather than in centroid. Dispersion was therefore tested separately.

Sensitivity analyses: (1) permutations restricted within cohorts, so that donor-group labels are only exchanged between mice of the same cohort; (2) genus-level abundances; (3) a donor group × cohort interaction term.

Mice are treated as exchangeable units. The dataset does not record donor identity; if mice in a cohort and group share a donor, permutation p-values are optimistic for a donor-level conclusion.

Results

Ordination

Figure 1: PCoA of Bray–Curtis dissimilarity between mice (all 151 taxa, relative abundance). Each point is one mouse; colour shows donor group and shape shows cohort. Crosses mark donor-group centroids. Axis labels give the share of positive eigenvalues captured by each axis.

The first two axes capture 59.6% of the variation. 6 mice, all colonised from ADHD donors (2 from cohort 1 and 4 from cohort 2), form a separate cluster at low PCo2. The remaining ADHD-colonised mice lie among the control mice. This pattern could reflect one or a few donors whose microbiota differed from the rest. Donor identity is not recorded, so this cannot be checked. Sequencing depth in this cluster (median 8,878 reads) was lower than in the other mice (median 18,399). Ellipses (68% coverage, about one standard deviation) show spread and are not a test.

PERMANOVA

Table 1: PERMANOVA of Bray–Curtis dissimilarity (9,999 permutations). R² is the share of total dissimilarity attributed to the term. p-values are permutation-based and unadjusted.
Analysis Term df R² Pseudo-F p
Primary: cohort + donor group Donor group (adjusted for cohort) 1 0.068 1.79 0.110
Primary: cohort + donor group Cohort (adjusted for donor group) 2 0.058 0.76 0.669
Permutations within cohort Donor group 1 0.065 1.74 0.116
Genus level: cohort + donor group Donor group (adjusted for cohort) 1 0.058 1.49 0.204
With interaction Donor group × cohort 2 0.088 1.17 0.295

Donor group accounted for 6.8% of the Bray–Curtis dissimilarity after adjustment for cohort (pseudo-F = 1.79, p = 0.110), below the 0.05 threshold. Cohort accounted for 5.8%. Restricting permutations within cohorts, using genus-level abundances, or adding an interaction term did not change this conclusion. Most of the dissimilarity (88%) lies between individual mice within the same group and cohort.

Dispersion

Table 2: Mean distance of mice to their donor-group centroid in PCoA space (multivariate dispersion), and the permutation test of equal dispersion.
Control mean distance ADHD mean distance F p
0.421 0.434 0.09 0.770

Within-group spread was similar in the two groups (p = 0.770), so dispersion differences do not distort the PERMANOVA result.

Interpretation

Overall community composition did not differ detectably between mice colonised from ADHD donors and from control donors. The ordination suggests that part of the ADHD group differs from the controls while the rest does not. PERMANOVA averages over all mice, so a difference confined to a subset of mice or donors is diluted. With 27 mice and large differences between individual mice, a modest compositional shift attributable to donor status cannot be excluded: an R² of 0.068 is in the range that this design cannot separate from chance.

Session information

R version 4.6.2 (2026-10-29)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 26.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.32.so;  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Etc/UTC
tzcode source: system (glibc)

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
 [1] knitr_1.52                      ggplot2_4.0.4                  
 [3] tidyr_1.3.2                     dplyr_1.2.1                    
 [5] vegan_2.7-8                     permute_0.10-1                 
 [7] mia_1.21.34                     TreeSummarizedExperiment_2.22.0
 [9] Biostrings_2.82.0               XVector_0.54.0                 
[11] SingleCellExperiment_1.36.0     MultiAssayExperiment_1.40.0    
[13] SummarizedExperiment_1.44.0     Biobase_2.74.0                 
[15] GenomicRanges_1.66.0            Seqinfo_1.4.0                  
[17] IRanges_2.48.0                  S4Vectors_0.52.0               
[19] BiocGenerics_0.60.0             generics_0.1.4                 
[21] MatrixGenerics_1.26.0           matrixStats_1.5.0              

loaded via a namespace (and not attached):
 [1] tidyselect_1.2.1            viridisLite_0.4.3          
 [3] vipor_0.4.7                 farver_2.1.2               
 [5] viridis_0.6.5               S7_1.0.0                   
 [7] fastmap_1.2.0               lazyeval_0.2.3             
 [9] bluster_1.24.0              DirichletMultinomial_1.56.0
[11] digest_0.6.39               rsvd_2.0.0                 
[13] lifecycle_1.0.5             cluster_2.1.8.3            
[15] tidytree_0.4.9              magrittr_2.0.5             
[17] compiler_4.6.2              rlang_1.3.0                
[19] tools_4.6.2                 igraph_2.3.4               
[21] yaml_2.3.12                 labeling_0.4.3             
[23] S4Arrays_1.14.0             htmlwidgets_1.6.4          
[25] DelayedArray_0.40.0         plyr_1.8.9                 
[27] RColorBrewer_1.1-3          abind_1.4-8                
[29] BiocParallel_1.48.0         withr_3.0.3                
[31] purrr_1.2.2                 grid_4.6.2                 
[33] beachmat_2.30.0             MASS_7.3-66                
[35] scales_1.4.0                dichromat_2.0-1            
[37] cli_3.6.6                   rmarkdown_2.32             
[39] crayon_1.5.3                treeio_1.38.0              
[41] otel_0.3.0                  reshape2_1.4.5             
[43] DelayedMatrixStats_1.36.0   scuttle_1.24.0             
[45] DBI_1.3.0                   ggbeeswarm_0.7.3           
[47] ape_5.8-1                   stringr_1.6.0              
[49] splines_4.6.2               parallel_4.6.2             
[51] yulab.utils_0.2.7           vctrs_0.7.3                
[53] Matrix_1.7-6                jsonlite_2.0.0             
[55] BiocSingular_1.30.0         BiocNeighbors_2.8.0        
[57] ggrepel_0.9.8               decontam_1.34.0            
[59] irlba_2.4.1                 beeswarm_0.4.0             
[61] scater_1.42.0               glue_1.8.1                 
[63] codetools_0.2-20            stringi_1.8.9              
[65] gtable_0.3.6                ScaledMatrix_1.22.0        
[67] tibble_3.3.1                pillar_1.11.1              
[69] htmltools_0.5.9             R6_2.6.1                   
[71] Rdpack_2.6.6                sparseMatrixStats_1.26.0   
[73] evaluate_1.0.5              lattice_0.23-1             
[75] rbibutils_2.4.1             DECIPHER_3.10.0            
[77] Rcpp_1.1.2                  gridExtra_2.3.1            
[79] SparseArray_1.13.5          nlme_3.1-172               
[81] mgcv_1.9-5                  xfun_0.62                  
[83] fs_2.1.0                    pkgconfig_2.0.3            
Published from OmicsBase on 30 Nov 2026.