elink: elink

Description Usage Arguments Details Value Class hierarchy for elink Generics with methods for elink Slots Examples

Description

“elink” is an S4 class that provides a container for data retrived by calls to the NCBI ELink utility.

elink generates a list of UIDs in a specified Entrez database that are linked to a set of input UIDs in either the same or another database. For instance, the ELink utility can find Entrez gene records linked to records in Entrez Protein.

Usage

1
2
3
4
5
6
  elink(id, dbFrom = NULL, dbTo = NULL, linkname = NULL,
    usehistory = FALSE, cmd = "neighbor",
    correspondence = FALSE, query_key = NULL,
    WebEnv = NULL, term = NULL, holding = NULL,
    datetype = NULL, reldate = NULL, mindate = NULL,
    maxdate = NULL)

Arguments

id

(Required) A character vector of UIDs.

dbFrom

Initial database containing the UIDs in the input list.

dbTo

Destination database from which to retrieve linked UIDs. If not provided links will be sought in the database containing the input UIDs.

linkname

Name of the Entrez link to retrieve. Every link in Entrez is given a name of the form 'dbFrom_dbTo_subset'.

usehistory

If TRUE search results are stored directly in the user's Web environment so that they can be used in subsequents calls to esummary or efetch.

cmd

ELink command mode (default: 'neighbor'). See Details.

correspondence

if TRUE correspondence between query UIDs and destination UIDs is preserved.

query_key

Query key.

WebEnv

Web Environment.

term

Search query to limit the output set of linked UIDs.

holding

Name of LinkOut provider.

datetype

Type of date to limit the search. One of 'mdat' (modification date), 'pdat' (publication date) or 'edat' (Entrez date).

reldate

umber of days back for which search items are returned.

mindate

Minimum date of search range. Format YYYY/MM/DD.

maxdate

Maximum date of search range. Format YYYY/MM/DD.

Details

See the official online documentation for NCBI's EUtilities for additional information.

If dbTo and dbFrom are set to the same database, ELink will return neighbors within that database.

Elink commands (cmd) specify the function that elink will perform. Available commands are:

Value

An elink instance.

Class hierarchy for elink

Super classes:

Generics with methods for elink

Slots

url

A character vector containing the query URL.

error

Any error or warning messages parsed from the output of the call submitted to Entrez.

content

A character vector holding the unparsed contents of a request to Entrez.

idList

An object of class idList

databaseTo

An object of class character

command

An object of class character

queryKey

An object of class integer

webEnv

An object of class character

linkSet

A list containing the linked data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Find related data through ELink #########################################

# Example: find a set of pubmed IDs linked to nucleotide GIs
gis <- c("84785887","84785899","84785907","84785905","84785889")
rv <- elink(gis, "nucleotide", "pubmed")
rv

# Fetch the XML records for the linked articles
efetch(rv)

# Example: Check whether two nucleotide sequences have any LinkOut providers.
gis <- c("84785887","84785899")
rv <- elink(gis, "nucleotide", cmd="lcheck")
rv

# Example: Find publication linked to a protein sequence
a <- esearch("Chlamydia and cpaf", "protein")
a
l <- elink(a[1], dbTo="pubmed")
l
efetch(l)

gschofl/rentrez documentation built on May 17, 2019, 8:53 a.m.