qualif-methods: Get/set qualifiers of GenBank features

Description Usage Arguments Value Examples

Description

Get/set qualifiers of GenBank features

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
qualif(x, which = "", ...)

qualif(x, which, check = TRUE) <- value

## S4 method for signature 'gbFeature'
qualif(x, which, fixed = FALSE, use.names = TRUE)

## S4 replacement method for signature 'gbFeature'
qualif(x, which, check = TRUE) <- value

## S4 method for signature 'gbFeatureTable'
qualif(x, which = "", fixed = FALSE, use.names = TRUE)

## S4 method for signature 'gbRecord'
qualif(x, which = "", fixed = FALSE, use.names = TRUE)

Arguments

x

A gbFeature, gbFeatureTable, or gbRecord object.

which

A character vector giving the name(s) of the qualifiers to retrieve or set.

...

Additional arguments passed to methods.

check

if FALSE, don't perform validity checks.

value

The qualifier information to set on x.

fixed

If TRUE, which is matched against qualifiers as is, if FALSE it is treated as a regular expression.

use.names

If TRUE, return a data.frame using which as column names, if FALSE return, if possible, a character vector or a list.

Value

A data.frame.

Examples

1
2
3
4
5
6
load(system.file("extdata", "marine_metagenome.rda", package = "biofiles"))
qualif(x[[1]], 'db_xref')

## use shortcuts to common qualifiers
proteinID(x["CDS"])
locusTag(x["CDS"])

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