entrez_db_links: List available links for records from a given NCBI database

Description Usage Arguments Value See Also Examples

View source: R/entrez_info.r

Description

For a given database, fetch a list of other databases that contain cross-referenced records. The names of these records can be used as the db argument in entrez_link

Usage

1
entrez_db_links(db, config = NULL)

Arguments

db

character, name of database to search

config

config vector passed to httr::GET

Value

An eInfoLink object (sub-classed from list) summarizing linked-databases. Can be coerced to a data-frame with as.data.frame. Printing the object the name of each element (which is the correct name for entrez_link, and can be used to get (a little) more information about each linked database (see example below).

See Also

entrez_link

Other einfo: entrez_db_searchable(), entrez_db_summary(), entrez_dbs(), entrez_info()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
taxid <- entrez_search(db="taxonomy", term="Osmeriformes")$ids
tax_links <- entrez_db_links("taxonomy")
tax_links
entrez_link(dbfrom="taxonomy", db="pmc", id=taxid)

sra_links <- entrez_db_links("sra")
as.data.frame(sra_links)

## End(Not run)

rentrez documentation built on Nov. 11, 2020, 1:07 a.m.