morpheus.js icon indicating copy to clipboard operation
morpheus.js copied to clipboard

Not stable sorting by columns

Open curlup opened this issue 5 years ago • 3 comments

Say I want to sort columns by two categories. Usual way to do that in a grid is to sort by one, then sort by the second one. If the sort is stable, this will result in columns sorted by the second category, but within cols with the same second category, they should remain sorted by the first category.

Seem that it's not the case for morpheus, which limits ad-hoc analysis that can be performed.

Steps to reproduce:

  • taken https://software.broadinstitute.org/morpheus/
  • select "Preloaded Datasets"
  • select "Acute Myeloid Leukemia (LAML)"
  • "GENE Expression" -> "Open"
  • in the zoom menu "Fit Columns To Window"
  • click "mRNAseq_cluster" column category to sort by.
  • now click "gender" to sort by.

Expected: two groups by gender (it is) and within each of them sorted by "mRNAseq_cluster" (same order if mRNAseq_cluster in both gender groups). Observed: mRNAseq_cluster order is scrambled.

curlup avatar Nov 18 '20 21:11 curlup

Screen Shot 2020-11-18 at 4 05 34 PM

curlup avatar Nov 18 '20 21:11 curlup

It looks like you're only sorting by gender in your screenshot. Please shift-click to add an additional sort field. You should then see an arrow when a 2 superscript next to the secondary sort field.

joshua-gould avatar Nov 19 '20 18:11 joshua-gould

That works, thanks!!

Shift-clink'ing was not obvious I guess. I would suggest considering assigning that behavior to regular clicking. But anyways thanks again!

curlup avatar Nov 22 '20 19:11 curlup