post_Hs_region: elementary vep/homo_sapiens/region call to ensembl VEP REST...

View source: R/use_vep_api.R

post_Hs_regionR Documentation

elementary vep/homo_sapiens/region call to ensembl VEP REST API

Description

elementary vep/homo_sapiens/region call to ensembl VEP REST API

Usage

post_Hs_region(chr, pos, id, ref, alt)

Arguments

chr

character(1) ensembl chromosome identifier (e.g., "7")

pos

numeric(1) 1-based chromosome position

id

character(1) arbitrary identifier

ref

character(1) reference allele

alt

character(1) alternative allele

Value

Instance of 'response' defined in httr package.

Note

This function prepares a POST to rest.ensembl.org/vep/homo_sapiens/region endpoint.

Examples

chk = post_Hs_region("7", 155800001, "chk", "A", "T")
chk
res = jsonlite::fromJSON(jsonlite::toJSON(httr::content(chk)))
dim(chk)

Bioconductor/VariantAnnotation documentation built on March 28, 2024, 10 a.m.