-
Notifications
You must be signed in to change notification settings - Fork 609
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
DensMAP support #2946
base: main
Are you sure you want to change the base?
DensMAP support #2946
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2946 +/- ##
==========================================
+ Coverage 75.36% 75.39% +0.02%
==========================================
Files 112 113 +1
Lines 13219 13231 +12
==========================================
+ Hits 9963 9976 +13
+ Misses 3256 3255 -1
|
… into keller-mark/densmap-2
Hi, it seems the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for you contribution! Please add a plot test that shows sufficiently different results from umap.
src/scanpy/tools/_umap.py
Outdated
# Convenience function for densMAP | ||
|
||
|
||
def densmap( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d rather not maintain that. Just method='densmap'
should be sufficient, but if densmap = partial(umap, method='densmap')
works and displays in the docs as expected, I’d consider it.
If you want to make it more visible, you could add an example to the sc.pl.umap
docs and maybe even a tutorial about what it’s for and how to best use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the partial
option, but there seem to be issues with inference of the types from the parent umap
function when generating the autodoc for sphinx that are not straightforward to resolve.
Hi, it seems that the plotting test that I added is failing in Azure CI, despite passing locally. I have read the plotting test notes at https://scanpy.readthedocs.io/en/stable/dev/testing.html#plotting-tests and https://github.com/scverse/scanpy/blob/main/docs/dev/ci.md#plotting-tests but cannot seem to find a place to view the generated image files in the Azure CI Attachments interface.
|
I could use some help debugging this, the image-diffing test keeps failing with RMS values slightly above 15 but only in the |
I tried to follow the feedback described in a previous PR that contributed DensMAP #2684 (comment) but re-implemented on top of the state of the current scanpy main branch.
I did not add release notes because the contributor guide says to wait for PR feedback https://scanpy.readthedocs.io/en/latest/dev/documentation.html#adding-to-the-docs