Skip to content

DensMAP support - #2684

Closed
AlePur wants to merge 3 commits into
scverse:mainfrom
AlePur:master
Closed

AlePur wants to merge 3 commits into
scverse:mainfrom
AlePur:master

Conversation

@AlePur

@AlePur AlePur commented Oct 14, 2023

Copy link
Copy Markdown

I added an optional boolean parameter to scanpy.tl.umap for DensMAP. Since umap 0.5, simplicial_set_embedding takes densmap and densmap_kwds parameters, and tools/_umap is using this function, so DensMAP support is easily implemented.

@codecov

codecov Bot commented Oct 14, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.83%. Comparing base (42e3c2a) to head (7b6a875).
Report is 223 commits behind head on main.

Files with missing lines Patch % Lines
scanpy/tools/_umap.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2684      +/-   ##
==========================================
- Coverage   71.98%   71.83%   -0.16%     
==========================================
  Files         108      108              
  Lines       11920    11921       +1     
==========================================
- Hits         8581     8563      -18     
- Misses       3339     3358      +19     
Files with missing lines Coverage Δ
scanpy/tools/_umap.py 72.05% <83.33%> (+0.41%) ⬆️

... and 1 file with indirect coverage changes

@flying-sheep

Copy link
Copy Markdown
Member

I see, densmap

Hmm, I think that method='densmap' and method_kwds={...} would be a better API for us (which would then be translated into densmap=True, densmap_kwds=method_kwds)

This also needs tests and a release note.

Also we probably should just remove the umap 0.4 compatibility code, what do you think @ivirshup?

@keller-mark keller-mark mentioned this pull request Mar 22, 2024
4 tasks done
@AlePur AlePur closed this by deleting the head repository Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants