We used a GLM to regress recorded calcium signals against a time series of task events. We propose a novel method for automatically searching event-related neurons in calcium imaging data (S15 Fig). Our method searches the ROI pixelwise using event timing information. By utilizing a statistical method to determine the relationship between the calcium trace of each pixel and the event timing, the searched ROI pixels are clustered.