View source: R/phyloseq_randomize.R
phyloseq_randomize | R Documentation |
Randomize abundance table and phylogeny in phyloseq objects (for null model testing and simulation).
phyloseq_randomize(physeq, null_model = "phylogeny.pool", verbose = T, ...)
physeq |
A phyloseq-class object |
null_model |
Character string defining the null model (for the description of supported models see |
verbose |
Logical; if TRUE, additional information messages will be displayed |
... |
Additional arguments may be passed to |
Currently only null models from picante package are implemented.
A phyloseq-class object with randomized abundance table and/or phylogeny.
randomizeMatrix
, commsim
# Load data
data("esophagus")
## Randomize phyloseq object
# Shuffle tips of the phylogenetic tree
phyloseq_randomize(esophagus, null_model = "phylogeny.pool")
# Randomize community data matrix with the independent swap algorithm (Gotelli 2000) maintaining species occurrence frequency and sample species richness
phyloseq_randomize(esophagus, null_model = "independentswap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.