If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Addresses a few incorrect and missing features in the mass plotting notebook.
[x] Adds dpi and fig_size to both cohort_cluster_plot and color_segmentation_by_stat
[x] Fixes incorrect sorting of colors when the colormap file is provided in cohort_cluster_plot
[x] Adds interpolation "none" to color_segmentation_by_stat to prevent interpolation of the cell borders
[x] Incorrect colors are properly reported back to the user
[x] Adds an option to save the plot as any other format accepted by matplotlib
How did you implement your changes
Added those small changes. The reason the colors were not mapping to the cluster appropriately was because the NumPy Array conversion to the colormaps didn't take into account that the colors need to be sorted w.r.t their associated cluster id.
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Addresses a few incorrect and missing features in the mass plotting notebook.
dpi
andfig_size
to bothcohort_cluster_plot
andcolor_segmentation_by_stat
cohort_cluster_plot
"none"
tocolor_segmentation_by_stat
to prevent interpolation of the cell bordersmatplotlib
How did you implement your changes
Added those small changes. The reason the colors were not mapping to the cluster appropriately was because the NumPy Array conversion to the colormaps didn't take into account that the colors need to be sorted w.r.t their associated cluster id.
Remaining issues
N/A.