I have a list of SNPs and their exact locations :

    SNP_nr Chromosome Location
         1          1 11088169

How can I get their associated *rsid* programmatically or otherwise?

<p>many answers on biostars , search for UCSC/mysql/api.</p>

<p>eg: </p>

<p><a href="/p/3661/">Is there such a thing as a UCSC API?</a></p>

<p>direct acces to mysql: (slow, because it doesn't use the 'bin' index)</p>

<pre><code>$ mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -Dhg19  -e "select name from snp137 where chrom='chr1' and chromStart=10144"
+-------------+
| name        |
+-------------+
| rs144773400 |
+-------------+
</code></pre>
