This is a test version of Biostars. For the public version, visit https://www.biostars.org.
question about API for SNPs

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

2 answers

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.

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

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.

thanks for this info on Ensemble Restful apis

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.

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

Log in to answer this question.