Alpha diversity statistical test
A multi-assay experiment object
The taxon level used for organisms
Which condition to group samples
Which alpha diversity metric to use
Which stat test to use
A dataframe
data_dir <- system.file("extdata/MAE.rds", package = "animalcules")
toy_data <- readRDS(data_dir)
p <- do_alpha_div_test(toy_data,
tax_level = "genus",
condition = "DISEASE",
alpha_metric = "shannon",
alpha_stat = "Wilcoxon rank sum test"
)
p
#> Wilcoxon rank sum exact test Welch Two Sample t-test
#> P-value 0.3267236 0.4235008