Skip to content

feat: automatic K selection (CellCharter's ClusterAutoK) - #1276

Draft
selmanozleyen wants to merge 10 commits into
mainfrom
feat/cluster-auto-k-seed
Draft

feat: automatic K selection (CellCharter's ClusterAutoK) #1276
selmanozleyen wants to merge 10 commits into
mainfrom
feat/cluster-auto-k-seed

Document auto-K result with a typed dict template

ca085f2
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 22, 2026 in 0s

79.15% (target 1.00%)

View this Pull Request on Codecov

79.15% (target 1.00%)

Details

Codecov Report

❌ Patch coverage is 95.48611% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.15%. Comparing base (76b6757) to head (ca085f2).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/squidpy/gr/_autok.py 96.22% 2 Missing and 2 partials ⚠️
src/squidpy/gr/_niche.py 95.60% 1 Missing and 3 partials ⚠️
src/squidpy/gr/_cluster_auto_k.py 95.08% 1 Missing and 2 partials ⚠️
src/squidpy/gr/_nhood.py 91.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1276      +/-   ##
==========================================
+ Coverage   78.60%   79.15%   +0.55%     
==========================================
  Files          63       65       +2     
  Lines        9348     9562     +214     
  Branches     1559     1589      +30     
==========================================
+ Hits         7348     7569     +221     
+ Misses       1426     1419       -7     
  Partials      574      574              
Files with missing lines Coverage Δ
src/squidpy/_docs.py 95.29% <100.00%> (ø)
src/squidpy/_utils.py 70.46% <100.00%> (+0.25%) ⬆️
src/squidpy/experimental/im/_detect_tissue.py 67.77% <100.00%> (ø)
...c/squidpy/experimental/im/_stain/_decomposition.py 91.86% <100.00%> (ø)
src/squidpy/gr/_nhood.py 76.65% <91.66%> (+1.65%) ⬆️
src/squidpy/gr/_cluster_auto_k.py 95.08% <95.08%> (ø)
src/squidpy/gr/_autok.py 96.22% <96.22%> (ø)
src/squidpy/gr/_niche.py 81.25% <95.60%> (+5.10%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.