Built-in Analyses

This section gives you an overview of the additional analyses that are performed when you initialize an experiment. They are based on MatLab code kindly shared by Dimitri Berh (Klaembt lab, University of Muenster, Germany):

Documentation

Base analyses

stops(exp) Calculates frequency of stops [Hz] for each object.
stop_duration(exp) Calculates mean duration of a stop.
pause_turns(exp) Calculates the frequency of pause-turns [Hz] for each object.
bending_strength(exp[, during]) Calculates the median (!) bending strength for each object.
head_bends(exp) Calculates the head bend frequency [Hz] for each object.
peristalsis_efficiency(exp) Calculates the peristalsis efficiency for each object.
peristalsis_frequency(exp) Calculates the peristalsis frequency [Hz] for each object.
binary_phases(x[, mode, min_len]) Low-level function: Extracts phases from binary indicators such as “go_phase” or “is_coiled”.

Two-choice analyses

preference_index(exp) Calculates the preference index (PI) for a two choice experiment:
PI_over_time(exp) Calculates the preference index (PI) for a two choice experiment over time: