Learn R Programming

rentrez (version 0.3.1)

entrez_fetch: Download data from NCBI databases

Description

Download data from NCBI databases

Usage

entrez_fetch(db, rettype, retmode = "text", config = NULL, ...)

Arguments

db
character Name of the database to use
rettype
character Format in which to get data (eg, fasta, xml...)
retmode
character Mode in which to recieve data, defaults to 'text'
...
character Additional terms to add to the request
config
vector configuration options passed to httr::GET

Value

  • chracter string containing the file created

See Also

config for avaliable configs

Examples

Run this code
katipo <- "Latrodectus katipo[Organism]"
katipo_search <- entrez_search(db="nuccore", term=katipo)
kaitpo_seqs <- entrez_fetch(db="nuccore", id=katipo_search$ids, rettype="fasta")

Run the code above in your browser using DataLab