Learn R Programming

queryup (version 1.0.5)

build_query_url: Accessory function used to build the query url

Description

Accessory function used to build the query url

Usage

build_query_url(
  query = NULL,
  base_url = "https://rest.uniprot.org/uniprotkb/",
  columns = c("accession", "id", "gene_names", "organism_name", "reviewed"),
  format = "json"
)

Value

the query url

Arguments

query

list of keys corresponding to UniProt's query fields. For example : list("gene_exact" = c("Pik3r1", "Pik3r2") , "organism" = c("10090", "9606"), "reviewed" = "yes")

base_url

The base url for the UniProt REST API

columns

names of UniProt data columns to retrieve.

format

format of the response provided by the UniProt API