Displaying 1 result from an estimated 1 matches for "maf_popul".
2024 Nov 15
1
R coding to extract allele frequencies from NCBI for ALL alleles of one SNP?
...("ropensci/rsnps")
library("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
[[alternative HTML version deleted]]