saveRecord-methods: Save and load 'gbRecord' objects.

Description Usage Arguments Examples

Description

Serialise and unserialise gbRecords using saveRDS and readRDS

Usage

1
2
3
4
5
6
7
8
9
saveRecord(x, file = NULL, dir = ".", ...)

## S4 method for signature 'gbRecord'
saveRecord(x, file = NULL, dir = ".", ...)

## S4 method for signature 'gbRecordList'
saveRecord(x, file = NULL, dir = ".", ...)

loadRecord(file, ...)

Arguments

x

A gbRecord or gbRecordList instance.

file

A character string naming the file to write to or read from. If NULL, the accession number will be used to construct a file name.

dir

Target directory. (Default: current working directory)

...

Arguments passed to saveRDS.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
aca <- genomeRecordFromNCBI("Bacteria/Acaryochloris_marina", verbose = TRUE)
aca
saveRecord(aca)
rm(aca)
aca <- loadRecord("./NC_009925_NC_009926_NC_009927_NC_009928_NC_009929_NC_0099__.rds")
aca

## End(Not run)

biofiles documentation built on May 2, 2019, 3:31 p.m.