translate_ID: Translate unique IDs such as ASV/OTUs to specified tax rank.

Description Usage Arguments Value

View source: R/taxonomy_level_functions.r

Description

This function translates a vector of given identifiers to the specified taxonomy rank. The lookup table required is generated by 'create_taxonomy_lookup()'.

Usage

1
translate_ID(ID, tax_rank, lookup_table, na.rm = TRUE)

Arguments

ID

a string with the ID name you want to translate

tax_rank

a string with the desired taxonomic rank for translation

lookup_table

the list with all the lookup vectors created by create_taxonomy_lookup().

na.rm

a logical, default is TRUE. All IDs that were assigned as NA on the specified taxonomic rank will be removed. Use FALSE if same length as input vector is required

Value

A character vector of taxonomic annotations on the corresponding taxonomic rank per provided ID


RJ333/phyloseq2ML documentation built on June 2, 2020, 9:25 p.m.