I’m using a software https://github.com/Karimi-Lab/inucs/blob/master/inucs.py that generates interaction matrices for studying nucleosome interactions.
However, I would like to improve it based on some color scheme that I came across in literature (which uses some other software to generate the matrix).
How do I go about modifying the code to obtain what I want using the tool I’m using? I believe the code for plotting starts from line # 1945 and I see that it imports certain colours from bokeh.palettes library.
I was primarily experimenting to see if I could even make it work without breaking the program, so I modified the code to change colors:
palettes = dict(all=r(Oranges), tandem=['Yellow'], right=r(Reds), left=r(Blues), inner=['Cyan'], outer=['Magenta'])
But all I got was a matrix without any gradient.
So my question here is if there is a way to implement the colour scheme that I want such that overlapping the colours merges them and gives a resulting chromatic colour?
Thanks.
Disclaimer: I’m a wet-lab biologist, so not really familiar with the inner workings of the software nor Python/Bokeh.




