Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color of interaction matrix #39

Open
stanleyrc opened this issue Oct 31, 2022 · 2 comments
Open

Color of interaction matrix #39

stanleyrc opened this issue Oct 31, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@stanleyrc
Copy link

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
Copy link
Owner

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

@XiaoTaoWang XiaoTaoWang added the good first issue Good for newcomers label Nov 1, 2022
@stanleyrc
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants