clean_taxa_names: Rename taxa

Description Usage Arguments Details Value Examples

View source: R/clean_taxa_names.R

Description

Renames taxa to have short human-readable names

Usage

1
clean_taxa_names(x, name = "OTU")

Arguments

x

Object of class phyloseq

name

Character, defaults to "OTU". Optional. String to use in every taxa name.

Details

The original taxa names are saved as the original_names attribute. See the example for an example of how to access the original names.

Value

Object of class phyloseq, with taxa renamed (defaults to OTU1, OTU2, ...), with the original taxa names saved as an attribute.

Examples

1
2
3
4
data(soil_phylo)
x <- clean_taxa_names(soil_phylo)
# Use this line to see the original taxa names
attr(x, "original_names")

corncob documentation built on March 11, 2021, 5:06 p.m.