View source: R/import_qiime2_tax_table.R
import_qiime2_tax_table | R Documentation |
Import taxonomy results exported from the QIIME2 Bayesian classifiers
import_qiime2_tax_table(in_file)
in_file |
A tab-delimited classification table output by QIIME2 |
This function expects up to 7 ranks (Domain, Phylum, Class, Order, Family, Genus and Species) but determines the number actually in the file.
Depending on how the QIIME2 classifier is built, the ranks in the Taxon field of the classification result may be separated by a semicolon or by a semicolon plus a space. This function correctly parses the Taxon field in both cases.
A phyloseq tax_table object
Bolyen E, Rideout JR, Dillon MR, Bokulich NA, et al. 2019. Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nat Biotechnol 37:852-857.
## Example with ranks in Taxon field separated by semicolon plus a space.
taxonomy_file <- system.file("extdata", "qiime2_table.tsv", package = "speedytax")
example_tax_table <- import_qiime2_tax_table(in_file = taxonomy_file)
example_tax_table
## Example with ranks in Taxon field separated by semicolon only.
taxonomy_file <- system.file("extdata", "qiime2_table_a.tsv", package = "speedytax")
example_tax_table <- import_qiime2_tax_table(in_file = taxonomy_file)
example_tax_table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.