Skip to content

Conversation

@katosh
Copy link
Collaborator

@katosh katosh commented Mar 3, 2025

This merges all the changes for v1.4.0 including:

  • Made pygam an optional dependency that can be installed with pip install palantir[gam] or pip install palantir[full]
  • Added proper conditional imports and improved error handling for pygam
  • Enhanced run_magic_imputation to return appropriate data types for different inputs
  • Updated code to use direct AnnData imports for newer compatibility
  • Improved version detection using importlib.metadata with graceful fallbacks
  • Fixed Series indexing deprecation warnings in early cell detection functions
  • Expanded and standardized documentation with NumPy-style docstrings throughout the codebase
  • Added comprehensive type hints to improve code quality and IDE support
  • Remove dependency on _ methods from scanpy for plotting.

 * Made pygam an optional dependency that can be installed with `pip install palantir[gam]` or `pip install palantir[full]`
 * Added proper conditional imports and improved error handling for pygam
 * Enhanced `run_magic_imputation` to return appropriate data types for different inputs
   * For numpy arrays or csr_matrix inputs, returns sparse matrices by default (sparse=True)
   * For pandas DataFrames, returns pandas DataFrames
   * For AnnData objects, stores results in the object and returns sparse matrices by default
 * Maintained sparse=True as the default for run_magic_imputation for backward compatibility
 * Added better support for both sparse and dense output formats in `run_magic_imputation`
 * Fixed circular import issues between modules
 * Updated code to use direct AnnData imports for newer compatibility
 * Improved version detection using importlib.metadata with graceful fallbacks
 * Fixed Series indexing deprecation warnings in early cell detection functions
 * Standardized documentation with NumPy-style docstrings throughout the codebase
 * Added comprehensive type hints to improve code quality and IDE support
@katosh katosh merged commit 82798e3 into dpeerlab:master Mar 3, 2025
5 checks passed
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.

1 participant