Thanks, Emily_Ensembl ! The tutorials were great.
For future reference of myself and others, here is an example of how one would add protein domain annotation and uniprot protein ids to vep results for an input specified in genomic coordinates:
server <- "http://grch37.rest.ensembl.org"
ext <- "/vep/homo_sapiens/region/?domains=1&uniprot=1"
query <- "17 7578407 - G A"
body <- sprintf('{ "variants" : ["%s"] }', query)
r <- httr::POST(paste(server, ext, sep = ""), httr::content_type("application/json"),
httr::accept("application/json"), body = body)
annot <- jsonlite::fromJSON(jsonlite::toJSON(httr::content(r)))
Are you putting this in a script (if so what language), just plugging a URL into a browser or using a REST client? Are you using POST or GET endpoints?
Thank you! I am using this in an R script and using POST endpoint.