Learn R Programming

biofiles (version 1.0.0)

dbxref: Access the db_xrefs of GenBank features

Description

Access the db_xrefs of GenBank features

Usage

dbxref(x, db = NULL, ...)

# S4 method for gbFeature dbxref(x, db = NULL, ...)

# S4 method for gbFeatureTable dbxref(x, db = NULL, ...)

# S4 method for gbRecord dbxref(x, db = NULL, ...)

Arguments

x

A '>gbFeature, '>gbFeatureTable, or '>gbRecord object.

db

(Optional) A character vector giving the database names of the desired db_xrefs.

...

Additional arguments passed to methods.

Value

A named character vector (or list of named character vectors) of db_xrefs.

Examples

Run this code
# NOT RUN {
load(system.file("extdata", "marine_metagenome.rda", package = "biofiles"))

## all db_xrefs associated with CDSs
dbxref(x["CDS"])

## retrieve the TaxId from the "source" field.
dbxref(x[[1]], "taxon")
# }

Run the code above in your browser using DataLab