en_download: Download data

Description Usage Arguments Details Value References Examples

Description

Download data

Usage

1
2
en_download(id = NULL, result = NULL, format = "xml", limit = NULL,
  offset = NULL, max = NULL, read = TRUE, ...)

Arguments

id

(character) Ids of various sorts, combine in a vector for > 1

result

(character) result option, one of: sequence_release, assembly, ...

format

(character) data format, one of xml (default), fasta, text, fastq

limit

(integer) Number of results to return

offset

(integer) Result number to start at

max

(integer) Max results

...

Curl options passed to GET

Details

caching using rappdirs

Value

file path as character string, or parsed data

References

http://www.ebi.ac.uk/ena/browse/data-retrieval-rest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
en_download(id = 'Taxon:4235', limit = 10)
en_download(id = 'Taxon:4235', limit = 10, read = FALSE)
en_download(id = 'A00145', format = "fasta")
en_download(id = 'A00145', format = "fastq")
en_download(id = 'A00145', format = "text")
en_download(id = c('Taxon:4235', 'Taxon:6543'))
en_download(id = c('Taxon:4235', 'Taxon:6543'), read = FALSE)

## End(Not run)

sckott/egnar documentation built on May 29, 2019, 3:59 p.m.