Repository navigation
fix: prevent RunPAGA sparse-array neighbor failures - #565
Merged
Merged
Conversation
hurry060215-tech
marked this pull request as ready for review
November 8, 2026 05:16
# Conflicts: # NEWS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the large-data
RunPAGA()failure caused by Scanpy 1.11.3 receiving a SciPycsr_arrayfrom PyNNDescent 0.7.0 while its neighbor-search path calls the matrix-onlygetnnz()API.pynndescent==0.6.0in the shared Scanpy environment profile, including dependent scVelo and CellRank profiles.tests/testthat.No public R API, numerical algorithm, backend selection, package version, or CI workflow changes.
Current validation (Windows, R 4.5.2)
Validated the test update at
eeee2160ausing existing environments; no dependency installation or environment modification was performed.python3executable did not provide pip.PAGA()completed on 8,200 constructed cells in a standalone Python 3.10.19 process, including neighbor search, PAGA graph, plotting, and draw_graph. The resulting graph passed shape, finite-value, and nonempty checks.csr_array.getnnzexception directly in Scanpy 1.11.3; the equivalentcsr_matrixinput succeeded.pkgload::load_all(".", quiet=TRUE, compile=FALSE)completed. The local testthat build emits an R-version warning (built under 4.5.3).--no-manual --no-examples --no-testsand_R_CHECK_FORCE_SUGGESTS_=false: 0 errors, 0 warnings, 1 NOTE. Both R-code dependency checks and unstated example dependency checks were OK. The NOTE concerns globals in untouched enrichment/spatial code.--as-craninvocation was attempted but stopped after remaining at CRAN incoming feasibility; that check is incomplete, not passing.styler::style_file()andgit diff --checkpassed.Remaining limitations
The Windows R/reticulate roundtrip using the existing Scanpy 1.11.3
scop_envreturned NULL from its child process and failed the assertions. The cause is not established; standalone Python on that same environment passed, and the complete R roundtrip on the existing Scanpy 1.11.5 environment passed. This is not presented as an exact-stack R integration pass. No new Linux execution was performed in this update; the earlier PR history records Linux reproduction and validation at the previous head.GitHub Actions jobs remain blocked by an account billing lock and do not execute their steps. Resolve that external restriction and rerun existing workflows before merging. Full package tests and examples are not claimed as passing.