get_deepest_assignment: Get highest taxonomic level to which a microbe is resolved...

Description Usage Arguments Value Examples

View source: R/data_parsing.R

Description

Get highest taxonomic level to which a microbe is resolved (i.e. not NA)

Usage

1
get_deepest_assignment(taxonomy, deepest_tax_level = "genus")

Arguments

taxonomy

a named list of taxonomic assignment for a designated sequence variant

deepest_tax_level

the finest resolution taxonomy level to return (if possible)

Value

readable label of the form "phylum Tenericutes"

Examples

1
2
3
4
5
data <- load_data(tax_level="ASV")
alr_ref <- formalize_parameters(data)$alr_ref
taxonomy <- get_taxonomy(data, alr_ref)
# get deepest resolve level for the first sequence variant
label <- get_deepest_assignment(taxonomy[1,], deepest_tax_level="species")

kimberlyroche/ROL documentation built on Dec. 10, 2020, 2:18 a.m.