get allele frequency (MAF) value from snp
0
0
Entering edit mode
11 months ago
Barista ▴ 10

Hi all! :)

I have a list of snp ids, to which I need their correspodning MAF (minor allele frequency) values.

I tried to do it in R using biomaRt but it seems that it is not possible- correct me if I am wrong.

The only way I managed to do it is in Python using the API from ensembl, but since the list is over half a milion of snps, it takes so much time and I always get connection errors or something, so I cannot make this finish even once :(

Please help me and give me some tips, I will highly appreciate that, because it is my first time working on such a task.

biomaRt MAF ensembl SNP R • 1.3k views
ADD COMMENT
0
Entering edit mode

download a VCF containing the frequencies (dbsnp, etc....) and use bcftools to get the data in a set of regions

ADD REPLY
0
Entering edit mode

In addition to Pierre's answer, the Ensembl Variant Effect Predictor (VEP) might be useful here as you can retrieve allele frequencies (as well a slots of other data) for a custom list of variants:

https://www.ensembl.org/info/docs/tools/vep/index.html

ADD REPLY
0
Entering edit mode

Where can I find such a VCF file? I am currently trying to use dbsnp API in Python but with no success so far.

ADD REPLY
0
Entering edit mode

gnomad see the download section : https://gnomad.broadinstitute.org/downloads

ADD REPLY
0
Entering edit mode

Does it really take so long to download one file? I got ..teen hours for one chromosome file (and I want several). Am I doing something wrong, is there a faster way? Highly appreciate your help in advance!

ADD REPLY

Login before adding your answer.

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