otunames: otu names function this function adds numbers to the front of...

Description Usage Examples

View source: R/otunames.R

Description

otu names function this function adds numbers to the front of otu numbers to keep them unique when combining phyloseq objects from different runs

Usage

1
otunames(x, n)

Examples

1
2
3
4
5
6
#need to give unique OTU names in otu and tax table before combining phyloseq objects from 2 mothur runs!

newotu <- otunames("0000",otu_table(mothurphy2))
newtax <- otunames("0000",tax_table(mothurphy2))
mothurphy2 <- phyloseq(newotu,newtax)
phy <- merge_phyloseq(mothurphy,mothurphy2)

elittmann/erictools documentation built on Feb. 2, 2020, 11:01 p.m.