refdb_export_dada2: Export reference database for DADA2

View source: R/refdb_export.R

refdb_export_dada2R Documentation

Export reference database for DADA2

Description

Write reference database in formats which can be used with the functions of the package dada2.

Usage

refdb_export_dada2(x, file, mode = "taxonomy")

Arguments

x

a reference database.

file

a path to the file to be written.

mode

character string to determine the type of file to produce. Use "taxonomy" to produce a file for function assignTaxonomy or "species" to produce a file for function assignSpecies.

Value

No return value, called for side effects.

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_export_dada2(lib, tempfile())


refdb documentation built on Sept. 22, 2022, 5:07 p.m.