We are trying to search for variants in dbSNP but running into difficulties where dbSNP uses a human genome build other than hg19. We have a large number of variants we are examining, and this process needs to be fully automated. We have the chromosome, hg19 base position, and allele. Is there a way to determine the genome build used in dbSNP from results, we are using the entrez eutils docsum.
For example, searching '1[Chromosome] AND 69511[Base Position] AND snp[SNP_CLASS]' gives us this docsum for rs75062661.
However, searching '1[Chromosome] AND 906272[Base Position] AND snp[SNP_CLASS]' doesn't give us rs28507236, but using the GRCH38 position '1[Chromosome] AND 970893[Base Position] AND snp[SNP_CLASS]' does
The CHRPOS field in the first link is related to the GRCh37 genome build, while the CHRPOS field in the second link is related to GRCh38. Is there a way to tell which genome build that field is referring to? We need to search by genomic coordinate, however, right now the only way we can think of to search dbSNP by genomic coordinate it to lift over the coordinates to GRCh38 from GRCH37 and try them both. Even then, we wouldn't know for sure which genome build the resulting SNP is part of. Is there a way to search by build in dbSNP? Or even just to determine which genome build the CHRPOS field is referring to in the dbSNP results?