I have some dbSNP ids and I'm trying to locate the reference and the alternate allele . I used the SNPlocs.Hsapiens.dbSNP144.GRCh37
package. But it gave me a message to try the snpcount
package.
I've looked at the snpcount
package, but unable to find an appropriate example for what I'm looking for. Can anyone help please.
Alternatively, I also have the chromosome number and position. And would like to find the reference and alternate allele for those positions. Can anyone suggest a solution ?
Example code below:
snps <- SNPlocs.Hsapiens.dbSNP144.GRCh37
my_rsids <- c("rs2639606", "rs75264089")
my_snps <- snpsById(snps, my_rsids, ifnotfound="drop")
my_snpsDF <- as.data.frame(my_snps)
alleleInfo <- rsid2alleles(my_rsids, caching=TRUE)
#Error: SNPlocs.Hsapiens.dbSNP144.GRCh37::rsid2alleles() is defunct.
#Please use the SNPlocs API instead. See '?snpcount' for more
#information.