View source: R/print_taxonomy.R
print_taxonomy | R Documentation |
The print_taxonomy()
will output the consensus taxonomy for an unknown
sequence with confidence scores for each taxonomic level and each taxonomic
level separated by semi-colons
print_taxonomy(consensus, n_levels = 6)
consensus |
A list object that contains two slots each with an equal
sized vector. The |
n_levels |
An integer indicating the number of taxonomic levels to expect. If the number of observed levels is less than this value, then missing levels will have "_unclassified" to the end of the last named classification |
A character string indicating the classification at each taxonomic level with the corresponding confidence in parentheses. Each taxonomic level is separated by a semi-colon
oscillospiraceae <- list(
taxonomy = c(
"Bacteria", "Bacillota", "Clostridia",
"Eubacteriales", "Oscillospiraceae"
),
confidence = c(100, 100, 99, 99, 98)
)
print_taxonomy(oscillospiraceae, n_levels = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.