Learn R Programming

genomes (version 2.16.0)

esearch: Entrez database search

Description

Search Entrez databases at NCBI

Usage

esearch(term, db = "pubmed", usehistory = "y", parse = TRUE, verbose=TRUE, showURL=FALSE, ...)

Arguments

term
Any valid combination of Entrez search terms or a vector of accessions
db
An Entrez database, default pubmed
usehistory
Save results to History server for subsequent calls
parse
If false, the XML output is returned
verbose
Print number of results found
showURL
Print url string
...
Other key-value pairs passed to esearch url string

Value

Ids if usehistory="n", or the raw XML output if parse=FALSE. The default EntrezHistory object may be passed directly to the other E-utilities.

Details

See einfo() for a list of valid Entrez database names and search fields. If usehistory="n", the default number of ids returned is 20 (set a retmax option to increase the default limit). If a vector of accessions are input, the terms are pasted together in a comma-separated list for searching by Primary Acession.

References

http://www.ncbi.nlm.nih.gov/books/NBK25499

Examples

Run this code
## Not run: 
# # EntrezHistory object
# esearch("bioconductor[TITLE]", showURL=TRUE)
# # taxonomy IDs
# esearch("mouse", db="taxonomy", usehistory="n")
# esearch("AE017223 OR ACBJ00000000", db="nuccore")
# # comma-separated (or vector) to search Primary accessions
# esummary( esearch("AE017223,ACBJ00000000", db="nuccore"))
# ## End(Not run)

Run the code above in your browser using DataLab