napari-spatialdata
napari-spatialdata copied to clipboard
why `len(unique) <= len(res) // 100`
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'
@giovp can you share your thoughts on this please? The code was inherited from squidpy I believe.