<p>I have chromosome start and end coordinates for a given chromosome. I need to translate these to locus - something like this <br><br>
"11q1.4-q2.1", meaning it is on the long arm of chromosome 11, somewhere in the range from sub-band 4 of band 1, and sub-band 1 of band 2.<br>from wikipedia <a href='http://en.wikipedia.org/wiki/Locus_%28genetics%29'>http://en.wikipedia.org/wiki/Locus_%28genetics%29</a></p>

You can download the coordinates of the cytobands from the UCSC [here](http://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/cytoBand.txt.gz).

```
curl -s "http://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/cytoBand.txt.gz" | gunzip  -c 
chr1    0       2300000 p36.33  gneg
chr1    2300000 5300000 p36.32  gpos25
chr1    5300000 7100000 p36.31  gneg
chr1    7100000 9200000 p36.23  gpos25
chr1    9200000 12600000        p36.22  gneg
chr1    12600000        16100000        p36.21  gpos50
chr1    16100000        20300000        p36.13  gneg
chr1    20300000        23800000        p36.12  gpos25
chr1    23800000        27800000        p36.11  gneg
chr1    27800000        30000000        p35.3   gpos25
(...)
```