question about API for SNPs
2
0
Entering edit mode
7.9 years ago
ahm3dhany ▴ 20

Is there any API that i can send to it the rsID (e.g. rs4988235) and the API respond with the position (i.e. chromosome number and position of the nucleotide) and the effect related to this rsID (e.g. for Rs4988235, CC: likely to be lactose intolerant as an adult. CT: likely to be able to digest milk as an adult. TT: can digest milk.)

SNP API Genotype phenotype • 3.2k views
ADD COMMENT
2
Entering edit mode
7.9 years ago
Denise CS ★ 5.2k

Yes, there is the Ensembl REST APIs. Two endpoints I could think of to get the data you are after are GET variation/:species/:ID (mainly) and the GET vep/:species/id/:id, which gives the added value of the annotation of your variant by the VEP. Check a previous biostars post.

ADD COMMENT
1
Entering edit mode

the main problem is there is no phenotype (e.g. for Rs4988235, CC: likely to be lactose intolerant as an adult. CT: likely to be able to digest milk as an adult. TT: can digest milk.)

I want an API that give me something like this: (the screenshot is from SNPedia) enter image description here

ADD REPLY
1
Entering edit mode

If you know PERL, you can use the Variation API and get the phenotype annotations. If you know R, biomaRt would be a good way to get the phenotype info as well.

ADD REPLY
0
Entering edit mode

thanks for this info on Ensemble Restful apis

ADD REPLY
0
Entering edit mode
7.9 years ago

The dbSNP database can be queried for location and chromosome by RS#. You can download the dbSNP annotation and run queries on it, or maybe find an online resource.

For phenotype, it's much harder to be certain. The ClinVar database is another you can download that has a lot of those annotations, but most SNPs will not have known function.

ADD COMMENT
0
Entering edit mode

the main problem is there is no phenotype (e.g. for Rs4988235, CC: likely to be lactose intolerant as an adult. CT: likely to be able to digest milk as an adult. TT: can digest milk.)

I want an API that give me something like this: (the screenshot is from SNPedia) enter image description here

ADD REPLY

Login before adding your answer.

Traffic: 1528 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