How to convert ss to rsid (SNPs)
Hi everybody! I have a long list of submitted SNPs (ss) and I would like to convert them to rsid nomenclature. I know I can do this one by one using dbSNP but how can I do this in batch mode? Thanks!!
• 2,028 views
•
link
1 answer
Using EntrezDirect:
$ more id
ss68767636
ss68769665
ss68769692
ss68769749
ss68771111
ss68772343
ss68774024
ss68776006
ss68779227
$ for i in `cat id`; do printf ${i}"\n"; esearch -db snp -query ${i} | esummary | xtract -pattern DocumentSummary -element SNP_ID; printf "\n";done
ss68767636
1381888
1381888
ss68769665
1796935
1796935
1796935
ss68769692
ss68769749
227104
227104
227104
ss68771111
ss68772343
6683621
6683621
6683621
6683621
ss68774024
4658257
4658257
4658257
4658257
ss68776006
ss68779227
• 0 views
•
link
Log in to answer this question.
Have you tried eutills/edirect?
I'm gonna take a look into it, thanks!
Can you provide a couple of examples?
I have a list like this comprising 43.000 ss:
ss68767636
ss68769665
ss68769692
ss68769749
ss68771111
ss68772343
ss68774024
ss68776006
ss68779227
If I search ss68767636 on dbSNP I get -> rs1381888
If you use the method method below be sure to sign up for and use NCBI_API_KEY. Add in a
sleep 2directive since you are processing thousands of queries.It worked! Thanks a lot!!
Please accept GenoMax's answer below.