make_syllable_movies

behavenet.plotting.arhmm_utils.make_syllable_movies(ims_orig, state_list, trial_idxs, save_file=None, max_frames=400, frame_rate=10, n_buffer=5, n_pre_frames=3, n_rows=None, single_syllable=None)[source]

Present video clips of each individual syllable in separate panels

Parameters:
  • ims_orig (np.ndarray) – shape (n_frames, n_channels, y_pix, x_pix)

  • state_list (list) – each entry (one per state) contains all occurences of that discrete state by [chunk number, starting index, ending index]

  • trial_idxs (array-like) – indices into states for which trials should be plotted

  • save_file (str) – full save file (path and filename)

  • max_frames (int, optional) – maximum number of frames to animate

  • frame_rate (float, optional) – frame rate of saved movie

  • n_buffer (int, optional) – number of blank frames between syllable instances

  • n_pre_frames (int, optional) – number of behavioral frames to precede each syllable instance

  • n_rows (int or NoneType, optional) – number of rows in output movie

  • single_syllable (int or NoneType, optional) – choose only a single state for movie