data_basedb_initializersprepare_ANN_batchesget_neighboring_spatial_bins

get_neighboring_spatial_bins

data_base.db_initializers.prepare_ANN_batches.get_neighboring_spatial_bins(cell, bin_id, section_distances_df)

Get all the neighboring bins from a bin_id.

Parameters:
  • cell (cell) – cell object

  • bin_id (_type_) – Bin id of format: "section\_id/bin\_id"

  • section_distances_df (pd.DataFrame) – DataFrame representing each section’s spatial bins and binsizes.

Returns:

list of all ids of bins that neighbor the given bin

Return type:

list