Imagine I have a DNA sequence (e.g., dummy and short, ATTATGCGGGGAATTT ) and I would like to colour the different nucleotides with different coluours, given that I have a vector indicating the position of the nucleotides to be coloured:
(1,3,6,7,8,10) <- to be coloured in red
(2,4,5,12) <- to be coloured in green
How would you do that (if you don't want to do that manually) ?
I had this idea once for schollboys and the only way I found is to go throught HTML code
Color is manage by the CSS class.
This is hard code but you can develop a function to input a sequence and generate to appropriate
<span class="X">X</span>
for each baseDo you want to use multiple different colour arrays?