GetAPIlink: GetAPIlink Return E-utility links with parameters

Description Usage Arguments Value Examples

View source: R/basics.R

Description

GetAPIlink Return E-utility links with parameters

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
GetAPIlink(
  baseUrl = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/",
  endpoint = "esearch",
  db = "pubmed",
  id = "",
  apiKey = "2ab938c0c3cfbfe6446b544c8e37c5a4e609",
  email = "shihikoo@gmail.com",
  retmode = "XML",
  term = "",
  reldate = "",
  datetype = "",
  retmax = 1000,
  usehistory = "y",
  retstart = "",
  tool = "pubmedTools",
  WebEnv = "",
  cmd = "",
  queryKey = ""
)

Arguments

baseUrl

a string of characters, default is "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"

endpoint

a string of characters, valid endpoint of NCBI Utilities, e.g. "eserach", "efetch","elink", "esummary"

db

a string of characters. Target database about which to gather statistics. Values must match https://www.ncbi.nlm.nih.gov/books/n/helpeutils/chapter2/#chapter2.chapter2_table1

id

a list of strings. UID list. Either a single UID or a UID list

apiKey

a string of characters. API Key of the user. NCBI will begin enforcing the practice of using an API key for sites that post more than 3 requests per second.

email

a string of characters. E-mail address of the E-utility user.

retmode

a string of characters. Retrieval type. Default is "XML"

term

a string of characters. Entrez text query.

reldate

a string of characters, When reldate is set to an integer n, the search returns only those items that have a date specified by datetype within the last n days.

datetype

a string of characters. Type of date used to limit a search. The allowed values vary between Entrez databases, but common values are 'mdat' (modification date), 'pdat' (publication date) and 'edat' (Entrez date).

retmax

a string of characters. Total number of UIDs from the retrieved set to be shown in the XML output (default=20). By default, ESearch only includes the first 20 UIDs retrieved in the XML output.

usehistory

a string of characters. When usehistory is set to 'y', ESearch will post the UIDs resulting from the search operation onto the History server so that they can be used directly in a subsequent E-utility call. Also, usehistory must be set to 'y' for ESearch to interpret query key values included in term or to accept a WebEnv as input.

retstart

a string of characters.Sequential index of the first UID in the retrieved set to be shown in the XML output. This parameter can be used in conjunction with retmax to download an arbitrary subset of UIDs retrieved from a search.

tool

a string of characters. Name of application making the E-utility call.

WebEnv

a string of characters. Web environment string returned from a previous ESearch, EPost or ELink call. When provided, ESearch will post the results of the search operation to this pre-existing

cmd

a string of characters. ELink command mode. The command mode specified which function ELink will perform. Some optional parameters only function for certain values of &cmd

queryKey

a string of characters. an integer label called a query key

Value

link

Examples

1
2
3
4
GetAPIlink(endpoint = "elink",id="12", cmd = "llinks")
GetAPIlink(endpoint = "esearch",term="stroke", retmax=5)
GetAPIlink(endpoint = "esummary",id="5575286")
GetAPIlink(endpoint = "efetch",id="5575286")

shihikoo/pubmedTools documentation built on June 19, 2021, 9:56 a.m.