Description Usage Arguments Details Value Examples
View source: R/convenience_functions.R
OTU names when generated with vsearch for example corresponds to sequence SHA1 hash value. Despite being unique, this notation is not human readable. This function transform these hashes into easier OTU names. Ex: 'e443b18' to 'OTU_1' for the most abundant OTU
1 | rename_otu(physeq, hash2id_file)
|
physeq |
|
hash2id_file |
A character giving the filename to write the correspondence table between the hash and the new ID or "" for output to the console. |
This renaming also has the advantage to ease subsetting with OTU names
because OTU names are the row.names
of several
phyloseq
object.
physeq phyloseq-class
with OTU renamed.
1 2 3 4 | require(phyloseq)
data(esophagus)
taxa_names(esophagus)[1:6]
taxa_names( rename_otu( esophagus, hash2id_file = "" ) )[1:6]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.