physeq_list_betaDiv: calculating beta diversity for a list of phyloseq objects
Description
For each phyloseq object in a list, calculates beta-diversity
between all samples using the phyloseq::distance function.
Usage
physeq_list_betaDiv(physeq_l, method = "unifrac", weighted = TRUE,
fast = TRUE, normalized = TRUE, parallel = FALSE)
Arguments
physeq_l
A list of phyloseq objects
weighted
Weighted Unifrac (if calculating Unifrac)
Value
List of dist objects
Details
Note: for calculating Unifrac values, phyloseq will select
a root at random if the input phylogeny is not rooted.
Examples
Run this code# NOT RUN {
data(physeq_S2D2_l)
# }
# NOT RUN {
physeq_S2D2_l_d = physeq_list_betaDiv(physeq_S2D2_l)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab