write.GenBank-methods: Write GenBank records or features to file in GenBank format

Description Usage Arguments Details Examples

Description

Write GenBank records or features to file in GenBank format

Usage

1
2
3
4
5
6
7
8
9
write.GenBank(x, file, append = FALSE, ...)

## S4 method for signature 'gbRecord'
write.GenBank(x, file, header = TRUE, sequence = TRUE,
  append = FALSE)

## S4 method for signature 'gbFeatureTable'
write.GenBank(x, file, header = TRUE,
  sequence = TRUE, append = FALSE)

Arguments

x

A gbRecord instance.

file

A connection or a character string naming the file to write to.

append

if TRUE the data is appended to the connection.

...

Additional arguments passed to methods.

header

if FALSE exclude the Genbank header.

sequence

if FALSE exclude the sequence.

Details

For a description of the GenBank format see http://www.ncbi.nlm.nih.gov/collab/FT/

Examples

1
2
3
4
5
6
7
8
## Not run: 
load(system.file("extdata", "marine_metagenome.rda", package = "biofiles"))
write.GenBank(x, file = "data/marine_metagenome.gb")

## write selected features to file.
write.GenBank(x["CDS"], file = "data/marine_metagenome_cds.gb", header = FALSE, sequence = FALSE)

## End(Not run)

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