cellxgene
cellxgene copied to clipboard
genes can show up twice in RSB, and selection gets confusing when this happens
if you do diffexp, it adds genes to the rsb. If you also manually add a gene that is in the diffexp result, it will now display twice in the rsb. You can brush select both of these, and they will show different range selections. But only the most recent one is applied to the crossfilter.
This fundamentally has to do with the fact that we create two separate brushable histograms, but only one underlying crossfilter selection dimension.
Very confusing. We probably need to figure out what selection UI we want here, as part of gene sets. To my brain, it would make more sense if the selection on any given gene was consistent, no matter how many times it was rendering on the screen. Alternatively, we could allow multiple range/gate selections on a single gene.
Brainstormed with @colinmegill and came up with a simple fix: remove the selection from the older histogram.
Example of expected behavior: Actions:
- User adds GRP
- User brushes on GRP from 4-6
- User adds GRP again
- User brushes on new GRP from 9-11
Results in:
- No brushed selection is shown for the first GRP (just a plain histogram)
- Second GRP shows 9-11 as selected