stnmf.preprocessing.spiketriggered.profiles

stnmf.preprocessing.spiketriggered.profiles(sta, crop=None)

Obtain temporal and spatial profiles of the STA for multiple cells

Parameters:
  • sta ((num_cells,x,y,tau) array_like) – STAs of multiple cells. If three dimensional, assume num_cells == 1

  • crop (list of tuple of slice, optional) – Windows for the spatial profiles. Output of the window function. Default is None

Returns:

  • sta_space ((num_cells,) numpy.ndarray) – Object array containing the spatial filter for all cells. Each element is a (crop_x[cell],crop_y[cell],tau) numpy.ndarray, if crop is provided, otherwise a (x,y,tau) numpy.ndarray

  • sta_temp ((num_cells,tau) numpy.ndarray) – Array containing the normalized temporal filters for all cells