import_usearch_biom_file: Import a USEARCH biom File

Description Usage Arguments Details Value Author(s) Examples

View source: R/import_usearch_biom_file.R

Description

Converts a biom file produced with USEARCH's usearch_global command into a phyloseq object.

Usage

1

Arguments

in_file

A biom file produced with USEARCH's usearch_global command.

...

Other objects accepted by phyloseq, e.g. sample data table, representative sequences.

Details

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.

Value

An experiment level phyloseq object (i.e. with at least an otu_table).

Author(s)

John Quensen

Examples

 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)
}

jfq3/RDPutils documentation built on Nov. 8, 2019, 1:05 p.m.