pre_tax_table | R Documentation |
Complete a taxonomy table
pre_tax_table(
tax_table,
tax_levels = c("k", "p", "c", "o", "f", "g", "s", "st"),
na_tax = "Unclassified|uncultured|Ambiguous|Unknown|unknown|metagenome|Unassig",
ignore.case = TRUE,
na_repalce = "Unknown"
)
tax_table |
taxonomy table |
tax_levels |
a vector whose length longer than |
na_tax |
grepl some words and turn to |
ignore.case |
ignore.case for |
na_repalce |
defalut: Unknown |
a good taxonomy table
MicrobiotaProcess
taxmat <- matrix(sample("onelevel", 7 * 2, replace = TRUE), nrow = 2, ncol = 7) %>% as.data.frame()
colnames(taxmat) <- c("Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species")
pre_tax_table(taxmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.