Skip to contents

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
#> Response [https://rest.ensembl.org/vep/homo_sapiens/region]
#>   Date: 2026-07-20 09:26
#>   Status: 200
#>   Content-Type: application/json
#>   Size: 1.4 kB
#> 
res = jsonlite::fromJSON(jsonlite::toJSON(httr::content(chk)))
dim(chk)
#> NULL