Finds the lowest taxonomic rank that isn't NA, stopping at `end`.

Usage

tax_climber(otus, taxonomy, end = "Genus", label = FALSE, sep = ":", ranks = qiimer::taxonomic_ranks)

Arguments

otus
the otus to look for
taxonomy
the taxa annotations, with otus as rownames (important!)
end
the lowest desired taxonomic rank
label
label the lowest rank with [kpcofgs]?
sep
separator to use between rank label and rank value
ranks
a character vector of taxonomic ranks, in order

Value

the lowest non-NA taxonomic rank assignment

Description

Finds the lowest taxonomic rank that isn't NA, stopping at `end`.