mutatePhyloseq | R Documentation |
Mutating Slots of Phyloseq
mutateSampleData(x, ...)
mutateTaxaTable(x, ...)
mutateAbundanceTable(x, ...)
x |
|
... |
Arguments that dplyr::mutate can accept |
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.
A phyloseq
Sudarshan A. Shetty
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.