Animals and surgery
All experimental procedures were approved by the Princeton University Institutional Animal Care and Use Committee following the NIH Guide for the Care and Use of Laboratory Animals. Wild-type mice (JAX 000664) and Calcacre mice34 (JAX 033168) were obtained from the Jackson Laboratory. Adult mice (>8 weeks old) of both sexes were used for all experiments. Mice were housed under a 12-h light–dark cycle, and experiments were conducted during the dark cycle. Ambient temperature was maintained at 21–26 °C and humidity at 30–70%. Stereotaxic surgeries were performed under isoflurane anaesthesia (3–4% for induction, 0.75–1.5% for maintenance). Mice received pre-operative antibiotics (5 mg kg–1 Baytril subcutaneous (s.c.)) and pre-operative and post-operative analgesia (10 mg kg–1 Ketofen s.c.; 3 daily injections). Post-operative health (evidence of pain, incision healing, activity and posture) was monitored for at least 5 days. For all CFA experiments, mice were water-restricted and maintained at >80% body weight for the duration of the experiment.
Viral injections
For CGRP neuron cell-body stimulation experiments (Figs. 2–4), we bilaterally injected 400 nl of AAV5-EF1a-DIO-hChR2(H134R)-eYFP (titre, 1.2 × 1013 genome copies (GC) per ml; manufacturer, Princeton Neuroscience Institute (PNI) Viral Core Facility)61,62 at –5.00 mm anterior–posterior (AP), ±1.40 mm medial–lateral (ML) and –3.50 mm dorsal–ventral (DV) into Calcacre mice. We used these stereotaxic coordinates to target the PB in all subsequent experiments. For CGRP neuron fibre photometry experiments (Fig. 2b), we unilaterally injected 400 nl of AAV9-hSyn-FLEX-GCaMP6s (titre, 1.0 × 1013 GC per ml; manufacturer, PNI Viral Core Facility)63 into the PB of Calcacre mice. For CGRPCEA projection stimulation experiments (Figs. 2 and 4 and Extended Data Fig. 9), we bilaterally injected 350 nl of AAV5-EF1a-DIO-hChR2(H134R)-eYFP (titre, 1.2 × 13 GC per ml; manufacturer, PNI Viral Core Facility; RNAscope FISH experiment)61,62, AAV5-EF1a-DIO-ChRmine-mScarlet (titre, 9.0 × 1012 GC per ml; manufacturer, PNI Viral Core Facility; all other experiments)64 or AAV5-EF1a-DIO-eYFP (titre, 1.5 × 1013 GC per ml; manufacturer, PNI Viral Core Facility) into the PB of Calcacre mice. For CGRPCEA projection inhibition experiments (Fig. 2f), we bilaterally injected 350 nl of AAV5-hSyn-SIO-eOPN3-mScarlet (titre, 9.0 × 1012 GC per ml; manufacturer, Addgene)65 or AAV5-EF1a-DIO-eYFP (titre, 1.5 × 1013 GC per ml; manufacturer, PNI Viral Core Facility) into the PB of Calcacre mice. For CGRP neuron ablation experiments (Fig. 3p–r and Extended Data Fig. 9g,h), we bilaterally injected 350 nl of AAV5-EF1a-FLEX-taCasp3-TEVp (titre, 1.6 × 1013 GC per ml; manufacturer, Addgene)66 into the PB of Calcacre mice. For control LiCl conditioning and Neuropixels implantation experiments (Fig. 3n,o), we bilaterally injected 350 nl of AAV5-Camk2a-eYFP (titre, 7.5 × 1011 GC per ml; manufacturer, University of North Carolina (UNC) Vector Core) into the PB of wild-type mice. For CEA PKA recording experiments (Fig. 5), we unilaterally injected 300 nl of AAV5-hSyn-ExRai-AKAR2 (titre, 2.4 × 1013 GC per ml; manufacturer, PNI Viral Core Facility)47 at –1.15 mm AP, –2.65 mm ML and –4.85 mm DV into wild-type mice. For LS activation experiments (Extended Data Fig. 2), we bilaterally injected AAV5-hSyn-hM3D(Gq)-mCherry (titre, 3.8 × 1012 GC per ml; manufacturer, Addgene)67 or AAV5-Camk2a-eYFP (titre, 7.5 × 1011 GC per ml; manufacturer, UNC Vector Core) at one (500 nl at +0.55 mm AP, ±0.35 mm ML and –4.00 mm DV) or two (150 nl each at +0.85 mm or +0.25 mm AP, ±0.60 mm ML and –3.75 mm DV) coordinates into wild-type mice. Virus was infused at 100 nl min–1. Coordinates are given relative to bregma. We allowed 3 weeks for AKAR2 and GCaMP expression, at least 4 weeks for ChR2 and hM3D expression, 5 weeks for CGRP neuron ablation by taCasp3-TEVp and 8 weeks for CGRPCEA terminal expression of ChRmine, ChR2 and eOPN3.
Optical fibre implantations
Optical fibres encased in stainless-steel ferrules were implanted into the brain for optogenetic and fibre photometry experiments. For bilateral optogenetic stimulation of CGRP neurons (Fig. 2), we implanted 300 µm core diameter, 0.39 NA fibres (Thorlabs, FT300EMT) above the PB at a 10° angle, with the fibre tips terminating 300–400 µm above the viral injection coordinate. For unilateral stimulation of CGRP neurons (Figs. 3 and 4), we implanted a 300 µm core diameter, 0.39 NA fibre above the left PB at a 25–30° angle, with the fibre tip terminating 300–400 µm above the viral injection coordinate. For bilateral optogenetic manipulation of CGRPCEA projections (Fig. 2), we implanted 300 µm core diameter, 0.39 NA fibres above the CEA, with the fibre tips terminating at –1.15 mm AP, ±2.85 mm ML and –4.25 mm DV. For unilateral optogenetic stimulation of CGRPCEA projections (Fig. 4 and Extended Data Figs. 9 and 10), we implanted a 300 µm core diameter, 0.37 NA fibre (Doric, MFC_300/360-0.37_10mm_MF2.5_FLT) above the left CEA at a +55° angle, with the fibre tip terminating at –1.20 mm AP, +2.25 mm ML and –3.55 mm DV. For fibre photometry recording of CGRP neurons (Fig. 2b), we implanted a 400 µm core diameter, 0.48 NA fibre (Doric, MFC_400/430-0.48_5.0mm_MF2.5_FLT) above the left PB at a –10° to –30° angle, with the fibre tip terminating approximately at the viral injection coordinate. For fibre photometry recording of CEA PKA activity (Fig. 5), we implanted a 400 µm core diameter, 0.48 NA fibre (Doric, MFC_400/430-0.48_6.0mm_MF2.5_FLT) above the left CEA, with the fibre tip terminating approximately at the viral injection coordinate. Optical fibres were affixed to the skull with Metabond (Parkell, S380), which was then covered in acrylic dental cement.
Chronic Neuropixels assembly
We used four-shank Neuropixels 2.0 probes37 (test-phase; Imec), as they were miniaturized to make them more suitable for chronic implantation in mice. To avoid directly cementing the probes to the skull (that is, so that the probes could be reused), we designed a chronic implant assembly (Extended Data Fig. 7a) based on the design for Neuropixels 1.0 probes previously validated in rats68. Similar to that design, the assembly was printed on Formlabs SLA 3D printers and consisted of four discrete parts: (1) a dovetail adapter permanently glued to the probe base; (2) an internal holder that mated with the dovetail adapter and facilitated stereotaxic manipulation of the probe; and (3–4) an external chassis, printed in two separated parts, that encased and protected the entire assembly. The external chassis and internal holder were attached using screws that could be removed at the end of the experiment to enable explantation and reuse. The external chassis of the final implant assembly was coated with Metabond before implantation. After explantation, probes were cleaned with consecutive overnight washes in enzyme-active detergent (Alconox Tergazyme) and silicone cleaning solvent (Dowsil, DS-2025) before reuse. The dimensions of the Neuropixels 2.0 implant assembly were significantly smaller than the Neuropixels 1.0 implant assembly68, primarily because of the smaller size of the probe and headstage. The maximum dimensions were 24.7 mm (height), 12.2 mm (width) and 11.2 mm (depth), with a weight of 1.5 g (not including the headstage). Space was made for the headstage to be permanently housed in the implant, as opposed to the previous design in which the headstage was connected only during recording and was secured to a tether attached to the animal. This made connecting the animal to the assembly for a recording significantly easier and obviated the need for a bulky tether that limits the movements of the animal. This change was made possible owing to improvements in Neuropixels cable design, which required fewer cables per probe and less reinforcement of the cables during free movement. Design files and instructions for printing and assembling the chronic Neuropixels 2.0 implant are available from GitHub (https://github.com/agbondy/neuropixels_2.0_implant_assembly).
Chronic Neuropixels surgery
Surgery was performed 3–4 weeks after AAV injection to allow time for viral expression and behavioural training. First, three craniotomies were drilled: one small craniotomy (500 µm diameter) above the left PB (approached at a –10° to –30° angle) or the left CEA (approached at a +55° angle) for the optical fibre, another small craniotomy above the cerebellum for the ground wire, and one large craniotomy (1 × 2 mm) above the left CEA for the Neuropixels probe. Next, a single optical fibre was placed above the left PB or left CEA as described above. At this point, the optical fibre was affixed to the skull with Metabond and the exposed skull was covered with Metabond. Next, a prefabricated chronic Neuropixels assembly was lowered at 2.5 µm s–1 into the CEA using an ultraprecise micromanipulator (Sensapex µMp). The probe shanks were aligned with the AP axis of the skull, with the most anterior shank tip terminating at –0.95 mm AP, –2.95 mm ML and –6.50 mm DV. Once the probe was fully lowered, the stainless-steel ground wire was inserted 1–2 mm into the cerebellum and affixed with Metabond. The CEA craniotomy and probe shanks were then covered with medical-grade petroleum jelly, and Dentin (Parkell, S301) was used to affix the chronic Neuropixels assembly to the Metabond on the skull. The optical fibres and CEA Neuropixels probe were both placed in the left hemisphere because CGRP neuron projections are primarily ipsilateral24.
One-reward CFA paradigm
As shown in Figs. 1 and 2, we used a one-reward CFA paradigm that used either a novel or familiar flavour. Experiments were performed in operant boxes (Med Associates) using MedPC software (https://med-associates.com/product/med-pc; v.IV). Operant boxes were situated in sound-attenuating chambers and equipped with a single nosepoke port and light. The nosepoke port contained a reward-delivery tube that was calibrated to deliver 20 µl of reward through a solenoid valve (Lee Technologies, LHDA2433315H). Every behavioural session (training and conditioning) had the following basic structure. First, the mouse was allowed to acclimate to the chamber for 5 min. Then, the consumption period began and the port light turned on to indicate that rewards were available. During this period, each nosepoke, detected by an infrared beam break with a 1 s time-out period, triggered the delivery of a single reward, and the period ended when 1.2 ml of reward was consumed or 10 min had passed. Then, the delay period began and lasted until 30 min after the beginning of the consumption period. During training sessions, mice were returned to the home cage after the end of the delay period.
Mice assigned to the novel-flavour condition first received four training days as described above with water as the reward and no LiCl or CGRP neuron stimulation. On the conditioning day, sweetened grape Kool-Aid (0.06% grape and 0.3% saccharin sodium salt; Sigma, S1002) was the reward. Mice assigned the familiar-flavour condition had sweetened grape Kool-Aid as the reward for all four training days as well as on the conditioning day.
On the LiCl conditioning day (Fig. 1), mice received an i.p. injection of LiCl (125 mg kg–1; Fisher Scientific, L121) or normal saline after the 30-min delay after the end of the consumption period. For the CGRP neuron cell-body stimulation (Fig. 2d) and CGRPCEA projection stimulation (Fig. 2e) experiments, mice then received 45 min of intermittent stimulation beginning after the 30 min of delay. Blue light was generated using a 447 nm laser for ChR2 experiments. Green light was generated using a 532 nm laser for ChRmine experiments. The light was split through a rotary joint and delivered to the animal using 200 µm diameter core patch cables. Light power was calibrated to approximately 10 mW at the patch cable tip for ChR2 experiments and 3 mW for ChRmine experiments. During the experiment, the laser was controlled with a Pulse Pal signal generator (Sanworks, 1102) programmed to deliver 5 ms laser pulses at 10 Hz. For the duration of the stimulation period, the laser was pulsed for 1.5–15 s intervals (randomly chosen from a uniform distribution with 1.5 s step size) and then off for 1–10 s intervals (randomly chosen from a uniform distribution with 1 s step size). For the eOPN3 experiment (Fig. 2f), photoinhibition began 1 min before the LiCl injection and then continued for 90 min (532 nm laser, 10 mW power, 500 ms laser pulses at 0.4 Hz). Mice were then returned to the home cage. For the LS activation experiments (Extended Data Fig. 2), mice received an i.p. injection of 3 mg kg–1 clozapine N-oxide (CNO; Hellobio, 6149) 45 min before the experiment began.
We assessed learning using a two-bottle memory retrieval test. Two bottles were affixed to the side of a mouse cage (Animal Care Systems Optimice) such that the sipper tube openings were located approximately 1 cm apart. One day after conditioning, mice were given 30 min of access with water in both bottles. We calculated a preference for each mouse for this session and then counterbalanced the location of the test bottle for the retrieval test such that the average water day preference for the two bottle locations was as close to 50% as possible for each group. The next day, mice were given 30 min of access with water in one bottle and sweetened grape Kool-Aid in the other bottle. Flavour preference was then calculated using the weight consumed from each bottle during this retrieval test: flavour/(flavour + water).
To initially characterize behaviour in our CFA paradigm (Fig. 1b), retrieval tests were conducted on three consecutive days with the flavour bottle in the same location each day for each mouse. We then fit a GLMM to this dataset using the R package glmmTMB69 (https://github.com/glmmTMB/glmmTMB; v.1.17) with a Gaussian link function and the formula:
$$\rmP\rmr\rme\rmf\rme\rmr\rme\rmn\rmc\rme \sim \rmN\rmo\rmv\rme\rml\ast \rmI\rmn\rmj\rme\rmc\rmt\rmi\rmo\rmn\ast \rmD\rma\rmy\,+\rmS\rme\rmx+(1|\rmS\rmu\rmb\rmj\rme\rmc\rmt)$$
(1)
where Preference is the retrieval test result, Novel (novel, familiar), Injection (LiCl, saline), Day (day 1, day 2, day 3) and Sex (female, male) are fixed-effect categorical variables, (1|Subject) is a random effect for each mouse, the asterisk represents the main effects and interactions, and the tilde means ‘distributed as’. This GLMM showed a strong novel–injection interaction effect (P = 2.22 × 10–6, coefficient estimate z test, n = 32 mice) and a weak effect of novel alone (P = 0.025), but no effect of sex (P = 0.137) or injection (P = 0.574) alone or for any other effects. Using the coefficients from this GLMM, we then used the R package marginaleffects70 (https://github.com/vincentarelbundock/marginaleffects; version 0.12.0) to calculate the marginal effect of the flavour condition (novel – familiar) on each day independently for each injection group. We used the marginal effect estimates and s.e. values to calculate a P value for each injection–day combination with a z test, and then corrected for multiple comparisons in each injection group using the Hochberg–Bonferroni step-up procedure71.
For subsequent experiments (Fig. 2d–f and Extended Data Fig. 2b), we performed a single retrieval test per animal and tested for significant differences across groups using Wilcoxon rank-sum tests.
Histology
We visualized mCherry, mScarlet and YFP signals to validate transgene expression in our LS chemogenetics (Extended Data Fig. 2a,b) and CGRP neuron optogenetics (Fig. 2d–f) experiments. Mice were deeply anaesthetized (2 mg kg–1 Euthasol i.p.) and then transcardially perfused with PBS followed by 4% paraformaldehyde (PFA) in PBS. Brains were then extracted and post-fixed overnight in 4% PFA at 4 °C and then cryoprotected overnight in 30% sucrose in PBS at 4 °C. Free-floating sections (40 μm) were prepared with a cryostat (Leica Microsystems, CM3050S), mounted with DAPI Fluoromount-G (Southern Biotech, 0100) and imaged with a slide scanner (Hamamatsu, NanoZoomer S60) using NDP Scan software (https://www.hamamatsu.com; v.3.4).
To visualize ExRai–AKAR2 signals (Fig. 5c), we stained for GFP immunoreactivity in the CEA. To validate CGRP neuron ablation following taCasp3-TEVp injection (Fig. 3p and Extended Data Fig. 9f), we stained for CGRP immunoreactivity in the PB. In brief, sections were washed, blocked (3% normal donkey serum (NDS) and 0.3% Triton-X in PBS for 90 min) and then incubated with primary antibody (rabbit anti-GFP, Novus, NB600-308, 1:1,000; mouse anti-CGRP, Abcam, ab81887, 1:250) in blocking buffer overnight at 4 °C. Sections were then washed, incubated with secondary antibody (Alexa Fluor 647 donkey anti-rabbit, Invitrogen, A31573, 1:500; Alexa Fluor 568 donkey anti-mouse, Life Technologies, A10037, 1:500) in blocking buffer for 90 min at room temperature, washed again, mounted with DAPI Fluoromount-G (Southern Biotech, 0100) and imaged with a slide scanner (Hamamatsu, NanoZoomer S60) using NDP Scan software (https://www.hamamatsu.com; v.3.4).
Basic image processing, such as brightness and contrast adjustment, was performed using Fiji72 (https://fiji.sc; v.1.52).
Mouse brain atlas
The reference atlas we used is based on the 25 μm resolution Allen Mouse Brain CCF v.3 (https://atlas.brain-map.org)29. For FOS imaging experiments, we considered every brain region in the atlas that met the following criteria: (1) total volume ≥0.1 mm3; (2) lowest level of its branch of the ontology tree (cortical layers or zones not included). We made two modifications to the standard atlas for this study.
First, we reassigned brain region identifiers to increase the clarity of our FOS visualizations that incorporate the atlas and to accurately represent the full functional extent of the CEA. We merged several small regional subdivisions together into the larger LG, PVH, PV, MRN, PRN and SPV regions (see Supplementary Table 1 for a list of brain-region abbreviations). We reassigned all cortical layers and zones to their immediate parent regions (for example, ‘Gustatory areas, layers 1–6b’ (111–117) were reassigned to ‘Gustatory areas’ (110)). We merged all unassigned regions (tagged with the ‘-un’ suffix in the Allen CCF) into relevant parent regions (for example, ‘HPF-un’ (563) was reassigned to ‘Hippocampal formation’ (462)). We reassigned the voxels immediately surrounding the CEA that were assigned to the ‘Striatum’ (581) to the ‘Central amygdalar nucleus’ (605), because we found that cells localized to these CEA-adjacent voxels had highly similar FOS and Neuropixels responses compared with cells localized strictly in the CEA. These atlas changes were used throughout the paper (FOS imaging experiments and Neuropixels experiments). Summaries across the entire CEA (for example, Figs. 1i, 2h, 3 and 4) included all atlas voxels assigned to the parent CEA region (605) and to the CEAc (606), CEAl (607) and CEAm (608) subdivisions. The summary across the entire LS (Extended Data Fig. 2d) included all atlas voxels assigned to the parent ‘Lateral septal complex’ region (594) and to the LS subdivision (595).
Second, we made the left and right hemispheres symmetric to facilitate the pooling of data from both hemispheres for our FOS visualizations. To ensure that the hemispheres of the Allen CCF were perfectly symmetric, we replaced the left hemisphere with a mirrored version of the right hemisphere. This atlas change was used only for the FOS experiments.
Brain-wide FOS time points
All mice used for the FOS experiments (Figs. 1 and 2 and Extended Data Figs. 1–4 and 6) were trained in the one-reward CFA paradigm as described above. For the consumption time point (Fig. 1), mice were euthanized 60 min after the end of the consumption period on the conditioning day (no LiCl injection was given). For the malaise time point (Fig. 1), mice were euthanized 60 min after the LiCl injection on the conditioning day. For the retrieval time point (Fig. 1), mice received the LiCl conditioning described above and then were returned to the operant box 2 days later for another consumption of the paired flavour using the same task structure as described above. Mice were euthanized 60 min after the end of the consumption period of the retrieval session (no LiCl was given during the retrieval session). For the CGRP neuron stimulation time point (Fig. 2), mice were euthanized 60 min after the onset of CGRP neuron stimulation on the conditioning day and stimulation continued for the full 60 min. For the LS activation time point (Extended Data Fig. 2), mice received an i.p. injection of 3 mg kg–1 CNO 45 min before consumption and were then euthanized 60 min after the LiCl injection on the conditioning day.
Mice were deeply anaesthetized (2 mg kg–1 Euthasol i.p.) and then transcardially perfused with ice-cold PBS and heparin (20 U ml–1; Sigma, H3149) followed by ice-cold 4% PFA in PBS. Brains were then extracted and post-fixed overnight in 4% PFA at 4 °C.
Tissue clearing and immunolabelling
Brain samples were cleared and immunolabelled using an iDISCO+ protocol as previously described28,73. All incubations were performed at room temperature unless otherwise noted.
Clearing
Brain samples were serially dehydrated in increasing concentrations of methanol (Carolina Biological Supply, 874195; 20%, 40%, 60%, 80% and 100% in doubly distilled water (ddH2O); 45 min–1 h each), bleached in 5% hydrogen peroxide (Sigma, H1009) in methanol overnight and then serially rehydrated in decreasing concentrations of methanol (100%, 80%, 60%, 40% and 20% in ddH2O; 45 min–1 h each).
Immunolabelling
Brain samples were washed in 0.2% Triton X-100 (Sigma, T8787) in PBS, followed by 20% DMSO (Fisher Scientific, D128), 0.3 M glycine (Sigma, 410225) and 0.2% Triton X-100 in PBS at 37 °C for 2 days. Brains were then washed in 10% DMSO and 6% NDS (EMD Millipore S30) and 0.2% Triton X-100 in PBS at 37 °C for 2–3 days to block nonspecific antibody binding. Brains were then washed twice for 1 h at 37 °C in 0.2% Tween-20 (Sigma P9416) and 10 mg ml–1 heparin in PBS (PTwH solution) followed by incubation with primary antibody solution (rabbit anti-FOS, 1:1,000; Synaptic Systems, 226008) in 5% DMSO, 3% NDS and PTwH at 37 °C for 7 days. Brains were then washed in PTwH 6 times for increasing durations (10 min, 15 min, 30 min, 1 h, 2 h and overnight) followed by incubation with secondary antibody solution (Alexa Fluor 647 donkey anti-rabbit, 1:200; Abcam, ab150075) in 3% NDS and PTwH at 37 °C for 7 days. Brains were then washed in PTwH 6 times for increasing durations again (10 min, 15 min, 30 min, 1 h, 2 h, overnight).
CGRP neuron stimulation time point samples also received primary (chicken anti-GFP, 1:500; Aves, GFP-1020) and secondary (Alexa Fluor 594 donkey anti-chicken, 1:500; Jackson Immunoresearch, 703-585-155) antibodies for ChR2–YFP immunolabelling during the above protocol.
Final storage and imaging
Brain samples were serially dehydrated in increasing concentrations of methanol (20%, 40%, 60%, 80% and 100% in ddH2O; 45 min–1 h each), then incubated in a 2:1 solution of dichloromethane (Sigma, 270997) and methanol for 3 h then washed twice for 15 min in 100% dichloromethane. Before imaging, brains were stored in the refractive-index-matching solution dibenzyl ether (Sigma, 108014).
FOS light-sheet microscopy imaging
Cleared and immunolabelled brain samples were glued (Loctite, 234796) ventral side-down to a 3D-printed holder and imaged in dibenzyl ether using a dynamic axial-sweeping light-sheet fluorescence microscope74 (Life Canvas Technologies, SmartSPIM) using SmartSPIM acquisition software (https://lifecanvastech.com/products/smartspim; v.5.6). Images were acquired using a ×3.6, 0.2 NA objective with a 3,650 × 3,650 µm field of view onto a 2,048 × 2,048 pixel sCMOS camera (pixel size, 1.78 × 1.78 µm) with a spacing of 2 µm between horizontal planes (nominal axial point spread function, 3.2–4.0 µm). Imaging of the entire brain required 4 × 6 tiling across the horizontal plane and 3,300–3,900 total horizontal planes. Autofluorescence channel images were acquired using 488 nm excitation light at 20% power (maximum output, 150 mW) and 2 ms of exposure time, and FOS channel images were acquired using 639 nm excitation light at 90% power (maximum output, 160 mW) and 2 ms of exposure time. For CGRP neuron stimulation time point samples, a bilateral volume encompassing both PB regions was imaged separately using 561 nm excitation light at 20% power (maximum output, 150 mW) and 2 ms of exposure time to confirm ChR2–YFP expression.
After acquisition, tiled images for the FOS channel were first stitched into a single imaging volume using the TeraStitcher C++ package75 (https://github.com/abria/TeraStitcher; v.1.11.10). These stitching parameters were then directly applied to the tiled autofluorescence channel images, which produced two aligned 3D imaging volumes with the same final dimensions. After tile stitching, striping artefacts were removed from each channel using the Python package Pystripe76 (https://github.com/chunglabmit/pystripe; v.0.2.0).
We registered the final FOS imaging volume to the Allen CCF using the autofluorescence imaging volume as an intermediary73. We first downsampled both imaging volumes by a factor of five for computational efficiency. Autofluorescence→atlas alignment was done by applying an affine transformation to obtain general alignment using only translation, rotation, shearing and scaling, followed by applying a b-spline transformation to account for local nonlinear variability among individual brains. FOS→autofluorescence alignment was done by applying only affine transformations to account for brain movement during imaging and wavelength-dependent aberrations. Alignment transformations were computed using the Elastix C++ package77,78 (https://github.com/SuperElastix/elastix; v.4.8). These transformations enabled us to transform FOS+ cell coordinates first from their native space to the autofluorescence space and then to Allen CCF space. In rare cases when this two-step alignment strategy failed, we directly registered the FOS imaging volume to the Allen CCF by applying both affine and b-spline transformations.
Deep-learning-assisted cell-detection pipeline
We first use standard machine-vision approaches to identify candidate FOS+ cells based on peak intensity and then use a convolutional neural network to remove artefacts. Our pipeline builds on the Python package ClearMap28,79 (https://github.com/ChristophKirst/ClearMap2; v.2.0) for identifying candidate cells and the Python package Cellfinder80 (https://github.com/brainglobe/cellfinder; v.0.4.20) for artefact removal.
Cell detection
ClearMap operates through a series of simple image-processing steps. First, the FOS imaging volume was background-subtracted using a morphological opening (disk size, 21 pixels). Second, potential cell centres were found as local maxima in the background-subtracted imaging volume (structural element shape, 11 pixels). Third, the cell size was determined for each potential cell centre using a watershed algorithm (see below for details on the watershed-detection threshold). Fourth, a final list of candidate cells was generated by removing all potential cells that were smaller than a preset size (size threshold, 350 pixels). We confirmed that our findings were consistent across a wide range of potential size thresholds.
We implemented three changes to the standard ClearMap algorithm. First, we de-noised the FOS imaging volume using a median filter (function, scipy.ndimage.median_filter; size, 3 pixels) before the background-subtraction step. Second, we dynamically adjusted the watershed-detection threshold for each sample based on its fluorescence intensity. This step was important for achieving consistent cell-detection performance despite changes in the background and signal intensity across batches and samples owing to technical variations in clearing, immunolabelling and imaging. In brief, we selected a 1,000 × 1,000 × 200 pixel subvolume at the centre of each sample’s FOS imaging volume. We then median-filtered and background-subtracted this subvolume as described above. We then used sigma clipping (function, astropy.stats.sigma_clipped_stats; sigma=3.0, maxiters=10, cenfunc=‘median’, stdfunc=‘mad_std’) to estimate the mean background signal level for this subvolume, µbg, and set the watershed-detection threshold for each sample to 10*µbg. Third, we removed from further analyses all cell candidates that were located outside the brain, in the anterior olfactory areas or cerebellum (which were often damaged during dissection), or in the ventricles, fibre tracts and grooves following registration to the Allen CCF.
Cell classification
One limitation of the watershed algorithm implemented by ClearMap is that it identifies any high-contrast feature as a candidate cell, including exterior and ventricle brain edges, tissue tears, bubbles and other aberrations. To overcome this limitation, we re-trained the 50-layer ResNet81 implemented in Keras (https://keras.io; v.2.8.0) for TensorFlow (https://www.tensorflow.org; v.2.8.0) from the Python package Cellfinder80 to classify candidate FOS+ cells in our high-resolution light-sheet microscopy imaging dataset as true FOS+ cells or artefacts. This network uses both the autofluorescence and FOS channels during classification because the autofluorescence channel has significant information about high-contrast anatomical features and imaging aberrations. We first manually annotated 2,000 true FOS+ cells and 1,000 artefacts from each of four brain samples across two technical batches using the Cellfinder Napari plugin, which produced a total training dataset of 12,000 examples. We then re-trained the Cellfinder network (which had already been trained on approximately 100,000 examples from serial two-photon images of GFP-labelled neurons) over 100 epochs with a learning rate of 0.0001 and 1,200 examples (10% of the training dataset) held out for validation. Re-training took 4 days 16 min 41 s on a high-performance computing cluster using 1 GPU and 12 CPU threads. We achieved a final validation accuracy of 98.33%. Across all samples in our main brain-wide FOS dataset, our trained convolutional neural network removed 15.99 ± 0.58% (mean ± s.e.m.; range, 2.96–32.71%; n = 99 brains across the experiments in Figs. 1 and 2) of cell candidates from ClearMap as artefacts.
Atlas registration
We used the ClearMap interface with Elastix to transform the coordinates of each true FOS+ cell to the Allen CCF space using the transformations described above. We then used these coordinates to assign each FOS+ cell to an Allen CCF brain region. For each sample, we generated a final data structure that contained the Allen CCF coordinates (x,y,z), size and brain region for each true FOS+ cell.
FOS density maps
We generated 3D maps of FOS+ cell density by applying a Gaussian kernel-density estimate (KDE) (function, scipy.stats.gaussian_kde) in Python to all FOS+ cells across all animals in a given experimental condition (for example, novel flavour + consumption time point). These maps are visualized in Figs. 1h and 2k and Extended Data Figs. 1c–h, 2g and 6e,f.
We first generated a table containing the Allen CCF coordinates (x,y,z) for every FOS+ cell in every animal in an experimental condition. At this stage, we listed each cell twice (once with its original coordinates and once with its ML (z) coordinate flipped to the opposite hemisphere) to pool data from both hemispheres. We then assigned each cell a weight equal to the inverse of the total number of FOS+ cells in that animal to ensure that each animal in an experimental condition would be equally weighted. We then fit a 3D Gaussian KDE for each experimental condition using the scipy.stats.gaussian_kde function and manually set the kernel bandwidth for every experimental condition to be equal at 0.04. We then evaluated this KDE at every voxel in the Allen CCF (excluding voxels outside the brain or in anterior olfactory areas, cerebellum, ventricles, fibre tracts and grooves) to obtain a 3D map of FOS+ density for each condition. Last, we normalized the KDE for each experimental condition by dividing by its sum as well as the voxel volume of the atlas to generate a final 3D map with units of ‘per cent FOS+ cells per mm3’. For the CGRP neuron stimulation time point, we assigned each cell a weight equal to the inverse of the number of FOS+ cells in the PB of that animal, rather than the total number FOS+ cells, to account for variations in ChR2 expression across mice and flavour conditions.
To examine the difference in FOS+ cell density across flavour conditions (for example, in Extended Data Fig. 1d for the consumption time point) we simply subtracted the 3D KDE volumes for the two conditions, novel – familiar, and then plotted coronal sections through this subtracted volume with Allen CCF boundaries overlaid. The colour bar limits for all novel – familiar ΔFOS KDE figures are ±0.5% FOS+ cells per mm3 and for all average FOS KDE, figures are 0–1% FOS+ cells per mm3.
We used the WebGL-based Neuroglancer to generate interactive 3D visualizations of the FOS+ cell density maps for each experimental time point (https://www.brainsharer.org/ng/?id=872). To achieve this, we used the Python package cloudvolume (https://github.com/seung-lab/cloud-volume; v.8.5.1) to convert our 3D KDE volumes from the numpy format to precomputed layers compatible with Neuroglancer and then loaded these layers into the Brainsharer web portal to create the final visualization.
FOS GLMMs
We adopted a GLMM to analyse the brain-wide FOS data (Figs. 1 and 2). This process enabled us to model the contribution of flavour and experimental time point to neural activation in each brain region while also accounting for the overdispersed, discrete nature of the data by using a negative binomial link function, the contribution of batch-to-batch technical variation in tissue clearing, immunolabelling and imaging by modelling this as a random effect, and the potential contribution of sex as a biological variable by modelling this as a fixed effect.
The first step was to determine whether there was any effect of novel or familiar flavour, experimental time point or their interaction for each brain region while controlling the false discovery rate (FDR) across all regions. To accomplish this, we fit a full GLMM for each brain region using the R package glmmTMB69 (https://github.com/glmmTMB/glmmTMB; v.1.1.7) with a negative binomial link function (nbinom2) and the formula:
$$\beginarrayc\rmF\rmO\rmS\,\rmc\rmo\rmu\rmn\rmt\rms \sim \rmN\rmo\rmv\rme\rml\ast \rmT\rmi\rmm\rme\,\rmp\rmo\rmi\rmn\rmt+\rmS\rme\rmx+(1|\rmB\rma\rmt\rmc\rmh)\\ \,\,+\,\rml\rmn(\rmT\rmo\rmt\rma\rml\,\rmc\rmo\rmu\rmn\rmt\rms)\endarray$$
(2)
where FOS counts is the number of FOS+ cells in a brain region, Novel (novel, familiar), Time point (consumption, malaise, retrieval) and Sex (female, male) are fixed-effect categorical variables, (1|Batch) is a random effect for each technical batch (that is, each set of samples that underwent tissue clearing, immunolabelling and light-sheet microscopy imaging together), ln(Total counts) is an offset term for the total number of FOS+ cells in each sample and the asterisk represents all possible main effects and interactions (Fig. 1d). We then fit a reduced GLMM for each brain region, which was the same as the full model (equation (2)) but with the Novel*Time point terms (that is, all main effects and interactions related to flavour novelty and experimental time point) removed. We compared these two models for each brain region using likelihood-ratio χ2-tests and then adjusted the resultant P values using the Benjamini–Krieger–Yekutieli two-step procedure82 to permit a 10% FDR across all brain regions. The 10% FDR threshold used here is standard for brain-wide FOS studies83,84,85. Of the 200 brain regions tested, 130 met this criterion and were included for downstream analyses.
We next specifically tested the effect of flavour novelty on FOS counts separately at each experimental time point for the 130 brain regions that passed the above-defined FDR threshold. To calculate the marginal effect of the flavour condition (novel – familiar) at each time point for each brain region, we used the R package marginaleffects70 (https://github.com/vincentarelbundock/marginaleffects; v.0.12.0) to do post hoc testing of the full GLMM. We used the marginal effect estimates and s.e. values to calculate a P value for each time point with a z test and then corrected for multiple comparisons across time points in each brain region using the Hochberg–Bonferroni procedure71. We also used the ratio of these marginal effect estimates and s.e. values to compute the standardized average difference in FOS+ cell counts across flavour conditions for each brain region at each time point (Z = estimate/s.e.; Fig. 1e–g and Supplementary Table 1). The advantage of this metric is that it explicitly accounts for variation within and across groups, for effects of sex and technical batch, and is independent of brain region size.
When displaying FOS+ cell counts for individual samples (Fig. 1i and Extended Data Figs. 1a,b and 6b), we divided the number of FOS+ cells for each animal or brain region by the total number of FOS+ cells in that animal and by the Allen CCF volume of that brain region, so that the data for each region are presented as ‘per cent FOS+ cells per mm3’. We used the P values from the GLMM marginal effect z tests described above to assess significance.
To examine the brain-wide shift in novel – familiar coding across time points (Fig. 1e and Extended Data Fig. 3a–c), we used the Matlab package Violinplot (https://github.com/bastibe/Violinplot-Matlab) to plot the distribution of standardized average difference Z values at each time point for the brain regions that passed our FDR threshold and then used Kolmogorov–Smirnov tests to assess whether these distributions were significantly different from each other, correcting for multiple comparisons across time points using the Hochberg–Bonferroni procedure71.
To identify structure in novel – familiar coding across time points (Fig. 1f and Extended Data Fig. 3d–n), we used the built-in Matlab linkage function (method=‘ward’, metric=‘chebychev’) to create a hierarchical tree using the standardized average difference Z values at each time point for the brain regions that passed our FDR threshold. The input matrix was 130 brain regions × 3 time points. We then used the built-in Matlab dendrogram function to plot this hierarchical tree and used a distance threshold of 4.7 for clustering.
We followed an analogous procedure to analyse brain-wide FOS data for the CGRP neuron stimulation time point (Fig. 2 and Extended Data Fig. 6). To account for variations in ChR2 expression across mice and flavour conditions, we weighted FOS+ cell counts by the number of FOS+ cells in the PB in these analyses. Specifically, to compare the effects of CGRP neuron stimulation and LiCl-induced malaise on overall FOS levels (Extended Data Fig. 6c), we fit a GLMM for each brain region with the negative binomial link function and the formula:
$$\rmF\rmO\rmS\,\rmc\rmo\rmu\rmn\rmt\rms \sim \rmT\rmi\rmm\rme\,\rmp\rmo\rmi\rmn\rmt+\rmS\rme\rmx+(1|\rmB\rma\rmt\rmc\rmh)+\rml\rmn(\rmP\rmB\,\rmc\rmo\rmu\rmn\rmt\rms)$$
(3)
where FOS counts is the number of FOS+ cells in a brain region, Time point (consumption, malaise, retrieval, CGRP neuron stimulation) and Sex (female, male) are fixed-effect categorical variables, (1|Batch) is a random effect for each technical batch, ln(PB counts) is an offset term for the total number of FOS+ cells in the PB of each sample and the asterisk represents all possible main effects and interactions. For this model, we did not include any terms related to flavour novelty because we were specifically investigating changes in overall FOS levels. We then plotted the coefficient estimate Z values from this GLMM (Extended Data Fig. 6c). To compare the effects of CGRP neuron stimulation and LiCl-induced malaise on FOS levels in the novel versus familiar flavour condition (Extended Data Fig. 6d), we fit a GLMM for each brain region with the formula:
$$\beginarrayc\rmF\rmO\rmS\,\rmc\rmo\rmu\rmn\rmt\rms \sim \rmN\rmo\rmv\rme\rml\ast \rmT\rmi\rmm\rme\,\rmp\rmo\rmi\rmn\rmt+\rmS\rme\rmx+(1|\rmB\rma\rmt\rmc\rmh)\\ \,\,+\,\rml\rmn(\rmP\rmB\,\rmc\rmo\rmu\rmn\rmt\rms)\endarray$$
(4)
where FOS counts is the number of FOS+ cells in a brain region, Novel (novel, familiar), Time point (malaise, CGRP neuron stimulation) and Sex (female, male) are fixed-effect categorical variables, (1|Batch) is a random effect for each technical batch, ln(PB counts) is an offset term for the total number of FOS+ cells in the PB of each sample and the asterisk represents all possible main effects and interactions. For this model, we only included the experimental time points in which CGRP neurons were activated either optogenetically (CGRP neuron stimulation) or pharmacologically (malaise); see Extended Data Fig. 6b for the quantification of PB activation. We then calculated and plotted the marginal effect of the flavour condition (novel – familiar) separately for each time point and brain region (Extended Data Fig. 6d). We also used the marginal effect from the GLMM in equation (4) to calculate the P value for Fig. 2h. When displaying FOS+ cell counts for individual animals (Fig. 2h; CGRP neuron stimulation time point) or brain regions (Fig. 2i,j; malaise and CGRP neuron stimulation time points), we first divided the number of FOS+ cells for each brain region in each animal by the number of FOS+ cells in the PB for that animal and by the Allen CCF volume of that brain region. We then divided this number by the average ratio of total FOS+ cells to PB FOS+ cells across every sample in that time point (malaise or CGRP neuron stimulation), which produced a final measure of FOS+ cells of each animal or region as a percentage of the entire brain’s FOS+ cells weighted by the relative count of PB FOS+ cells for that animal. We obtained consistent results by instead subsampling the animals in the CGRP neuron stimulation time point to have approximately equal FOS+ cell counts in both flavour conditions and then weighting by the total FOS+ cell count of each animal.
FOS correlation analysis
To quantify FOS correlations across individual mice (Extended Data Fig. 4), we considered each experimental time point (consumption, malaise, retrieval) separately. We first assembled the relative FOS+ cell counts (per cent per mm3) for every brain region that passed our FDR threshold and then sorted these regions using the hierarchical tree fit described above, which resulted in a 130 brain region × 24 animal input matrix for each experimental time point. We then used the built-in Matlab corr function to calculate and visualize pairwise correlations among all brain regions (Extended Data Fig. 4a). To estimate the correlation among individual brain regions in the amygdala cluster at each time point (Extended Data Fig. 4b), we averaged pairwise correlations for each brain region with all other amygdala cluster regions in the correlation matrices described above. We tested whether the correlation among individual amygdala cluster brain regions was significant at each time point using Wilcoxon signed-rank tests, correcting for multiple comparisons across time points using the Hochberg–Bonferroni procedure71. To estimate the correlation between the amygdala cluster and every other cluster at each time point (Extended Data Fig. 4c), we averaged the pairwise correlations for all brain region pairs across the two clusters.
LS activation FOS analysis
To compare the effects of LS activation on FOS levels in the LS and the CEA (Extended Data Fig. 2d,e), we calculated P values for these two regions using a GLMM with the formula:
$$\rmF\rmO\rmS\,\rmc\rmo\rmu\rmn\rmt\rms \sim \rmh\rmM3\rmD+\rmS\rme\rmx+(1|\rmB\rma\rmt\rmc\rmh)+\rml\rmn(\rmT\rmo\rmt\rma\rml\,\rmc\rmo\rmu\rmn\rmt\rms)$$
(5)
where FOS counts is the number of FOS+ cells in a brain region, hM3D (hM3D, YFP) and Sex (female, male) are fixed-effect categorical variables, (1|Batch) is a random effect for each technical batch, ln(Total counts) is an offset term for the total number of FOS+ cells in each sample and the asterisk represents all possible main effects and interactions. The P values in the figure are from the hM3D coefficient estimates.
To compare the effects of LS activation of FOS levels across the brain (Extended Data Fig. 2f), we plotted the average FOS level (per cent FOS+ cells per mm3) across all mice in each condition (hM3D, YFP) separately for three groups of brain regions: the amygdala network, the septal complex and other regions. We then used the built-in Matlab aoctool function to fit a one-way analysis of covariance model for these three groups of brain regions and the built-in Matlab multcompare function to test whether the estimated slopes were significantly different, correcting for multiple comparisons using the Bonferroni procedure.
RNAscope FISH
We sliced 18–25-µm-thick sections from perfused brain samples. Multiplex FISH (Fig. 2l–n and Extended Data Fig. 6g,h) was performed using an RNAscope86 Multiplex Fluorescent Assay v2 (ACD 323120) with the following probes: Mm-Calcrl (452281), Mm-Sst-C2 (404631-C2, 1:50 dilution in C1 solution), Mm-Prkcd-C3 (441791-C3, 1:50 dilution in C1 solution) and Mm-Fos-C4 (316921-C4, 1:50 dilution in C1 solution). The Calcrl, Sst, Prkcd and Fos probes were linked to Opal 690, Opal 520, Opal 620 and Opal 570 fluorophores, respectively (Akoya Biosciences). All fluorophores were reconstituted in DMSO according to instructions from the manufacturer and diluted 1:1,200 in tyramide signal amplification buffer included in the RNAscope kit. After in situ hybridization, slides were coverslipped using DAPI Fluoromount-G (Southern Biotech, 0100).
We obtained ×20 z stacks from the CEA with a confocal microscope (Leica TCS SP8 X) using Leica Application Suite X software (https://www.leica-microsystems.com; v.1.8). We then converted these z stacks into maximum-intensity projections for each labelled RNA. We trained a Cellpose87,88 (https://cellpose.readthedocs.io; v.3.0.8) model to identify Fos+ cells in the maximum-intensity projections using eight manually corrected examples, and then used this model to identify Fos+ cells in the remaining images. We then manually classified whether every Fos+ cell identified by Cellpose also expressed Sst, Prkcd and/or Calcrl. We used the full z stacks for each labelled RNA for this process to ensure that potentially overlapping cells were labelled separately. We also imaged each tissue section with a slide scanner (Hamamatsu, Nanozoomer S60) using NDP Scan software (https://www.hamamatsu.com; v.3.4) and then registered them to the Allen CCF using ABBA89 (https://abba-documentation.readthedocs.io; v.0.8.0). To remove Fos+ cells outside the CEA from analysis, we manually aligned the confocal and slide scanner images using the Fos channel in each image as a guide and then manually transferred the CEA boundaries to the confocal images. Manual cell classifications and basic image processing tasks were performed using Fiji72 (https://fiji.sc; v.1.52).
Slice electrophysiology
All slice electrophysiology recordings (Fig. 2c) were performed on brain slices collected at approximately the same time of day. Calcacre mice were first injected with 400 nl of AAV5-EF1a-DIO-hChR2(H134R)-eYFP (titre, 1.2 × 1013 GC per ml; manufacturer, PNI Viral Core Facility) bilaterally into the PB 6 weeks or more before the experiment. On the day of the recordings, mice were anaesthetized with isoflurane and decapitated to remove the brain. After extraction, the brain was immersed in ice-cold NMDG ACSF (92 mM NMDG, 2.5 mM KCl, 1.25 mM NaH2PO4, 30 mM NaHCO3, 20 mM HEPES, 25 mM glucose, 2 mM thiourea, 5 mM sodium ascorbate, 3 mM sodium pyruvate, 0.5 mM CaCl2·4H2O, 10 mM MgSO4·7H2O and 12 mM N-acetyl-l-cysteine; pH adjusted to 7.3–7.4) for 2 min. Afterwards, coronal slices (300 μm) were sectioned using a vibratome (Leica VT1200s) and then incubated in NMDG ACSF at 34 °C for approximately 15 min. Slices were then transferred to a holding solution of HEPES ACSF (92 mM NaCl, 2.5 mM KCl, 1.25 mM NaH2PO4, 30 mM NaHCO3, 20 mM HEPES, 25 mM glucose, 2 mM thiourea, 5 mM sodium ascorbate, 3 mM sodium pyruvate, 2 mM CaCl2·4H2O, 2 mM MgSO4·7H2O and 12 mM N-acetyl-l-cysteine, bubbled at room temperature with 95% O2 and 5% CO2) for at least 60 min until recordings were performed.
Whole-cell recordings were performed using a Molecular Devices Multiclamp 700B amplifier and Digidata 1440A low-noise data acquisition system. Recording pipettes had a resistance of 4–7 MΩ and were filled with an internal solution containing 120 mM potassium gluconate, 0.2 mM EGTA, 10 mM HEPES, 5 mM NaCl, 1 mM MgCl2, 2 mM Mg-ATP and 0.3 mM NA-GTP, with the pH adjusted to 7.2 with KOH and the osmolarity adjusted to approximately 289 mmol kg−1 with sucrose. During recordings, slices were perfused with a recording ACSF solution (100 μM picrotoxin, 120 mM NaCl, 3.5 mM KCl, 1.25 mM NaH2PO4, 26 mM NaHCO3, 1.3 mM MgCl2, 2 mM CaCl2 and 11 mM D-(+)-glucose) with 1 µM TTX and 100 µM 4AP that was continuously bubbled with 95% O2 and 5% CO2. Infrared differential interference contrast-enhanced visual guidance was used to select neurons that were 3–4 cell layers below the surface of the slices. All CEAc and CEAl recordings were made for which eYFP-expressing CGRP neuron axons were visible, and all CEAm recordings were made more medial to this location using the Allen CCF as a guide The recording solution was delivered to slices through superfusion driven by a peristaltic pump (flow rate of 4–5 ml min–1) and was held at room temperature. The neurons were held at −70 mV (voltage clamp), and the pipette series resistance was monitored throughout the experiments by hyperpolarizing steps of 1 mV with each sweep. If the series resistance changed by >20% during the recording, the data were discarded. Whole-cell currents were low-pass filtered at 4 kHz online and digitized and stored at 10 kHz using Clampex software (https://www.moleculardevices.com; v.10.7). Currents were then filtered at 1 kHz offline before analysis. During the experiment, we measured light-evoked oEPSCs every 30 s with light stimulation (0.074 mW mm–2) delivered for a duration of 5 ms. Twenty repetitions of the stimulation protocol were recorded per cell after stable oEPSCs were achieved. All experiments were completed within 4 h after slices were made to maximize cell viability and consistency.
Traces from example CEAc, CEAl and CEAm neurons are shown in Fig. 2c. Across all monosynaptically connected neurons, the amplitude of CGRP neuron→CEAc or CEAl oEPSCs was –327.0 ± 136.3 pA (mean ± s.e.m.; n = 5 out of 5 connected neurons from 3 mice) and of CGRP neuron→CEAm oEPSCs was –15.6 ± 6.4 pA (mean ± s.e.m.; n = 4 out of 5 connected neurons from 3 mice).
Two-reward CFA paradigm
For Neuropixels recording experiments (Figs. 3 and 4), we used a two-reward CFA paradigm (rather than the one-reward paradigm used for the FOS experiments). This enabled us to compare neural correlates of the novel-flavour reward, which was delivered from one port, with responses related to a control port that delivered water. Experiments were performed in an operant box (Med Associates) using MedPC software (https://med-associates.com/product/med-pc; v.IV). The operant box was situated in a sound-attenuating chamber and equipped with a single speaker and with two custom 3D-printed nosepoke ports with built-in lights and infrared beam breaks in each port. The nosepoke ports each contained a reward delivery tube that was calibrated to deliver 20 µl of reward through a solenoid valve (Lee Technologies LHDA2433315H). The ports were located on either side of the same wall of the operant box.
Basic task structure and training
Mice first underwent a basic task procedure to train them to drink from two reward ports in a cued manner (Extended Data Fig. 8a). Each behavioural session had the following structure. First, the mouse was allowed to acclimate to the chamber for 5 min. Then, the consumption period began and rewards were made available in a trial-based manner that forced mice to drink from the two ports at a relatively equal rate throughout the session. At the beginning of each trial, one port was randomly selected and made available to the mouse. This was cued through the port light turning on and a distinct tone (2.5 kHz or 7.5 kHz; 70 dB) playing. The mouse had 10 s to enter the port and receive a reward, which was detected by the infrared beam break. The end of the 10 s reward availability period or entering either port ended the trial; at this point, the cueing light and sound were terminated and an inter-trial interval was initiated (randomly selected from a uniform distribution of 10–20 s; 1 s step size). At the end of the inter-trial interval, a new trial would begin as long as the mouse had not entered either reward port in the previous 2 s; otherwise, the next trial was delayed until this criterion was satisfied. To ensure that mice drank from the two ports at a relatively equal rate, we required that each consecutive block of ten successful rewarded trials must be evenly split between the two ports. The consumption period ended when 1.2 ml (60 rewards) was consumed. Mice learned to perform this task nearly perfectly (<5 unsuccessful trials per session) in approximately 1 week. During initial training, both ports delivered water. After mice were trained in the task, they underwent the chronic Neuropixels surgery described above and were allowed to recover for at least 5 days. Mice were then returned to daily training, with the addition of a delay period following the consumption period. At the beginning of the delay period (immediately after the final reward), mice were transferred to a distinct second context, which was triangular in shape with smooth white acrylic walls. Mice remained in this second context for at least 30 min before returning to the home cage. Mice were acclimated to the delay period and second context, and to tethering of the Neuropixels assembly and optical fibre, for at least 4 days before proceeding to the conditioning experiments. Variations to this basic task structure for specific experiments that were used following training and surgery are described below.
CGRP neuron cell-body stimulation conditioning experiment
For these experiments (Figs. 3 and 4), on the conditioning day, the same behavioural session structure was followed, but now one port delivered water and the other port delivered sweetened grape Kool-Aid (0.06% grape and 0.3% saccharin sodium salt). The novel-flavour port was counterbalanced across mice. Mice (n = 8) were run in two separate groups separated by approximately 2 months. After the 30-min delay period in the second context, the CGRP neuron stimulation period began and lasted for 45 min in the same second context. Blue light was generated using a 447 nm laser and delivered to the animal using a 200 µm diameter patch cable. Light power was calibrated to approximately 10 mW at the patch cable tip. The laser was controlled with a Pulse Pal signal generator programmed to deliver 5 ms laser pulses at 10 Hz. For the duration of the CGRP neuron stimulation period, the laser was pulsed for 3 s bouts and then off for random intervals chosen from an exponential distribution (minimum, 1 s; mean, 3 s; maximum, 7.8 s). Following the 45-min neuron stimulation period, mice were returned to the home cage overnight. The following day, mice underwent a forced retrieval session that followed the same trial structure as previous sessions, and the flavour and water were delivered from the same ports as on the conditioning day.
CGRPCEA projection stimulation conditioning experiment
These experiments (Fig. 4e and Extended Data Figs. 9a–e and 10c–e) were performed using the same strategy as the cell-body stimulation experiment described above in a separate group of mice (n = 8) with the following changes. Green light was generated using a 532-nm laser and calibrated to approximately 3 mW at the patch cable tip. To minimize potential photoelectric artefacts in our recordings, we positioned the tip of the optical fibre 1.5 mm from the Neuropixels shanks in the CEA for an irradiance at the electrodes of approximately 0.1 mW mm–2 and reduced the laser pulse width to 2 ms. These stimulation parameters were sufficient to activate the ultrasensitive opsin ChRmine64.
LiCl conditioning experiment
This experiment (Fig. 3m–r and Extended Data Figs. 9f,g and 10f,g) was performed in a separate group of mice (n = 4 control mice and 4 CGRP neuron ablation mice). It followed the same structure as above except that LiCl (125 mg kg–1 i.p.) was injected to induce gastrointestinal malaise after 30 min in the second context (delay period) instead of CGRP neuron stimulation. For behavioural validation of CGRP neuron ablation (Extended Data Fig. 9g), we included five mice that were not used for recordings but either received taCasp3 virus (n = 2 ablation mice) or did not undergo surgery (n = 3 control mice).
Familiarization experiment
For these experiments (Fig. 4f and Extended Data Fig. 10h–k), a different flavour, sweetened cherry Kool-Aid (0.06% cherry and 0.3% saccharin sodium salt), was used. The experiment followed the same basic task structure as during initial training for the two-reward CFA paradigm, without any aversive conditioning experiences (LiCl injection or CGRP neuron stimulation). The experiment was run on three consecutive days. On the first day (novel day), one port contained the novel sweetened cherry Kool-Aid flavour and the other port contained water. On the second day, the port locations were switched. On the third day (familiar day), the port locations were switched again (that is, back to the initial locations from novel day).
CGRP neuron stimulation and LiCl injection experiment
This experiment (Extended Data Fig. 9h–j) did not involve rewards or use the task structure described above. First, mice were allowed to acclimate to the operant box recording chamber for 5 min. Then, CGRP neurons were photostimulated using the same protocol as for the acute Neuropixels recording experiment described below. In brief, mice received 1 s of 10 Hz CGRP neuron stimulation followed by a 9-s inter-trial interval for a total of 10 min per 60 trains. After a 5-min recovery period, LiCl (125 mg kg–1 i.p.) was then injected to induce gastrointestinal malaise. Mice remained in the recording chamber for at least 15 min before being returned to the home cage.
We used 27 mice for chronic Neuropixels recording experiments (Extended Data Fig. 7c). Animals 1–4 were used for the CGRP neuron cell-body stimulation conditioning experiment. Animals 5–8 were used for multiple experiments with the following timeline: (1) CGRP neuron cell-body stimulation conditioning experiment, (2) familiarization experiment, (3) CGRP neuron stimulation→LiCl injection experiment. Animals 9–12 were control mice used for the LiCl conditioning experiment. Animals 13–16 were CGRP neuron ablation mice used for the LiCl conditioning experiment. Animals 17–24 were used for the CGRPCEA projection stimulation conditioning experiment. Animals 25–27 were used for the familiarization experiment.
Chronic Neuropixels recordings
Before beginning experiments, we performed a series of test recordings for each mouse to identify the recording sites along each Neuropixels shank that were located in the CEA. We recorded for approximately 10 min from the bottom 384 recording sites of each shank. We found that recording sites properly targeted to the CEA could be identified by a dense band of single-unit and multiunit activity (see Extended Data Fig. 7b for examples). This process enabled us to design custom Imec readout tables (recording site maps; https://billkarsh.github.io/SpikeGLX/help/imroTables) for each mouse that maximized the yield of CEA neurons during subsequent experiments.
Acquisition
We recorded 384 Neuropixels channels per session at 30 kHz using National Instruments PXI hardware and SpikeGLX software (https://billkarsh.github.io/SpikeGLX; v.3.0). Experimental TTL signals (representing reward cues, port entries, reward deliveries and laser pulses) were recorded simultaneously using the same system.
Preprocessing
We used CatGT (https://billkarsh.github.io/SpikeGLX; v.3.3) to apply global common average referencing (-gblcar) and to isolate the action potential frequency band (-apfilter=butter,12,300,9000). We then used the International Brain Laboratory’s (IBL) Python Kilosort 2.5 implementation90,91 (https://github.com/int-brain-lab/pykilosort) to correct for sample drift along the length of the probe, to detect and remove failing channels and to apply a spatial de-striping filter.
Spike sorting and curation
We also used the IBL’s Python Kilosort 2.5 implementation91,92,93 (https://github.com/int-brain-lab/pykilosort) for spike sorting. We then used the Python package Phy (https://github.com/cortex-lab/phy; v.2.0) for interactive visualization and manual curation of spike sorting output. We used Phy to classify clusters from Kilosort as single-unit (good) or multiunit (MUA) clusters and to remove noise. We relied on waveform shape, autocorrelogram shape, spike amplitude time course and cluster separation for classification. Following curation with Phy, we used Matlab to compute three statistics for each cluster. First, we calculated the median amplitude of each cluster using the template scaling amplitudes from Kilosort (stored in amplitudes.npy), converted from bits to µV using the gain factor 2.34375. These template-scaling amplitudes were calculated after whitening the data and were significantly smaller than the equivalent raw spike amplitudes (µV). Second, we calculated the estimated false-positive rate of each cluster based on 2 ms refractory period violations94. Third, we calculated the firing rate (sp s–1) of each cluster. For experiments with multiple epochs (for example, consumption and CGRP neuron stimulation in Fig. 3), we calculated these metrics separately for each epoch and then kept the minimum median template-scaling amplitude, the maximum estimated false-positive rate and the minimum firing rate across epochs for each cluster. We removed clusters with median template-scaling amplitude values of <20 µV, estimated false-positive rates of >100% or firing rates <0.05 sp s–1 as noise. We classified the remaining clusters that were labelled ‘good’ in Phy and had an estimated false-positive rate <10% as single units and the rest as multiunits. We included both single-unit and multiunit clusters throughout the article. We confirmed that our findings were consistent across a range of amplitude thresholds and for only single-unit clusters. Finally, we binned the spikes for each included neuron into 10 ms bins for downstream analyses.
Atlas alignment
All probes were coated in CellTracker CM-DiI (Invitrogen C7000) before implantation. After the conclusion of experiments, animals were euthanized and the brains cleared with an abbreviated version of the iDISCO+ protocol described above without immunostaining. The cleared brains were then imaged on a light-sheet microscope (LaVision Ultramicroscope II) using LaVision BioTec ImSpector software (https://www.lavisionbiotec.com; v.7.0). Images were acquired using 488 nm (autofluorescence channel) and 561 nm (CM-DiI channel) excitation light with 10 µm between horizontal planes and 5.91 µm per pixel resolution. Atlas alignment then followed the IBL’s pipeline95 (https://github.com/int-brain-lab/iblapps/wiki). The autofluorescence volume was registered to the atlas using the Python package Brainreg96 (https://github.com/brainglobe/brainreg; v.0.4.0), and these transformations were then directly applied to the CM-DiI volume. Individual Neuropixels shank trajectories were then manually annotated in the atlas-registered CM-DiI volume using the Brainreg-segment Napari module (https://github.com/brainglobe/brainreg-segment; v.0.2.16). Every recording site was then localized to an Allen CCF coordinate (x,y,z) and brain region using the IBL’s alignment GUI. The alignment process was performed separately for each Neuropixels probe shank. For all analyses, we only included neurons from recording sites that were localized to the CEA.
Multiday recordings
We made two changes to our processing pipeline to track units across two recording sessions (for example, the conditioning and retrieval sessions in Fig. 4b–e and Extended Data Fig. 10a–g, and the novel and familiar sessions in Fig. 4f and Extended Data Fig. 10h–k). First, we concatenated the two recording sessions using CatGT after applying global common average referencing and isolating the action potential frequency band. We then performed spike sorting using the IBL’s Python Kilosort 2.5 implementation as described above. Second, during manual curation in Phy, we removed clusters with obvious discontinuities or irregularities across days as noise. We then evaluated our quality metrics in Matlab as described above. To improve Kilosort’s ability to track units in multiday recordings, pairs of sessions were separated by only 1 day (conditioning and retrieval) or 2 days (novel and familiar). We then used the Matlab package Spikes (https://github.com/cortex-lab/spikes) to extract spike waveforms and to generate autocorrelograms for each recording session (Fig. 4a).
Chronic Neuropixels analysis
For experiments involving reward delivery, we classified all neurons as novel-flavour-preferring, water-preferring or nonselective (for example, in the heatmaps in Figs. 3d and 4b). We first z scored each neuron’s 10-ms binned spiking across the entire consumption period. We then calculated the average neural activity in the 10 s following every reward delivery, which was triggered by the animal entering the port. We distinguished nonselective neurons from reward-selective neurons using a Wilcoxon rank-sum test on these average responses for novel flavour and water trials while permitting a 5% FDR across all recorded neurons (pooled across mice within each experiment) with the Benjamini–Krieger–Yekutieli procedure82. We then classified reward-selective neurons as novel-flavour-preferring if their average neural activity in the 10 s following reward delivery was greater for novel-flavour trials than for water trials; the remaining neurons were classified as water-preferring. When tracking neurons across days and examining the change in their flavour response or selectivity (Fig. 4 and Extended Data Fig. 10), we classified neurons as novel-flavour-preferring or water-preferring based on their responses during consumption on the first day (novel or conditioning) only. We defined ‘novel flavour response’ as the average neural activity in the 10 s following novel flavour delivery and ‘novel flavour selectivity’ as the average neural activity in the 10 s following novel flavour delivery minus the average neural activity in the 10 s following water delivery. When correlating CGRP response to the change in flavour response and selectivity across days (Fig. 4d,e), we subtracted the baseline activity (–10 s to –5 s before reward delivery) from each trial when calculating reward responses to account for potential changes in baseline firing rate across days.
We generated peri-event time histograms (PETHs) surrounding reward delivery (–5 s to +10 s) using the z scored traces calculated above and averaging across all novel-flavour or water reward deliveries. When generating reward PETHs for the second day of multiday recordings (retrieval day, familiar day), we used the mean and s.d. calculated while z scoring the consumption period trace for the first day to ensure that units were comparable across days. We generated PETHs surrounding CGRP neuron stimulation or CGRPCEA projection stimulation trains (–1 s to +4 s) using the mean and s.d. calculated while z scoring that day’s consumption period trace, and then subtracted the baseline (–1 s to 0 s) mean of each neuron’s PETH. For plotting reward delivery PETHs as heatmaps and traces, we convolved each neuron’s PETH with a causal half-Gaussian filter with 100-ms s.d.
We generated delay→CGRP neuron stimulation PETHs (Figs. 3d,e and 4b, c), delay→CGRPCEA projection stimulation PETHs (Extended Data Figs. 9b,c and 10c) and delay→LiCl PETHs (Fig. 3n,q) using the 10-ms binned spiking from 30 min before to 45 min after the onset of CGRP neuron stimulation or CGRPCEA projection stimulation LiCl injection. We then z scored these traces using the mean and s.d. from the final 20 min of the delay period and downsampled the final normalized PETHs to 1 sample per min for plotting. We defined ‘CGRP response’ as the average neural activity across the entire 45-min CGRP neuron stimulation or CGRPCEA projection stimulation period in the PETHs described above (Figs. 3e and 4c–e and Extended Data Fig. 9c) and ‘LiCl response’ as the average neural activity from 5–15 min after LiCl injection in the PETHs described above (Fig. 3n,q). We generated whole-experiment PETHs (Fig. 3e,n,q and Extended Data Fig. 9c) by concatenating the 10-ms binned spiking from the final 15-min of the consumption period, the first 30-min of the delay period and the first 45-min of the CGRP neuron stimulation period or CGRPCEA projection stimulation period or LiCl-induced malaise period. We then z scored these traces using the mean and s.d. of the delay period calculated above and downsampled the final normalized PETHs to 1 sample per min for plotting. When comparing the CGRP response (Fig. 3e,f and Extended Data Fig. 9c,d) or LiCl response (Fig. 3n,q) of novel flavour-preferring, water-preferring and nonselective neurons, we corrected for multiple comparisons using the Hochberg–Bonferroni procedure71.
For the CGRP neuron stimulation→LiCl injection experiment (Extended Data Fig. 9h–j), we first classified each neuron’s CGRP response type using the strategy from the acute recording experiment described below. We first z scored each neuron’s 10-ms binned spiking across the entire 10-min CGRP neuron stimulation period and generated baseline-subtracted PETHs surrounding CGRP neuron stimulation trains (–1 s to +2 s). We then applied the Gaussian mixture model (GMM) fit on the acute recording data (Extended Data Fig. 5c) to these PETHs to determine each neuron’s CGRP response type and to identify CGRP-activated neurons (Extended Data Fig. 9i). We then generated LiCl injection PETHs using the 10-ms binned spiking from 5 min before to 15 min after the LiCl i.p. injection. We then z scored these traces using the mean and s.d. from the 5-min acclimatization period before CGRP neuron stimulation began and baseline-subtracted the normalized PETHs using the mean activity during the period between CGRP neuron stimulation and LiCl i.p. injection (–5 min to –1 min before LiCl). We downsampled the final normalized PETHs to 1 sample per min for plotting and then plotted average LiCl injection PETHs separately for CGRP-activated neurons and for other neurons (Extended Data Fig. 9j). We defined ‘LiCl response’ as the average neural activity from 5 to 15 min after LiCl injection in the PETHs described above (Extended Data Fig. 9j).
Decoding analysis
To identify reactivations of neural flavour representations (Fig. 3g–i,o,r), we trained a multinomial logistic regression decoder using the LogisticRegression class from the Python package scikit-learn97 (https://scikit-learn.org; v.1.0.2) separately for each mouse using all CEA neurons during the consumption period on the conditioning day and then evaluated this decoder across the entire conditioning session. We included all mice with >75 simultaneously recorded CEA neurons for the decoding analysis (6 out of 8 CGRP neuron stimulation mice in Fig. 4h–i; 8 out of 8 LiCl injection mice in Fig. 4o,r). The decoder was trained to discriminate behavioural states during the consumption period across three categories: novel-flavour consumption (represented by normalized spike counts within 1 s after novel-flavour delivery; normalization procedure described below); water consumption (normalized spike counts within 1 s after water delivery); and baseline (normalized spike counts within 1 s before each cue onset). We trained the decoder using Lasso regularization and tested λ from 10–4 to 104 (nine logarithmically spaced values; Extended Data Fig. 8c). We chose λ = 1 for the final decoder because it provided a high level of regularization without decreasing log-likelihood in the held-out data during tenfold cross-validation. Cross-validation also verified that the decoder correctly identified the animal’s behavioural state (novel flavour, water, baseline) during the consumption period (Extended Data Fig. 8e).
We normalized spike counts separately for each neuron and task period. For the consumption period (decoder training), we calculated each neuron’s average spike counts within 1 s before cue onsets and subtracted it from the binned spike counts. We then divided these baseline-subtracted spike counts by the s.d. during the consumption period. For the delay and CGRP neuron stimulation periods (decoder evaluation), we z scored each neuron’s spike counts based on its mean and s.d. during the delay period.
We then evaluated the decoder using neural activities across the session. We first used a 1-s sliding window with 150 ms steps to bin the spikes across the start to the end of the session. After obtaining the n neuron × n time bin normalized spike counts, we used the decoder to classify the behavioural state for each time bin based on the corresponding normalized spike counts. To visualize the decoder’s performance (Fig. 3g), we plotted the decoder output along with the simultaneously recorded neural activity (spike trains convolved with a causal half-Gaussian filter with 25 ms s.d.) grouped by novel flavour or water preference, defined using criteria described above. For clarity, we only display a subset of recorded neurons (50 out of 90) in the example raster in Fig. 3g: all novel flavour-preferring and water-preferring neurons, along with 15 randomly chosen nonselective neurons. We focused our analysis on the comparison between the decoded probabilities for the novel flavour and water categories (Fig. 3g, top, and Fig. 3h). We detected peaks (local maxima with values > 0.5) of the decoder output as reactivation events, and counted the number of novel flavour and water reactivations with a sliding window of 1 min width and 30 s step size (Fig. 3i,o,r).
PCA
We used the built-in Matlab pca function (Fig. 3j). We began by taking the novel flavour delivery, water delivery and CGRP neuron stimulation PETHs described above, all convolved with a causal half-Gaussian filter with 100 ms s.d., for all reward-selective neurons (n = 494 pooled across all mice). We baseline-subtracted each neuron’s reward-delivery PETHs using the mean baseline activity (–5 s to –4 s before reward delivery) averaged across both reward types and then peak-normalized each neuron’s PETHs using the maximum absolute value across both reward types. We baseline-subtracted each neuron’s CGRP neuron stimulation PETH using the mean baseline activity (–1 s to 0 s) before laser onset and then peak-normalized each neuron’s PETH using the maximum absolute value of the CGRP neuron stimulation PETH. To identify PC loadings and to calculate the variance explained, we concatenated each neuron’s novel flavour and water reward PETHs (0 s to +5 s from reward delivery), which produced a final input matrix that was 494 neurons × 1,000 time bins for PCA. We centred every column of this matrix before performing PCA along the neuron dimension.
To plot neural trajectories during novel flavour consumption and water consumption (Fig. 3k), we used the PC loadings defined above to calculate PC1 and PC2 values for the entire population at each time bin of the PETH (–5 s to +10 s from reward delivery). We followed an analogous procedure to plot neural trajectories during CGRP neuron stimulation. In both cases, we centred every column (time bin).
We repeated this entire analysis using only the neurons from individual mice (Fig. 3l) or using all neurons from a separate group of mice that received CGRPCEA projection stimulation (Extended Data Fig. 9e).
When analysing changes in PC trajectories across days (retrieval in Extended Data Fig. 10b and familiarization in Extended Data Fig. 10k), we followed basically the same procedure as above. For these analyses, we identified PC loadings using only the first day’s (conditioning day or novel day) reward delivery PETHs and then used this set of PC loadings when plotting the PC trajectories for both days. Similarly, we baseline-subtracted and peak-normalized the second day’s PETHs using values that were calculated using only the first day’s PETHs. These measures ensured that PC trajectories were comparable across multiday recordings.
Acute Neuropixels recordings
Surgery
Calcacre mice were first injected with 400 nl of AAV5-EF1a-DIO-hChR2(H134R)-eYFP (titre, 1.2 × 1013 GC per ml; manufacturer, PNI Viral Core Facility) into the left PB. Four weeks later, in a second surgery, an optical fibre (300 µm diameter core, 0.39 NA) was implanted at a –30° angle above the injection site (see the section ‘Viral injections and optical fibre implantations’ for details), a steel headbar (approximately 1 g) was implanted at AP +1.25 mm, and a ground pin (Newark Electronics) was placed above the right hemisphere of the cerebellum. Finally, a 2 mm2 recording chamber was built with Dentin (Parkell S301) above the left hemisphere extending from AP 0 mm to AP –2.0 mm and ML –2.5 mm to ML –3.5 mm. The exposed skull was removed and the brain covered with a silicone elastomer (Kwik-Cast, World Precision Instruments).
Recordings
Mice were habituated to head fixation (3× 30-min sessions). On the recording day, mice were head-fixed in a custom-built recording rig91, the silicone elastomer removed and the exposed brain briefly cleaned with normal saline. Neuropixels 1.0 probes98 had a soldered connection to short ground to external reference, which was also connected to the mouse’s ground pin during recording. Immediately before the start of the recording session, the probe was coated in CellTracker CM-DiI (Invitrogen C7000). A single probe was lowered (approximately 10 μm s–1) with an ultraprecise micromanipulator (Sensapex µMp) into the amygdala. To prevent drying, the exposed brain and probe shank were covered with a viscous silicone polymer (Dow-Sil, Corning). After reaching the targeted location, the brain tissue was allowed to settle for 15 min before starting the recording. Recordings were acquired at 30 kHz using National Instruments PXI hardware and SpikeGLX software (https://billkarsh.github.io/SpikeGLX; v.3.3). Six recording locations were targeted in each animal. During the recording, mice received 1 s CGRP neuron stimulation followed by a 9 s inter-trial interval for a total of 10 min. Blue light was generated using a 447 nm laser and delivered to the animal using a 200 µm diameter core patch cable. Light power was calibrated to approximately 8 mW at the fibre tip. The laser was controlled with a Pulse Pal signal generator (Sanworks, 1102) programmed to deliver 5 ms laser pulses at 10 Hz.
Analysis
Spike sorting, manual curation and atlas alignment were performed as described above for chronic Neuropixels recordings. To precisely map our electrophysiological data to the anatomical subdivisions of the amygdala in this experiment, we used the IBL’s electrophysiology alignment GUI (https://github.com/int-brain-lab/iblapps/wiki) to manually tune the alignment of each recording to the Allen CCF using electrophysiological landmarks. We then z scored each neuron’s 10-ms binned spiking across the entire 10-min CGRP neuron stimulation period. We then generated PETHs surrounding CGRP neuron stimulation trains (–1 s to +2 s), and subtracted the baseline (–1 s to 0 s) mean of each neuron’s PETH (Extended Data Fig. 5c). We then used the built-in Matlab fitgmdist function (CovarianceType=‘diagonal’, RegularizationValue=1e-5, SharedCovariance=false, Replicates=100) to fit a GMM with four response types to this dataset. Specifically, we used the time bins during stimulation (0 s to +1 s) from all amygdala neurons to generate a 3,524 neuron × 100 time bin input matrix for GMM fitting. This GMM revealed two CGRP neuron stimulation-activated response types (shown in green in Extended Data Fig. 5c, left), one CGRP neuron stimulation-inhibited response type (shown in purple) and one unmodulated response type (shown in grey). We then plotted average CGRP neuron stimulation PETHs for each response type separately (Extended Data Fig. 5c, right) and analysed the distribution of CGRP neuron stimulation-activated neurons across amygdala regions (Extended Data Fig. 5d,e).
GCaMP fibre photometry
We recorded CGRP neuron GCaMP signals (Fig. 2b) with standard fibre photometry acquisition hardware99,100. Excitation light was supplied at two wavelengths—isosbestic 405 nm (intensity at patch cable tip, 5–10 µW; sinusoidal frequency modulation, 531 Hz) and activity-dependent 488 nm (intensity, 15–25 µW; sinusoidal frequency modulation, 211 Hz)—using an LED driver (Thorlabs, DC4104) coupled to a low-autofluorescence patch cable (Doric, MFP_400/430/1100-0.57_ 0.45m_FCM-MF2.5_LAF). Emission light was collected through the same patch cable using a low-light photoreceiver (Newport Femtowatt 215) and then digitized using a base processor (Tucker Davis Technologies, RZ5D) that served both as an analog-to-digital converter and a lock-in amplifier. We then low-pass filtered (2 Hz) and downsampled (100 Hz) the isosbestic 405 nm and activity-dependent 488 nm signals. To control for photobleaching, we applied a linear fit to the isosbestic signal to align it to the activity-dependent signal and then subtracted this fitted isosbestic signal from the activity-dependent signal to obtain the final de-bleached activity-dependent GCaMP signal.
To assess changes in CGRP neuron activity due to LiCl-induced malaise, we generated PETHs using the 10 min before and 30 min after LiCl injection (125 mg kg–1 i.p.). We z scored the entire PETH for each mouse using the mean and s.d. of the full 10 min before LiCl injection and then downsampled (1 Hz) and smoothed (1-min centred moving average) the final normalized PETHs for plotting.
AKAR2 fibre photometry
We recorded CEA AKAR2 signals (Fig. 5) using the same acquisition system described above for GCaMP recordings. We low-pass filtered (1 Hz) and downsampled (100 Hz) both the 405 nm and 488 nm signals. Because AKAR2 is a ratiometric indicator of PKA activity47, we divided the 488 nm signal by the 405 nm signal to obtain the final de-bleached activity-dependent PKA signal.
This experiment was run on four consecutive days using a version of the two-reward familiarization paradigm described above (Fig. 5b). On day 0 (water day), both ports contained water. On day 1 (novel day), one port (port A) contained the novel sweetened grape Kool-Aid flavour and the other port (port B) contained water. On days 2 and 3 (familiar days), the same ports contained the same sweetened grape Kool-Aid flavour and water as on day 1. The flavour port was counterbalanced across mice.
We generated PETHs surrounding reward delivery (–10 s to +30 s) using the final PKA signal described above. We z scored these PETHs separately for each mouse and day using the following procedure. First, we centred each individual reward event PETH by subtracting the mean baseline signal (–5 to –1 s before reward delivery). Then we concatenated this baseline epoch from all individual reward events from both ports for that mouse per day and calculated the s.d. of this vector. Then we divided each individual reward event PETH for that mouse per day by the calculated s.d. Last, we averaged across all rewards of each type (port A, port B) for that mouse per day (Fig. 5d,e).
To quantify PKA activity for statistical analysis, we calculated the average response from +5 to +15 s after reward delivery for each mouse per day per port using the final averaged PETHs calculated above. We then fit a GLMM using the R package glmmTMB69 (https://github.com/glmmTMB/glmmTMB; v.1.1.7) with a Gaussian link function and the formula:
$$\rmP\rmK\rmA\,\rma\rmc\rmt\rmi\rmv\rmi\rmt\rmy \sim \rmP\rmo\rmr\rmt\ast \rmD\rma\rmy+(1|\rmS\rmu\rmb\rmj\rme\rmc\rmt)$$
(6)
where PKA activity is as described above, Port (port A, port B) and Day (day 0, day 1, day 2, day 3) are fixed-effect categorical variables, (1|Subject) is a random effect for each mouse and the asterisk represents the main effects and interactions. Using the coefficients from this GLMM, we used the R package marginaleffects70 (https://github.com/vincentarelbundock/marginaleffects; v.0.12.0) to calculate the marginal effect of port (port A – port B) on each day. We used the marginal effect estimates and s.e. values to calculate a P value for each day with a z test, and then corrected for multiple comparisons across days using the Hochberg–Bonferroni procedure71 (Fig. 5f).
The recording location for each animal was determined using the same procedure as for our Neuropixels recordings described above. In brief, we manually annotated the tip of the optical fibre lesion for each animal in the light-sheet microscopy imaging data after registration to the Allen CCF and visualized these recording locations on the Allen CCF (Fig. 5g) as 100 µm circles centred on the fibre tip location for each animal.
Data exclusions
We excluded data in three instances. First, we excluded one mouse with no hM3D(Gq)–mCherry expression and one mouse with no YFP expression in the LS from Extended Data Fig. 2b. Second, we excluded one mouse with no eOPN3–mScarlet expression in the CEA from Fig. 2f. Third, we excluded confocal images with poor FISH labelling (defined as <35 total Fos+ CEA cells, or <25% of Fos+ cells also Sst+, or <25% of Fos+ cells also Prkcd+, or <25% of Fos+ cells also Calcrl+) from Fig. 2m,n (22 out of 109 images).
Statistics and reproducibility
No statistical methods were used to predetermine sample sizes. Sample sizes were chosen based on previous studies investigating CTA and CGRP neurons (for example, refs. 23,24,34) and on the availability of animals. All attempts at replication were successful. Most experiments were replicated in multiple independent groups of animals with all experimental groups present in each cohort. We used multiple independent experimental approaches, and multiple independent analyses within each experiment, to confirm our findings whenever possible. For experiments with multiple groups, individual animals or entire cages were randomly assigned to a group either at the time of surgery or at the beginning of behavioural testing (for animals that did not require surgery) with the constraint of balancing sex across groups. Automated analyses and automated experimental hardware and software, without manual intervention, were used whenever possible. Experimenters were not blinded to the group assignments of the animals. Statistical tests and data analyses were performed in Matlab (R2021a), Python (3.8.10) and R (4.2.1) as described above. *P ≤ 0.05, **P ≤ 0.01, ***P ≤ 0.001, ****P ≤ 0.0001 throughout the article. Individual data points are shown when practical (and always for n ≤ 10), and box plots show the data distribution for larger sample sizes. Sample sizes, statistical tests, multiple comparisons corrections, exact P values, error bars, shaded areas and box plots are defined in the figure captions, Methods and Supplementary Table 2.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.