Closed srivarra closed 12 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@ngreenwald
Cell Clustering Sample Image:
Neighborhood Analysis Sample Image:
I added a function which converts a numpy array to a discrete colormap. Is there any place in the notebooks for it, or is it better to leave it out of the notebooks?
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Refactors a portion of
plot_pixel_cell_cluster_overlay
andplot_neighborhood_cluster_result
.How did you implement your changes
Extracts the plotting functionality into a new function
plot_cluster
which takes a cluster mask, or any image, and colors the pixels based on a user provided colormap and normalization object. Cluster labels + colorbar can be removed from the plot as well.Added tests for
plot_neighborhood_cluster_result
. Added a function which takes a numpy array representation of colors (rgb and rgba) and generates a discrete colormap from the colors provided.Changed the readthedocs python version to 3.11 to support type hints introduced in 3.9.
Remaining issues
N/A