Learn R Programming

kmeRtone (version 1.0)

getEnsemblData: A generic function to get Ensembl data persistently from a URL. This is an internal function used by other getEnsemblXXX functions.

Description

Error is handled based on their rule as set out at https://github.com/Ensembl/ensembl-rest/wiki/HTTP-Response-Codes

Usage

getEnsemblData(url, handle, max.attempt = 5)

Value

Parsed JSON data, which could be in the form of a data.frame or a list of lists, depending on the API response.

Arguments

url

Pre-built Ensembl REST API URL.

handle

curl handle object configured for the Ensembl REST API.

max.attempt

Maximum number of attempts to fetch the data, default is 5.