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 intostatesfor which trials should be plottedsave_file (
str) – full save file (path and filename)max_frames (
int, optional) – maximum number of frames to animateframe_rate (
float, optional) – frame rate of saved movien_buffer (
int, optional) – number of blank frames between syllable instancesn_pre_frames (
int, optional) – number of behavioral frames to precede each syllable instancen_rows (
intorNoneType, optional) – number of rows in output moviesingle_syllable (
intorNoneType, optional) – choose only a single state for movie