Allele frequencies for ALL alleles of one SNP ?
2
0
Entering edit mode
Abiologist • 0
@2b534cfa
Last seen 14 hours ago
Poland

The following code (which is not from Bioconductor) produces very nice output for ONE allele of a SNP (often the allele with the second largest frequency - usually termed the minor allele). It gives an average minor allele frequency from all NCBI sources (which is what I want, with the addition of data for all alleles of a SNP) plus a table of minor allele frequencies from each source (which would also be nice - but not necessary). Does there exist coding in Bioconductor which could extract the data from NCBI for all the alleles of a SNP ? Many thanks.

remotes::install_github("ropensci/rsnps")

# Define the SNP ID
snp_id <- "rs11134679" ## this SNP has alleles A, C, G and T, but results are only for A

# Query the dbSNP database
result <- rsnps::ncbi_snp_query(snp_id)

result2 <- as.data.frame(result)
result2
result2$maf_population
Bioconductor • 272 views
ADD COMMENT
1
Entering edit mode
Robert Castelo ★ 3.4k
@rcastelo
Last seen 1 day ago
Barcelona/Universitat Pompeu Fabra

Hi, the GenomicScores package provides supporting infrastructure to create annotation resources storing MAF data. You may consult the current available ones in the subsection entitled "Retrieval of minor allele frequency data" from its vignette, which also includes an example using MAF values from gnomAD 4.0. If you have a specific request for a MAF source of data that is not currently available in Bioconductor, please open an issue in the GitHub repo of GenomicScores.

robert.

ADD COMMENT
0
Entering edit mode

many thanks - yes I probably would want the new "dbGaP_PopFreq" source.

ADD REPLY
0
Entering edit mode
Abiologist • 0
@2b534cfa
Last seen 14 hours ago
Poland

I've discovered that rsnps::ncbi_snp_query(snp_id) does actually give this information - at the bottom of the result$maf_population table. I presume there is not an equivalent in Bioconductor (?)

ADD COMMENT

Login before adding your answer.

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