-
Notifications
You must be signed in to change notification settings - Fork 675
Open
Copy link
Labels
Milestone
Description
- Additional function parameters / changed functionality / changed defaults?
At the moment when we are plotting data points in e.g., sc.pl.umap() with color='covariate' we determine the plotting order in two ways:
- if
'covariate'is continuous the highest values are plotted on top, to showcase the peaks of the distribution; - if
'covariate'is a categorical variable, the order ofadata.obs_namesis used (i believe). As we often concatenate datasets after integration or loading from multiple sources, covariates we plot are usually not randomly ordered here.
I think the first case is fine (and it can be turned off), but we should probably not be doing case 2. Instead, it would be good if the default was to plot in a random order unless the covariate is ordered internally (I believe this is already taken into account, but not sure). I have come across this issue several times now, and we're not solving this in a good way imo. Fabian has mentioned this to me several times as well. What do you think @fidelram @ivirshup ?
ivirshup
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo