napari-spatialdata icon indicating copy to clipboard operation
napari-spatialdata copied to clipboard

why `len(unique) <= len(res) // 100`

Open z-spider opened this issue 11 months ago • 1 comments

Hi, how should we distinguish between continuous and categorical variables? I don't understand the following line of code.

https://github.com/scverse/napari-spatialdata/blob/36fe3b96e829f45b39012238a5d1f4d8e1087eae/src/napari_spatialdata/utils/_utils.py#L72

In my case, len(unique) <= len(res) // 100, but the variable is 'total_counts per spot'

z-spider avatar Feb 10 '25 12:02 z-spider

@giovp can you share your thoughts on this please? The code was inherited from squidpy I believe.

LucaMarconato avatar Feb 10 '25 14:02 LucaMarconato