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? if `FALSE`, query the most recent API

### Value

Parsed response or `NULL` if 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.18.6 Index]