How to get minor allele frequencies from Exac?
1
1
Entering edit mode
6.3 years ago
kynnjo ▴ 70

I have ~70k dbSNP ids I need to get Exac minor allele counts and minor allele frequencies for.

Supposedly Exac provides this information for variants, but I can't find it, either in the JSON results obtainable through http://exac.hms.harvard.edu/rest or through Exac's web interface.

(BTW, the information needs to be from Exac, to be procedurally consistent with other annotations I'm working with.)

exac variants allele maf api • 2.3k views
ADD COMMENT
2
Entering edit mode
6.3 years ago

Hello,

you can use the dbsnp endpoint from Exac's REST-API, or the variation endpoint from ensembl's REST-API. In both cases you have to parse the json for the allele frequencys to find out which allele is the minor one and what it's value.

fin swimmer

ADD COMMENT
0
Entering edit mode

@finswimmer, thank you for your answer.

I was aware of the dbsnp endpoint from Exac's REST-API, but ruled it out as an option since it can handle only one dbSNP per query at a time. For my immediate task, I have ~70k such ids, and in the future I expect to deal with even larger numbers of them. I estimated (perhaps incorrectly) that a solution involving ~70k HTTP requests would be both slow on my end, and perhaps be not appreciated by the administrators server-side.

The second API you mentioned I had not considered at all, but it too can handle only one dbSNP per query.

I will investigate further to see if I can get this approach to work in a reasonable time.

ADD REPLY
1
Entering edit mode

Hello,

there is also an endpoint which can handle multiple variant ids.

fin swimmer

ADD REPLY
0
Entering edit mode

@finswimmer: Thank you! That's extremely useful information. I'll try it out right now.

ADD REPLY

Login before adding your answer.

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