This fixes a bug introduced in #2070 where color assignments becomes skewed when switching back and forth between clustering plots in a non-spatial context. Additionally, colors did not map correctly in a single- or multi-gene view. Now, color assignments always reset between plots and are consistent across all gene-based views.
Note: this does not fix and existing bug with correlation scatter plots where color assignments are not consistent.
MANUAL TESTING
Boot as normal and load the Human milk - differential expression example study
Search for CLDN4
Confirm that LC1 and LC2 are pink & grey respectively and match in the scatter & violin tabs
Switch to the Epithelial cells UMAP and confirm LC1 and LC2 are now red & blue in both tabs
(Optional) re-check the steps from #2070 and confirm that spatial plot color assignments are still correct
BACKGROUND & CHANGES
This fixes a bug introduced in #2070 where color assignments becomes skewed when switching back and forth between clustering plots in a non-spatial context. Additionally, colors did not map correctly in a single- or multi-gene view. Now, color assignments always reset between plots and are consistent across all gene-based views.
Note: this does not fix and existing bug with correlation scatter plots where color assignments are not consistent.
MANUAL TESTING
Human milk - differential expression
example studyCLDN4
LC1
andLC2
are pink & grey respectively and match in the scatter & violin tabsEpithelial cells UMAP
and confirmLC1
andLC2
are now red & blue in both tabs