Entering edit mode
@kamalesh2727kamalesh-21048
Last seen 5.3 years ago
I have been tryinng to download all snp ids for all genes present in NCBI for that i have used this code
library(biomaRt)
ensembl = useEnsembl(biomart="ensembl","snp", dataset="hsapiensgeneensembl","hsapiens_snp")
snps <- getBM(attributes=c('refsnpid','refsnpsource','hgncsymbol','chromosomename','startposition,'endposition'), filters = 'chromosome_name',values ="Y",mart = ensembl)
What happens when you try that code? Is there an error message? Does it work, but not give the expected results? You need to give a few more details here.