The metrics were primarily taken from definitions provided by scikit-bio
Python package, as well as the vegan
and picante
R packages.
The functions are provided as elements of this list, so that it is more convenient to call them programatically.
All available alpha diversity metrics can be seen by typing names(FuncDiv_alpha_metrics)
.
The code to compute each metric can be inspected for each function, for instance, for richness, by typing: FuncDiv_alpha_metrics$richness
.
These functions all have a single input: a numeric vector containing taxa abundances within a given sample.
The exception is for faiths_pd
, which expects a character vector of taxa labels that are present, as well as a tree (phylo object),
which must contain all these specified taxa labels as tip labels.
Note that not all these metrics are appropriate for relative abundance data. In particular, these metrics expect count data (e.g., read counts)
corresponding to the number of occurrences of each category (e.g., each microbe): menhinicks_richness
, mcintoshs_evenness
, mcintoshs_dominance
,
margalefs_richness
, and fishers_alpha
.