getEnsemblData: A generic function to get Ensembl data persistently from a...

View source: R/getEnsemblData.R

getEnsemblDataR Documentation

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)

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.

Value

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


kmeRtone documentation built on Sept. 11, 2024, 9:12 p.m.