queryEnsembl {psichomics} | R Documentation

## Query the Ensembl REST API

### Description

Query the Ensembl REST API

### Usage

    queryEnsembl(path, query, grch37 = TRUE)

### Arguments

`path` | Character: API path
`query` | Character: API query
`grch37` | Boolean: query the Ensembl GRCh37 API? TRUE by default; otherwise, query the most recent API

### Value

Parsed response or NULL if there's no response

### Examples

    path  <- "overlap/region/human/7:140424943-140624564"
    query <- list(feature = "gene")
    psichomics:::queryEnsembl(path, query, grch37 = TRUE)

    path  <- "lookup/symbol/human/BRCA2"
    query <- list(expand=1)
    psichomics:::queryEnsembl(path, query, grch37 = TRUE)

[Package psichomics version 1.8.2 Index]