Skip to content

Incorporating feedback on niche refactor - #1284

Draft
shashkat wants to merge 9 commits into
scverse:mainfrom
shashkat:niche_refactor_suggestions
Draft

Incorporating feedback on niche refactor#1284
shashkat wants to merge 9 commits into
scverse:mainfrom
shashkat:niche_refactor_suggestions

Conversation

@shashkat

@shashkat shashkat commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

Big thanks to @grst for invaluable feedback (#1277) on the niche refactor in #1245. Incorporating those suggestions in this PR.

Closes

Closes #1277

shashkat and others added 5 commits August 31, 2026 22:49
…m and store the niche embedding in adata.obsm now.

Not sure how much computational benefit this offers, as now, instead of many small embeddings (for each library-subsetted adata), one big embedding is being computed (for the whole adata).
But irrespective of computational advantage, I think it can be useful to store the embedding in adata.obsm to inspect for end user.
…t layer of adata and ii) no longer creating temporary adata object in _UtagEmbedder
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.73%. Comparing base (f71f2b9) to head (443670c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/squidpy/gr/_niche.py 88.88% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1284      +/-   ##
==========================================
- Coverage   78.75%   78.73%   -0.02%     
==========================================
  Files          63       63              
  Lines        9370     9365       -5     
  Branches     1558     1556       -2     
==========================================
- Hits         7379     7374       -5     
- Misses       1421     1422       +1     
+ Partials      570      569       -1     
Files with missing lines Coverage Δ
src/squidpy/_docs.py 95.40% <100.00%> (+0.05%) ⬆️
src/squidpy/gr/_niche.py 78.09% <88.88%> (-0.34%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Feedback on new niche implementation

1 participant