db_ref: Valid taxonomy databases

Description Usage Format Attribution Examples

Description

This defines the valid taxonomic databases that can be used in taxon_db objects and objects that use taxon_db objects, such as taxon_id and taxon. db_ref$get can be used to see information for the databases. Users can add their own custom databases to the list using db_ref$set. For each database the following information is included:

Usage

1

Format

An object of class list of length 3.

Attribution

This code is based on the code handling options in knitr.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# List all database definitions
db_ref$get()

# Get a specific database definition
db_ref$get('ncbi')

# Add or overwrite a database definition
db_ref$set(
  name = "my_new_database",
  url = "http://www.my_tax_database.com",
  desc = "I just made this up",
  id_regex = ".*"
)

# Reset definitions to default values
db_ref$reset()

zachary-foster/taxa2 documentation built on Jan. 1, 2021, 1:48 p.m.