[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of scanpy.
[x] (optional) I have confirmed this bug exists on the main branch of scanpy.
What happened?
Tried to run this function:
sc.tl.leiden(test, resolution = 0.1, restrict_to = ('leiden', ['5']))
and instead it is subsetting cluster 5 into over 400 new subsets, even with my resolution set to 0.1. I've also tried different resolutions and none of them work, it ignores the resolution altogether.
Thanks for the report. I'm having trouble reproducing this behaviour locally.
Two thoughts:
It looks like there's a newer version of leidenalg available, could you upgrade that?
Maybe there is something about the neighborhood graph. Could you either: reproduce this with some dummy data (e.g. sc.datasets.blobs) or share the test object?
Please make sure these conditions are met
What happened?
Tried to run this function: sc.tl.leiden(test, resolution = 0.1, restrict_to = ('leiden', ['5']))
and instead it is subsetting cluster 5 into over 400 new subsets, even with my resolution set to 0.1. I've also tried different resolutions and none of them work, it ignores the resolution altogether.
Minimal code sample
Error output
No response
Versions