Hi,

I'm starting out new in bioinformatics. I have couple of questions on searching dbSNP.

1. I'm searching (a list of rs# in [batch mode][1] in browser) dbSNP for SNP coordinates. dbSNP returns the coordinates in hg38 assembly build (I'm requesting a bed file for output format). I'd like to retrieve the coordinates in hg19 version. Is there a way to achieve this? dbSNP FAQ section doesn't mention if this could be done.

2. I would also like to know if it's possible to search genotype information for a given SNP (rs#). I would also like this in batch mode.

Any help is appreciated!

  [1]: http://www.ncbi.nlm.nih.gov/projects/SNP/dbSNP.cgi?list=rslist
One way to do this is via the command line. You could download SNP annotations via `wget`. For example:

    $ wget -qO- ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606_b151_GRCh37p13/VCF/common_all_20180423.vcf.gz | gunzip -c | convert2bed --input=vcf --output=bed --sort-tmpdir=${PWD} - > hg19.snp151.bed

Filter via `grep` for the SNP of interest. For example, to search on a single SNP ID:

    $ grep -F rs554008981 hg19.snp151.bed
    1       13549   13550   rs554008981     .       G       A       .       RS=554008981;RSPOS=13550;dbSNPBuildID=142;SSR=0;SAO=0;VP=0x050000000005000026000100;GENEINFO=DDX11L1:100287102;WGT=1;VC=SNV;ASP;KGPhase3;CAF=0.9966,0.003395,.;COMMON=1;TOPMED=0.99221139143730886,0.00778064475025484,0.00000796381243628

To search on a file of IDs, e.g. a list of SNP IDs in `rsIDs.txt`:

    $ grep -fF rsIDs.txt hg19.snp151.bed > matches.bed