squidpy
squidpy copied to clipboard
Use radius graph for co-occurrence score
Description
The way we are doing the co-occurrence score is really ugly and it should be rewritten. We should remove the euclidean distance and use the graph computed with a fixed radius (from spatial_neighbors function).
...
Minimal reproducible example
...
Traceback
...
Version
...
this would require to explicitly tell user that a new neighbor_graph will be re-run (but will not modify the anndata). I think it's a sensible solution but would change the behaviour quite a bit.