genomes-update: Genome table updates

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Generic function for updating genome tables.

Usage

1
2
## S3 method for class 'genomes'
update(object, ...)

Arguments

object

a genomes data frame to update

...

additional arguments are currently ignored

Details

update will retrieve the new genome table using the update string in attr(object, 'update'). The new table will replace the existing version, but not permanently, since reloading the dataset using data will restore the older version. If you have write permission, one option is to use system.file to replace the data set (see the example below).

Value

Returns the updated genome table and a count of the number of new IDs added and old IDs removed. Old IDs are typically assembly genomes in NCBI tables that have been released as a single complete genome.

Author(s)

Chris Stubben

See Also

genomes-summary, genomes-plot

Examples

1
2
3
4
5
6
7
## Not run: data(proks)
## Not run: update(proks)

# to replace the data set permanently
x <- system.file("data", "proks.rda", package="genomes")
x
## Not run: save(proks, file=x)

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.