Conversation
Replace all occurrences of the deprecated scipy sparse matrix .A attribute with modern alternatives: - Use .toarray() for actual sparse matrix slicing operations - Use np.asarray() for numpy matrix objects returned by .sum(), .mean(), .max() operations on sparse matrices - Use np.asarray(...).flatten() to replace .A1 for 1D results Files modified: - sam-algorithm/src/samalg/sam.py - sam-algorithm/src/samalg/utilities.py - src/samap/core/mapping.py - src/samap/analysis/gene_pairs.py - src/samap/analysis/scores.py Also update SAMap_vignette.ipynb imports to use new module structure: - from samap import SAMAP (was samap.mapping) - from samap._constants import KOG_TABLE (was samap.analysis._KOG_TABLE) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add release.yml for automated PyPI publishing on version tags - Update CI to Python 3.12 only (remove 3.11 matrix) - Install viz dependencies in CI for sankey plot tests - Update README version to 2.0.2 - Package renamed to sc-samap with sc-sam>=2.0.0 dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Auto-fix import sorting and __all__ ordering - Replace np.in1d with np.isin (NumPy 2.0 compatibility) - Remove unused variables and simplify dict iteration - Add B007 and NPY002 to ruff ignore list - Lower coverage threshold (integration tests need example data) - Format all files with ruff 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
No description provided.