Changelog
Source:NEWS.md
    Version 1.5.0
Major Features
- Seurat Compatibility: Added comprehensive compatibility layer enabling SpotSweeper functions to work seamlessly with Seurat spatial objects alongside existing SpatialExperiment support. This major enhancement expands SpotSweeper’s usability across the spatial transcriptomics ecosystem.
 - 
Flexible Coordinate Systems: Enhanced 
localOutliers()to support custom coordinate systems for neighborhood detection, enabling outlier detection in PCA, UMAP, or any reduced-dimension space. 
New Functions
- 
getSpatialCoords(): Universal function to extract spatial coordinates from both SpatialExperiment and Seurat objects - 
getMetadata(): Universal function to access metadata (colData/meta.data) from both object types - 
setMetadata(): Universal function to update metadata in both object types - 
subsetSpatialObject(): Universal subsetting function for both object types - 
validateMetadataColumns(): Validation function to ensure required columns exist - 
is_seurat()andis_spatial_experiment(): Object type detection functions 
Enhanced Functions
- 
localOutliers():- Now accepts both SpatialExperiment and Seurat objects with automatic detection
 - New 
coordsparameter allows custom coordinate matrices for neighborhood detection - Default behavior unchanged (uses spatial coordinates)
 - Supports PCA, UMAP, t-SNE, or any coordinate system for neighbor finding
 
 
Bug Fixes
- 
Fixed focal spot inclusion: Removed focal spot from neighborhood when calculating modified z-scores in 
localOutliers()to prevent circular logic and bias, resulting in more accurate outlier detection. 
Documentation
- Updated function documentation to reflect dual compatibility and new coordinate options
 - Added Seurat usage examples alongside existing SpatialExperiment examples
 - Added examples for custom coordinate systems (PCA, UMAP)
 - Comprehensive test suite for compatibility layer and coordinate functionality
 
Version 1.3.2
Version 1.3.1
Major Changes
- 
Function Renaming: The function 
plotQChas been renamed toplotQCmetricsto better reflect its purpose. The new functionplotQCmetricsshould be used moving forward. This change improves clarity in the package’s API by specifying that this function is designed for plotting QC metrics. 
New Features and Enhancements
shapeargument: Added ashapeargument tofindArtifacts, allowing users to specify the neighborhood shape as either"hexagonal"or"square"for local variance calculations. This enhancement provides flexibility for different spatial arrangements in spatial transcriptomics data.Updated
n_orderparameter: Renamed then_ringsparameter ton_orderin thefindArtifactsfunction to better describe its purpose of specifying the N-order neighbors for local mitochondrial variance calculations.Parallelization: Added a
workersargument for parallel processing usingBiocParallelin bothlocalOutlierandlocalVariancefunctions. This allows for faster computation, particularly on larger datasets.
Deprecations
- 
plotQCFunction Deprecated: TheplotQCfunction is now deprecated. While it remains available for backward compatibility, users are encouraged to transition toplotQCmetrics. CallingplotQCwill display a warning, reminding users of the deprecation. 
This change is backward compatible; existing code using plotQC will still work but will show a warning. We recommend updating your code to use plotQCmetrics to avoid any issues in future versions where plotQC may be removed.