download_genbank | R Documentation |
download genbank or fasta file by accession number
download_genbank(acc, db = "nuccore", format = "genbank", outfile = NULL, ...)
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 |
output file vector
Guangchuang Yu
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.