XiaoTaoWang / NeoLoopFinder

A computation framework for genome-wide detection of enhancer-hijacking events from chromatin interaction data in re-arranged genomes
Other
53 stars 16 forks source link

Color of interaction matrix #39

Open stanleyrc opened 1 year ago

stanleyrc commented 1 year ago

Hello, I have been unable to figure out how to change the color ramping for the interaction matrix. Is there a way to modify the python code you have provided to create different ramping colors. In addition, is there an easy way to change the chromosome bar colors and to change the font to arial. Thanks for your help, I have enjoyed using the tool!

XiaoTaoWang commented 1 year ago

Hi, the color scheme of the heatmap can be changed through the parameter "colormap" of matrix_plot. For example, vis.matrix_plot(colormap='YIOrBr') will plot your matrix in a similar color scheme as used by higlass, where the color changes from yellow to brown. Other options can be found at https://matplotlib.org/stable/tutorials/colors/colormaps.html.

And the chromosome bar colors can be changes through the parameter "color_by_order" of plot_chromosome_bar, which is expected to be a list of colors (probably hex color codes), with each element indicating the color of your chromosome bars in sequential.

Currently, NeoLoopFinder does not have a way to directly change the font. Will add an interface in the next version.

Best, Xiaotao

stanleyrc commented 1 year ago

Thank you so much for this! The other visualization problem that I have run into is that sometimes genes stack together even when they are right next to each other and at other times they print out so I can see and read them all. Is there a way to force genes to not go on top of one another. Thank you!

Best, Stanley

Screen Shot 2022-11-04 at 12 18 32 PM