R/refdb_ncbi_taxonomy.R
refdb_set_ncbitax.RdReplace the current taxonomy using the NCBI Taxonomy database
refdb_set_ncbitax(
x,
min_level = "species",
force_species_name = TRUE,
verbose = TRUE
)a reference database (tibble) with one or several columns giving the taxonomy of each record and explicitly indicated in the field taxonomy. See refdb_set_fields.
minimum taxonomic level at which taxonomy
should be replaced. Default is the finest level ("species").
if TRUE, species not found in NCBI Taxonomy
will keep their original names instead of NAs.
print information in the console.
The reference database with the NCBI taxonomy for the genus level and higher ranks. (the original taxonomy above the genus level is removed).
if (FALSE) { # \dontrun{
lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_set_ncbitax(lib)
} # }