5. Beta Diversity

 

Overview

 

While alpha diversity examines differences within treatment groups, beta diversity measures the similarity (or dissimilarity) between samples and groups.

Each variable is plotted on principal coordinates analysis (PCoA) plots, to examine the variance between samples based on a dissimilarity matrix. A detailed explanation of PCoA and other ordination methods can be seen here: http://albertsenlab.org/ampvis2-ordination/

Sample distance can be measured using 3 distance-based ordination methods. These methods are:

  1. Bray–Curtis dissimilarity measures the fraction of overabundant counts.

Sorenson, T. (1948) “A method of establishing groups of equal amplitude in plant sociology based on similarity of species content.” Kongelige Danske Videnskabernes Selskab 5.1-34: 4-7.

  1. Cao index is a minimally biased index for high beta diversity and variable sampling intensity. Chao index tries to take into account the number of unseen species pairs.

Cao, Y., Bark, A. W., & Williams, W. P. (1997). Analysing benthic macroinvertebrate community changes along a pollution gradient: a framework for the development of biotic indices. Water Research, 31(4), 884-892.

  1. Jaccard similarity index measures the fraction of unique features, regardless of abundance..

Jaccard, P. (1908). “Nouvellesrecherches sur la distribution florale.” Bull. Soc. V and. Sci. Nat., (44):223-270.

 

 

5a. Choosing a variable to analyse

 

In the Alpha Diversity section, you already imported your nfcore/ampliseq results and converted them to an ampvis2 object. To have another quick look at your ampvis object:

ampvisdata

 

As in the Alpha Diversity section, you need to choose a variable to work with.

You can view your variables as column names in your samples_table:

colnames(samples_table)

 

Now enter the column name of the variable you want to analyse:

group <- "Nose_size"

 

Ordering your variable

 

And once again you’ll need to order the groups in your variable. See the ‘Ordering your variable’ section in the Alpha diversity section for more details.

Choose how you want to order your groups:

Then run the following to apply the levels to your data:

 

5b. PCoA plots and statistics

 

The overview section described (with links and references) the ordination methods that can be used to estimate and plot beta diversity.

Briefly, these are: Bray–Curtis dissimilarity, Cao index, and Jaccard similarity index. Each of these has strengths and weaknesses. It's up to you, the researcher, to explore the literature and decide which is the best index to use for your data.

 

Choose the ordination method you want to use to estimate and plot beta diversity.

Bray–Curtis dissimilarity is used by default ("bray") Change this to "cao" for Cao index, or "jaccard" for Jaccard similarity index.

 

Now create the PCoA plot.

 

Save your plot as a 300dpi (i.e. publication quality) tiff or pdf file:

 

Statistical analysis

 

To compare the overall differences between groups within your chosen variable, a Permutational Multivariate Analysis of Variance (PERMANOVA) test can be performed and similarly a pairwise PERMANOVA test can be performed to compare differences between each group.

The R-squared value represents the percentage of variance explained by the examined groups. E.g. if R = 0.23 then 23% of the total diversity is explained by groupwise differences.

 

PERMANOVA:

 

PERMANOVA R squared =

PERMANOVA significance (p) =

 

Pairwise PERMANOVA:

Calculate the pairwise PERMANOVA. This is a bit complex, as each group within the variable has to be compared to each other group in a variety of ways. Code comments (#) explain what each line of code does.

 

Now output these results as a table.

You can export this table as a csv file:

 

Go to the next section: Community structure