You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] heatmap annotation column order is not respected by iSEE::iSEE() #568
However, shiny will place the selected values in the same order as they appear among the available choices. I tried with a tiny app, defining a selectizeInput as
and the selected values would be shown as BA (in the order provided in choices). Now, I'm not sure what is the best way to get around this (I guess we'd have to reorder all_coldata according to slot(x, .heatMapColData)) - the quickest solution for you might be to reorder the columns in colData(sce)...
Activity
Tried changing the order of the column annotations but it didn't work =(
csoneson commentedon Jul 30, 2021
I think this stems from the way
shinyinitializes theselectizeinputs. I could reproduce it with the following minimal example:(the two heatmaps look the same). The initialization of the column data to display in the heatmaps is done here:
iSEE/R/interface_visual.R
Lines 374 to 380 in 7b20d42
However,
shinywill place the selected values in the same order as they appear among the available choices. I tried with a tiny app, defining aselectizeInputasand the selected values would be shown as
BA(in the order provided inchoices). Now, I'm not sure what is the best way to get around this (I guess we'd have to reorderall_coldataaccording toslot(x, .heatMapColData)) - the quickest solution for you might be to reorder the columns incolData(sce)...Fix apps thanks to @csoneson's suggested solution
lcolladotor commentedon Aug 1, 2021
Thanks Charlotte!
Re-ordering the
colData()fixed things for us. LieberInstitute/10xPilot_snRNAseq-human@a4eda2cBest,
Leo