Description Usage Arguments Details Value Author(s) Examples
View source: R/import_usearch_biom_file.R
Converts a biom file produced with USEARCH's usearch_global command into a phyloseq object.
1 | import_usearch_biom_file(in_file, ...)
|
in_file |
A biom file produced with USEARCH's usearch_global command. |
... |
Other objects accepted by phyloseq, e.g. sample data table, representative sequences. |
This function will import the OTU table contained in the USEARCH biom file, and the taxonomy table if it is present. The function will also accept arguments for sample data table, reference sequences, and a phyloseq class taxonomy table from another source, if one is not present in the biom file.
An experiment level phyloseq object (i.e. with at least an otu_table).
John Quensen
1 2 3 4 5 6 7 8 9 10 11 | ##---- Not run. ----
##-- expt <- import_usearch_biome(infile = "otutab_taxa_03.json")
## The function is currently defined as
import_usearch_biome_file <- function(in_file) {
parse_taxonomy_usearch <- function (char.vec){
parse_taxonomy_default(strsplit(char.vec, ",", TRUE)[[1]])
}
expt <- import_biom(in_file, parseFunction = parse_taxonomy_usearch, ...)
return(expt)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.