mutatePhyloseq: Mutating Slots of Phyloseq

mutatePhyloseqR Documentation

Mutating Slots of Phyloseq

Description

Mutating Slots of Phyloseq

Usage

mutateSampleData(x, ...)

mutateTaxaTable(x, ...)

mutateAbundanceTable(x, ...)

Arguments

x

phyloseq object

...

Arguments that dplyr::mutate can accept

Details

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.

Value

A phyloseq

Author(s)

Sudarshan A. Shetty

References

Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils

Examples

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"))

RIVM-IIV-Microbiome/biomeUtils documentation built on July 20, 2023, 10:29 a.m.