download_genbank {seqmagick} | R Documentation |
download_genbank
Description
download genbank or fasta file by accession number
Usage
download_genbank(acc, db = "nuccore", format = "genbank", outfile = NULL, ...)
Arguments
acc |
accession number(s) |
db |
supported db, currently 'nuccore' |
format |
one of 'genbank' or 'fasta' |
outfile |
output file, by default, acc.gb or acc.fa |
... |
additional parameters for download.file |
Value
output file vector
Author(s)
Guangchuang Yu
Examples
## Not run:
tmpgb <- tempfile(fileext = '.gb')
tmpfa <- tempfile(fileext = '.fa')
download_genbank(acc='AB115403', format='genbank', outfile=tmpgb)
download_genbank(acc='AB115403', format='fasta', outfile=tmpfa)
## End(Not run)
[Package seqmagick version 0.1.7 Index]