paste_tax: Paste Genus information onto a vector of OTU numbers.

Description Usage Arguments Value Examples

View source: R/paste_tax.R

Description

Paste Genus information onto a vector of OTU numbers.

Usage

1
paste_tax(otu_vec, tax = otu_good_taxonomy)

Arguments

otu_vec

Vector of OTU identifiers, used to select rownames (OTU IDs) in tax.

tax

Taxonomy table, otu_good_taxonomy by default.

Value

A factor vector comprised of taxonomy label and OTU identifier, with levels that match the order of OTUs in otu_vec.

Examples

1
2
paste_tax(rownames(otu_good_taxonomy)[1:20])
otu_df$OTU <- paste_tax(otu_df$OTU)

cb-42/cbmbtools documentation built on Jan. 9, 2021, 1:38 a.m.