-
Notifications
You must be signed in to change notification settings - Fork 8
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
Why does the highest expression plotted with most negative density? Disagreement between FeaturePlot vs plot_density #17
Comments
Hello, I'm not a developer but you can find a workaround by specifying the kernel density method to method = "wkde". Hope that helps! |
Hi @denvercal1234GitHub did you solve the issue? I have the same problem |
@gabsax: Have you tried @p-gueguen's suggestion of setting |
Hi @mschili87, it partially solve the problem but the result it's not accurate. But I found it works better if in addition to setting obj$signature <- round((obj$signature + abs(min(obj$signature))) * 100) |
Could you elaborate? |
You can view the plots in the attachment. The Featureplot accurately shows the cells expressing the signature. When visualizing the signature with Nebulosa by simply adding the argument |
Interesting example. I guess it's the negative values that create the difference. So there are lots of cells expressing the feature but those are balanced out by a lot of others that do not express it at all. 🤔 |
Hi there,
Thanks for a great tool.
I plot the joint density of a vector of genes that were scored using AddModuleScore.
When I plotted this score for each cell using FeaturePlot and plot_density. The results are entirely opposite of each other. Would you mind helping me to correct this?
Thank you again.
With FeaturePlot:
With plot_density:
The text was updated successfully, but these errors were encountered: