esearch: Entrez database search

Description Usage Arguments Details Value Author(s) References Examples

Description

Search Entrez databases at NCBI

Usage

1
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

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.

Value

Either an EntrezHistory data.frame listing the database, query_key and WebEnv (default), a vector of 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.

Author(s)

Chris Stubben

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.