View source: R/phyloseq_mult_raref_avg.R
phyloseq_mult_raref_avg | R Documentation |
Perform rarefaction and average relative OTU abundance
phyloseq_mult_raref_avg(
physeq,
SampSize = NULL,
iter = 1000,
parallel = FALSE,
verbose = TRUE,
...
)
physeq |
A phyloseq-class object |
SampSize |
Rarefaction depth (number of reads to sample) |
iter |
Number of rarefication iterations |
parallel |
Logical or integer; if TRUE, attempts to run the function on multiple cores; integer defines the number of cores to use (if it is set to TRUE, all cores will be used) |
verbose |
Logical; if TRUE, informational messages will be shown on screen |
... |
Additional arguments will be passed to |
phyloseq object with relative OTU abundance averaged across multiple rarefactions.
# Load data
data(GlobalPatterns)
# Subset data for faster processing
GP <- prune_taxa(taxa_sums(GlobalPatterns) >= 100, GlobalPatterns)
# Perform multiple rarefaction and average relative OTU abundances across rarefaction iterations
res <- phyloseq_mult_raref_avg(GP)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.