Genome Nexus : API access through R
0
0
Entering edit mode
4.1 years ago

Hi,

I'm trying to access Genome Nexus API to annotate some variants.

I'm using the example on their github :

https://github.com/genome-nexus/genome-nexus/blob/master/notebooks/genome_nexus_r_example.ipynb

For instance I want to check variant 7:g.55249071C>T (hg19)

On Genome Nexus website everything's ok : https://www.genomenexus.org/variant/7:g.55249071C%3ET

In R :

library(rapiclient)
client <- get_api(url = "https://www.genomenexus.org/v2/api-docs")

operations <- get_operations(client)
res <- operations$fetchVariantAnnotationGET(variant="7:g.55249071C>T")

res
Response [http://www.genomenexus.org/annotation/7:g.55249071C>T]
  Date: 2020-03-06 13:24
  Status: 400
  Content-Type: text/html;charset=utf-8
  Size: 800 B

content(res)
{html_document}
<html lang="en">
[1] <head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\nHTTP Status 400 – Bad Request\n<style type="text/css">h1 {font-family:Tahoma,Arial,sans ...
[2] <body>

HTTP Status 400 – Bad Request

</body>

Did I miss something here ?

Thanks

Genome Nexus API R • 808 views
ADD COMMENT

Login before adding your answer.

Traffic: 2078 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6