View source: R/alpha_diversity.R
alpha_diversity | R Documentation |
Calculates alpha diversity metrics from count table: Shannon's D, Simpson's index, evenness, richness. Calculations are based on Jost et al 2006 https://doi.org/10.1111/j.2006.0030-1299.14714.x
alpha_diversity(count_df)
count_df |
Count table with samples in columns, taxa in rows |
data frame of alpha diversity metrics for each sample
# get example data
data(asv_example)
# rownames have to be features
asv_counts <- data.frame(asv_example[2:ncol(asv_example)], row.names=asv_example$sequence)
alpha_div <- alpha_diversity(asv_counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.