Correction to: Nature Communications, published online 14 January 2023

The original version of this Article contained errors in Fig. 4d and Supplementary Fig. 4e, which showed plots of erroneous cumulative distance values, which arose from an erroneous handling of NaN values in the underlying code for distance calculations.

The correct version of Fig. 4d is:

which replaces the previous incorrect version:

This has been corrected in both the PDF and HTML versions of the Article.

The correct version of Supplementary Fig. 4e is:

which replaces the previous incorrect version:

The HTML has been updated to include a corrected version of the Supplementary Information.

The Source Data file has also been corrected in the HTML version of the Article. The MATLAB code provided at the GitHub link in the Code Availability statement has been corrected.

In addition, in the results section “Integrated microfluidics-light sheet fluorescence microscopy system for imaging neuronal activities and behavior” the sentence “Simultaneously, the tail flipping behaviors were monitored using high-speed IR camera imaging at 200 fps (Fig. 3b)” incorrectly referred to Fig. 3b, instead of Fig. 3c, and in the results section “Revealing brainwide representation of cadaverine sensing using the integrated optofluidic system” the sentence “Interestingly, apart from observing a supralinear gain of information for the majority of neurons (Fig. 5b, g–i), there is a trend for FIs to increase along the rostral-caudal axis (Fig. 5h, i) as IS values decrease across the forebrain regions (Fig. 5a)” incorrectly referred to Fig. 5b, g–i, instead of Fig. 5c, g–i. These errors have been corrected in both the PDF and the HTML versions of the Article.