cytoband view
Abstract
"cytoband view" is a viewer for the Human chromosome cytoband (Human Genome, UCSC hg.19). When you point to a band, the band name (like, Chr.8q12.1) will be shown. Colors of bands change to make a good show.
https://github.com/casmi/cytoband-view
Git Repository
https://github.com/casmi/cytoband-view.git
Inside of Program
Code
- It automatically downloads cytoBand.txt.gz from the UCSC Human annotation site and stores to a local machine cache (CytobandLoader.java).
- The data is read and is stored to objects (Cytoband.java).
- After that, the data is set to the appropriate position according to the bands using base pairs (CytobandView.java).
- To draw the data, it uses the Rect class for each band (CytobandView.java).
- It also uses the mouseOverCallBack for testing mouse hits to objects. When the mouse is on the objects, it writes messages to the band name and draw strokes to the band (CytobandView.java).