View source: R/phyloseq_sep_pairwise.R
phyloseq_sep_pairwise | R Documentation |
Split phyloseq-class object for pairwise comparisons by sample-level variable.
phyloseq_sep_pairwise(phys, group, comparis = "all", drop_zeroes = TRUE)
phys |
A phyloseq-class object |
group |
Variable name (contained in |
comparis |
Character "all" for all possible pairwise comparisons (default), or a matrix with comparison names to use (similar to the output of |
drop_zeroes |
Logical, indicating weather OTUs with zero abundance or samples with zero total abundance should be removed |
List with phyloseq objects (each with only two groups based on selected variable).
data(enterotype)
# Split enterotype data for pairwise comparisons by sequencing technology
ent <- phyloseq_sep_pairwise(enterotype, group = "SeqTech", drop_zeroes = TRUE)
ent
# Perform differential abundance testing for each of the pairwise comparisons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.