import_qiime2_tax_table {speedytax} | R Documentation |
Import QIIME2 Classification Table
Description
Import taxonomy results exported from the QIIME2 Bayesian classifiers
Usage
import_qiime2_tax_table(in_file)
Arguments
in_file |
A tab-delimited classification table output by QIIME2 |
Details
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.
Value
A phyloseq tax_table object
References
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.
Examples
## 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
[Package speedytax version 1.0.4 Index]