This fixes an issue where spatial plots will break when trying to load a cluster-based annotation that is available for the main scatter plot, but missing for the spatial plot(s). Now, instead of an error, a warning is shown instead telling the user that the requested annotation is not available for the given spatial plot.
This also fixes an unrelated bug where the "Use bucket path" feature was not able to correctly validate/browse metadata files.
BACKGROUND & CHANGES
This fixes an issue where spatial plots will break when trying to load a cluster-based annotation that is available for the main scatter plot, but missing for the spatial plot(s). Now, instead of an error, a warning is shown instead telling the user that the requested annotation is not available for the given spatial plot.
This also fixes an unrelated bug where the "Use bucket path" feature was not able to correctly validate/browse metadata files.
Quick demo:
https://github.com/broadinstitute/single_cell_portal_core/assets/729968/bdaee530-f377-4da6-8e0a-10da579f360c
MANUAL TESTING
The easiest way to test this is with two scatter plots from SCP1756 (you can also add the metadata but it is not strictly necessary):
umap_1month-org1-Slide-seq.txt
is uploaded as spatialumap_1month-org1-Slide-seq.txt
as an extra spatial scatter plotCellType
cluster-based annotation and confirm that it loads correctlyCluster
annotation and confirm that you see the warning that the spatial plot does not have the requested annotation