Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Option to choose the dot plot order [low to high expression as in Scanpy] #2624

Open
gokceneraslan opened this issue Aug 15, 2023 · 1 comment

Comments

@gokceneraslan
Copy link
Contributor

I was wondering if there is a way to plot dots in the order of expression, similar to sort_order parameter in scanpy sc.pl.umap (https://scanpy.readthedocs.io/en/stable/generated/scanpy.pl.umap.html) in a way that dots with higher values are plotted after those with lower values in the z-axis. Having an option to change the dot plot order from random to sorted would be very useful.

The reasoning of this is that very lowly expressed genes are very difficult to see when dot plotting order is random. In some cases, this might result in overestimation of expression but this is a trade off and I think it should be up to the user to decide. This is why we have this option in Scanpy in the first place.

@gokceneraslan gokceneraslan changed the title [FEATURE REQUEST] Option to choose the dot plot order [low to high as in Scanpy] [FEATURE REQUEST] Option to choose the dot plot order [low to high expression as in Scanpy] Aug 25, 2023
@slinnarsson
Copy link

As I explain in #2629 I think the proper way to plot single-cell data is to first plot the zeros in light grey, then plot non-zeros using a colormap, on top. As long as point overlap is kept to a minimum (often also an issue in cellxgene), this way of plotting accurately reveals both low and no expression.

For example, consider the difference for AQP4 expression in this example of glioblasts when using grey for zeros (left) or just using the colormap (right):

image

When just using a colormap gradient, the true structure of gene expression disappears. Plotting low-to-high will not make any difference to the plot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants