efetch2: Retrieve Entrez database records at NCBI in a variety of...

efetch2R Documentation

Retrieve Entrez database records at NCBI in a variety of formats code from Chris Stubben's genomes2 package modified by Jean Elbers https://github.com/cstubben/genomes2/blob/master/R/efetch.R

Description

Retrieve Entrez database records at NCBI in a variety of formats code from Chris Stubben's genomes2 package modified by Jean Elbers https://github.com/cstubben/genomes2/blob/master/R/efetch.R

Usage

efetch2(id, db = "pubmed", rettype = "", retmode = "text",
  showURL = FALSE, destfile, ...)

Arguments

id

An EntrezHistory object or vector of Ids

db

An Entrez database, default pubmed

rettype

Retrieval type, see note for details

retmode

Retrieval mode, see note for details

showURL

display URL string

destfile

location to save downloaded file using download.file. If missing, the url is loaded into R using readLines

...

Other key-value pairs passed to the efetch url string, e.g seq_stop

Value

Returns efetch query

Examples

efetch.out <- efetch2(input.R.object.split[[i]], "nucleotide", "gb", "xml")

jelber2/rGO2TR documentation built on Feb. 22, 2024, 12:50 p.m.