Mutating Slots of Phyloseq
mutateSampleData(x, ...)
mutateTaxaTable(x, ...)
mutateAbundanceTable(x, ...)
phyloseq
object
Arguments that dplyr::mutate can accept
A phyloseq
Mutate different phyloseq
slots.
mutateAbundanceTable
mutate otu_table
. Will also add the new sample to
sample_data
mutateTaxaTable
mutate tax_table
, Add or modify existing columns.
mutateSampleData
mutate sample_data
. Add columns, modify existing
columns.
Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils
library(biomeUtils)
library(dplyr)
data("FuentesIliGutData")
ps_otu <- mutateAbundanceTable(FuentesIliGutData, test = 1:ntaxa(FuentesIliGutData))
ps_tax <- mutateTaxaTable(FuentesIliGutData, test = 1:ntaxa(FuentesIliGutData))
ps_samdat <- mutateSampleData(FuentesIliGutData, test = paste0(ILI, "-test"))