sainsc.LazyKDE.find_local_maxima

sainsc.LazyKDE.find_local_maxima(min_dist, min_area=0)

Find the local maxima of the kernel density estimates.

The local maxima are detected from the KDE of the total mRNA stored in sainsc.LazyKDE.total_mRNA_KDE. Background as defined in sainsc.LazyKDE.background will be removed before identifying local maxima.

Parameters:
  • min_dist (int) – Minimum distance between two maxima in pixels.

  • min_area (int, optional) – Minimum area of connected pixels that are not background to be considered for maxima detection. Allows ignoring maxima in noisy spots.