Skip to content

Conversation

@SudeepMangam
Copy link

Description:
The goal of this is to implement automatic heatmap scaling through the datashader app. This allows better visualization of the data. Before, the data could be compressed tightly, with limited readability. Now, with automatic scaling and pin color additions, this issue should be resolved.

Requirements:
OS: Ubuntu via WSL on Windows 11
Python Version: 3.9.13 (Miniconda)
Conda Environment: spacy_viz_py3913_wsl
Dataset Used: Custom .h5ad file

Solution:
The integration is as follows. A button would display the heatmap using the datashader library. In order to implement this, a utility function renders the heatmap using the library. The utility function creates a high-resolution heatmap using Datashader, visualizing point density or average color values. For the server logic, I created a mode for the heatmap with the datashader library and color enabler for pin colors. The color enabler toggle dynamically adds or removes a dropdown menu for selecting a feature to color scatterplots or heatmaps. When active, it basically extracts and passes color values from AnnData to either Datashader or spac.visualization for enhanced visual rendering. If the color toggle is off but the heatmap toggle is on, it removes the UI color out. The addition of colorcet and datashader library is included a specific commit-based package as a dependency in environment.yml.

@SudeepMangam
Copy link
Author

Hi all,
I’d really appreciate it if you could take a look at this PR when you have a moment. I’m keen to hear your thoughts and make any necessary changes.

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

Successfully merging this pull request may close these issues.

1 participant