stereo.core.StPipeline.spatial_neighbors#

StPipeline.spatial_neighbors(neighbors_res_key='neighbors', n_neighbors=6, res_key='spatial_neighbors')[source]#

Create a graph from spatial coordinates using Squidpy.

Parameters:
  • neighbors_res_key (str) – the key of neighbors to getting the result.

  • n_neighbors (int) – 6 or 4, the number of neighboring tiles.

  • res_key (str) – the key for getting the result from the self.result.

Returns:

Spatial neighbors result is stored in self.result where the result key is 'spatial_neighbors'.