dbxref-methods: Access the 'db_xref's of GenBank features

Description Usage Arguments Value Examples

Description

Access the db_xrefs of GenBank features

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dbxref(x, db = NULL, ...)

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

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

## S4 method for signature '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

1
2
3
4
5
6
7
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")

gschofl/biofiles documentation built on Sept. 27, 2020, 12:08 a.m.