- Made pygam an optional dependency that can be installed with
pip install palantir[gam]orpip install palantir[full] - Added proper conditional imports and improved error handling for pygam
- Enhanced
run_magic_imputationto return appropriate data types for different inputs - Updated code to use direct AnnData imports for newer compatibility
- Improved version detection using
importlib.metadatawith 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 from
_methods in scanpy for plotting. - add
pseudotime_intervalargument to control path length inpalantir.plot.plot_trajectory