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

X11 dependency for raster images #86

Open
ergonyc opened this issue Oct 14, 2021 · 2 comments
Open

X11 dependency for raster images #86

ergonyc opened this issue Oct 14, 2021 · 2 comments

Comments

@ergonyc
Copy link
Member

ergonyc commented Oct 14, 2021

In order to make the visualizaitons more performant we needed to use rasterization.

On Mac OS X if you use RStudio or R from the terminal, you must have a copy of XQuartz, the X11 window manager, installed. This is no longer a default install since Mac OS X 10.8. You need to install XQuartz, before installing the omicser package (dependency via ComplexHeatmaps and magick). Logout and login for the installation to take effect. You can get it from https://www.xquartz.org/. This page is also linked from the Download R for (Mac) OS X page.

@ergonyc
Copy link
Member Author

ergonyc commented Oct 15, 2021

from
[ComplexHeatmap-book](https://jokergoo.github.io/ComplexHeatmap-reference/book/a-single-heatmap.html#heatmap-as-raster-image

Rasterization is a way to covnert the vector graphics into a matrix of colors. In this case, an image is represented as a matrix of RGB values, which is called a raster image. If the heatmap is larger than the size of the screen or the pixels that current graphics devices can support, we can convert the heatmap and reduce it, by saving it in a form of a color matrix with the same dimension as the device.

@ergonyc
Copy link
Member Author

ergonyc commented Dec 13, 2021

Need to change the code in fct_expression.R to test if X11 is available, and if it is use rasterization. else NOT.

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

No branches or pull requests

1 participant