compute_mean_time_course now omits intervals with fewer than 4 animals