otu_tax_labels: swap OTU designations with 'genus:OTU'

Description Usage Arguments Value Examples

View source: R/functions.R

Description

swap OTU designations with 'genus:OTU'

Usage

1
otu_tax_labels(mothur_tax)

Arguments

mothur_tax

A mothur taxonomy file read in by "extract_mothur_tax()"

Value

Returns a named vector. The values of this vector are new names for each OTU. These are made by concatenating the entry in the 'Genus' column with the entry in the 'OTU' column separated by a ':'. This named vector can then be used to get the new names for any subset of these OTUs. I use this function when I've got some plot involving a few OTUs and I want to label them with both an OTU number and some taxonomy information.

Examples

1
#soon

Jtrachsel/funfuns documentation built on Aug. 8, 2021, 7:31 p.m.