squidpy icon indicating copy to clipboard operation
squidpy copied to clipboard

Add filter function that subsets the entire object

Open timtreis opened this issue 1 year ago • 1 comments

Users can easily break SpatialData objects by filtering the contained AnnData tables using scanpy - this might remove observations that are still present in other elements, such as Shapes. This function properly filters the entire object, enabled things such as shown here:

image

timtreis avatar Mar 04 '25 18:03 timtreis

Hi thanks. Can you show an example of error that occurs after the legacy filtering? Such mismatch between tables and shapes are supported by design, so I think the broken behavior is a bug.

LucaMarconato avatar Mar 05 '25 14:03 LucaMarconato