Skip to content

fix: use get_igraph_from_adjacency for graph construction#4112

Open
flying-sheep wants to merge 3 commits into
mainfrom
pa/graph-construction
Open

fix: use get_igraph_from_adjacency for graph construction#4112
flying-sheep wants to merge 3 commits into
mainfrom
pa/graph-construction

Conversation

@flying-sheep
Copy link
Copy Markdown
Member

@flying-sheep flying-sheep commented May 8, 2026

@flying-sheep flying-sheep added this to the 1.12.2 milestone May 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@6af627e). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/scanpy/neighbors/__init__.py 0.00% 1 Missing ⚠️
src/scanpy/tools/_paga.py 0.00% 1 Missing ⚠️
src/scanpy/tools/_utils.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4112   +/-   ##
=======================================
  Coverage        ?   79.59%           
=======================================
  Files           ?      119           
  Lines           ?    12774           
  Branches        ?        0           
=======================================
  Hits            ?    10168           
  Misses          ?     2606           
  Partials        ?        0           
Flag Coverage Δ
hatch-test.low-vers 78.88% <83.33%> (?)
hatch-test.pre 79.46% <83.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/scanpy/_utils/__init__.py 75.28% <100.00%> (ø)
src/scanpy/metrics/_metrics.py 97.14% <100.00%> (ø)
src/scanpy/plotting/_tools/paga.py 64.26% <100.00%> (ø)
src/scanpy/tools/_draw_graph.py 69.01% <100.00%> (ø)
src/scanpy/neighbors/__init__.py 82.04% <0.00%> (ø)
src/scanpy/tools/_paga.py 32.05% <0.00%> (ø)
src/scanpy/tools/_utils.py 86.76% <85.71%> (ø)

@flying-sheep flying-sheep changed the title fix: use get_igraph_from_adjacency for graph construction for now. fix: fix modularity inconsistency by using get_igraph_from_adjacency for now. May 8, 2026
@flying-sheep flying-sheep changed the title fix: fix modularity inconsistency by using get_igraph_from_adjacency for now. fix: use get_igraph_from_adjacency for graph construction May 11, 2026
@flying-sheep flying-sheep marked this pull request as ready for review May 11, 2026 07:06
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.

Inconsistency in graphs used by sc.tl.leiden and sc.metrics.modularity leads to modularity mismatch

1 participant