(A) Left panel: examples of event-aligned spike data for five representative cells tuned to specific behaviors. Event-aligned spike histograms were calculated using a 20 ms bin width and smoothed by convolving spike trains with a 60 ms wide Gaussian filter. Gray shading indicates the approach epoch (500 ms before odor port entry), yellow shading indicates the odor-sampling epoch (from entry into the odor port to exiting the odor port), orange shading indicates the moving epoch (from exiting the odor port to entry into the water port), light blue shading indicates the waiting epoch (water reward delay, 300 ms before water valve was turned on), blue shading indicates the drinking epoch (1000 ms after the water valve was turned on). Right panel: auROC values were calculated from event-aligned spike data (aligned by odor valve opening) for all cells, sorted by the peak time for auROC values. Each row corresponds to one cell. auROC values were calculated by comparing go correct trials to baseline (pre-odor cue period, 1.2 to 1 s before odor port entry) in sliding bins (width, 100 ms; step, 20 ms). Vertical white lines indicate transitions between behavioral epochs, including odor port entry (corresponding to odor valve opening), odor port exit, water port entry, and water valve opening. The color scale for this figure is the same as that used in Figure 1D, with positive and negative values reflecting increased and decreased firing rates relative to baseline, respectively. (B) Relative distribution of significant auROC values (p<0.01, permutation test) per cell group tuned to a specific behavioral epoch in the odor-guided go/no-go task. Cell groups were tuned to the approach, odor-sampling, moving, waiting, and drinking epochs (from bottom to top graphs). Each line corresponds to one cell (left axes, auROC values). Yellow and blue indicate a significant increase and decrease from baseline, respectively. Gray indicates neither a significant increase nor decrease. Shaded regions show the relative distributions of significant auROC valves (right axes, probability, see Materials and methods). Red dots indicate that a time bin contained more cells with significant responses than in the distribution of 1000 resampling datasets. Blue dots indicate that a time bin contained fewer cells with significant responses than in the distribution of 1000 resampling datasets. The resampling datasets are provided in Figure 2—source data 1. Vertical black lines indicate the timing of odor port entry (corresponding to odor valve opening), odor port exit, water port entry, and water valve opening. Note that each cell group exhibited an excitatory response to a specific behavioral epoch, with suppressed responses relative to other epochs.