scverse / squidpy

Spatial Single Cell Analysis in Python
https://squidpy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
424 stars 78 forks source link

cylindrical shell option for sq.gr.spatial_neighbors #388

Closed AnnaChristina closed 3 years ago

AnnaChristina commented 3 years ago

Type of the feature

Description

Additional feature request für sq.gr.spatial_neighbors to allow a cylindrical shell as neighbourhood option, so all cells are considered as neighbors for min_radius < x < max_radius. This would be beneficial for ncem, see https://github.com/theislab/ncem/issues/22

As ncem's backend is based on squidpy, I would like to add this.

This would include the following changes: rename radius to max_radius and add min_radius with default 0. I can create a PR for this.

michalk8 commented 3 years ago

closed via #393