dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Adding browser opts to specify ACGT/indel colors. #141

Closed dlrice closed 9 years ago

dlrice commented 9 years ago

This pull request allows users to specify as a Browser option the colors to represent nucleotide bases as well as deletions and insertions. For example,

var b = new Browser({
    ...
    baseColors: {
                    A: 'green', 
                    C: 'blue', 
                    G: 'orange', 
                    T: 'red',
                    '-' : 'black', // deletion
                    'I' : 'mediumpurple' // insertion
                },
    ...
});