Mouse
We used adult male and female hemizygous DAT-cre mice.75 (B6.SJL-Slc6a3tm1.1(cre)Bkmn/J; The Jackson Laboratory, 020080) or wild-type C57BL/6 mice (2–12 months old), which were randomly assigned to each cohort. Mice were housed in a temperature (20–22°C) and humidity (30–70%) controlled facility on a reversed night/day cycle (12 h to 12 h dark to light). Behavioral sessions took place during the dark cycle. All protocols were approved by the Harvard Institutional Animal Care and Use Committee and the MIT Animal Care Committee (Harvard IACUC protocol 1343, animal welfare assurance number A3431-01; MIT CAC protocol 2306000543). All work was performed in accordance with the NIH Guide for the Care and Use of Laboratory Animals. Surgical procedures were performed under aseptic conditions with an effort to minimize suffering, as previously described.7. Mice were deprived of water as we described previously7 (≥80% of initial body weight) with ad libitum feeding. Histology to confirm viral expression and fiber placement was performed as we previously reported.7.
Stereotaxic coordinates
The stereotaxic coordinates (of bregma and brain surface) were as follows. For viral injection: SNc7: 3.16 mm posterior, ±1.4 mm lateral, 4.2 mm ventral; VAT7: 3.1 mm posterior, ±0.6 mm lateral, 4.2 mm ventral; DLS7: 0 mm anterior, ±2.6 mm lateral, 2.5 mm ventral; VLS46: 0.34 mm anterior, ±2.75 mm lateral, 3.7 mm ventral (rdLight1/dLight1.3), 3.2 mm ventral (D1/A2A-cre; GCaMP).
Fiber optic tips (prone position): 200 µm 0.53 NA or 0.55 NA blunt fiber optic cannulas (Doric lenses) or tapered fiber optic cannulas (200 µm, 0.60 NA, 1.5, 2 or 2.5 mm tapered shaft, OptogeniX) were positioned at the SNc, VTA, DLS or VLS as follows: SNc/VTA7: 4.0 mm (photometry) or 3.9 mm (optogenetics); DLS7: 2.311 mm (blunt) or 4.0 mm (conical); VLS (rdLight1/dLight1.3): 3.4mm (blunt); VLS46 (D1/A2A-cre; GCaMP): 3.0mm (blunt or midpoint 2.5mm tapered).
Virus
For photometry: optical control fluorophores were used at a rate of 500 nl alone (tdTomato: AAV1-CAG-FLEX-tdT, 5.3 × 1010 at 5.3 × 1012 genome copies (gc) per ml, UNC Vector Core; and GFP: AAV9.CB7.CI.eGFP.WPRE.rBG, 2.3 × 1012 yd per ml; Addgene, 105542) or in mixture with the following other fluorophores: GCaMP6f (at SNc or VTA): 300 nl AAV1.Syn.Flex.GCaMP6f.WPRE.SV40 (2.5 × 1013 gc per ml; Penn Vector Core) mixed 3:1 with tdTomato or mCherry (D1/A2A-cre experiments; AAV8-Syn-DIO-mCherry, 2 × 1012 gc per ml; Data Lab ); D.A.2m (at DLS): 200–300 nl AAV9-hSyn-DA4.4(DA2m) (3 × 1012 gc per ml; Vigene, MD) mixed 2:1 or 3:1 with tdTomato; dLight1.1 (at DLS): 300 nl AAV9.hSyn.dLight1.1.wPRE (9.6 × 1012 gc per ml, Children’s Hospital Boston) mixed 3:1 with AAV1.CB7.CI.TurboRFP.WPRE.rBG (1012 gc per ml, Penn Vector Core); rdLight1 (at VLS): 500 nl AAV2/9-Syn-RdLight1.0 (2 × 1012 gc per ml; #construct-1646-aav2-9, Canadian Neurophotonics Platform (CNP)); dLight1.3 (at VLS): 500 nl AAV2/DJ-CAG-dLight1.3b (2 × 1012 gc per ml, CNP).
For optogenetic stimulation/inhibition (bilateral to the SNc), ChR2: 1000 nl AAV5-EF1a-DIO-hChR2(H134R)-eYFP-WPRE-pA (3.2 × 1013 gc per ml, UNC vector kernel); and stGtACR2: 300 nl AAV2/8-hSyn1-SIO-stGtACR2-FusionRed (4.7 × 1011 gc per ml, Addgene/Janelia Viral Core) were used.
Behavior
Software
The behavior was performed using a custom behavioral recording implemented with an Arduino-based state system architecture coupled with a MATLAB serial interface, and the behavioral data were recorded with a CED Power or Micro 1401 data acquisition system running Spike2 v.7 or 12 software from Cambridge Electronic Devices. The behavioral software was designed for use with Arduino IDE 2.3.10 and MATLAB 2023B.
Self-synchronized movement task (original version + Juice)
Mice were fixed on their heads with a juice tube placed in front of the tongue. The beak was placed approximately 1 to 1.5 mm ventral and approximately 1 to 1.5 mm anterior to the mouth. During times when rewards were not available, a household lamp was lit. At the start of the test, the house lamp was turned off and a random delay occurred (0.4–1.5 s) before a signal (simultaneous LED flash and 3,300 Hz, 100 ms tone) indicated the start of the synchronization interval. The time interval was divided into two windows: onset (0–3.333 s) and reward (3.333–7 s), followed by the ITI (10 s in the habitual task; 60 s in the long ITI task). The window in which the mouse first licked determined the outcome of the trial (early, reward, delayed, or no lick). An early first lick elicited an error tone (440 Hz, 200 ms) and illumination of the house lamp, and the mouse had to wait until the full trial interval had elapsed before beginning the ITI. So there was no benefit to licking early. An initial lick during the reward window elicited a reward tone (5,050 Hz, 200 ms) and juice delivery (~4 μl of apple juice or Gatorade; + juice task), and the house lamp remained off until the end of the trial. If the time interval elapsed without licking, a timeout tone was played (131 Hz, 2 s), the house light was turned on, and ITI began. During the ITI and pre-cue delay (lamp-off interval), there was no penalty or feedback for licking. Mice learned the task in three stages (beginner, intermediate, and expert), as previously described.7. All mice learned the task and typically completed approximately 500 trials per session. Details of all other task variations and training protocols are provided in the “Behavioral Task Details” section of the Supplementary Methods.
R2M analyzes
We define regression to the median (R2M) on each trial, nas:
$${{\rm{R}}2{\rm{M}}}_{n}={\rm{m}}{\rm{e}}{\rm{d}}{\rm{i}}{\rm{a}}{\rm{n}}({{\bf{T}}}_{n})-{t}_{n}$$
Or tn is the movement time tested n And Tn is the vector of local travel times taken into account. We say “in consideration” because we cannot simply use all movement times during the session due to the slow and non-stationarity of the temporal distribution during the session, which could result from processes other than learning (such as satiety/fatigue) and which requires a more local calculation of the median (Tn) to isolate local non-stationarity resulting from trial-by-trial updates. Thus, the median (Tn) is an uncertain quantity. To solve this problem, we calculated the median (Tn) using three complementary methods (detailed derivation and validation of these analyzes are provided in the “Regression to Median Analyzes” section of Supplementary Methods). The reported results were robust to the method used to estimate the median(Tn).
R2Mn for each method was then compared to the true Δtn on each test, defined as in the rest of the article (Δtn=tn + 1 −tn; where the late offset is positive by convention). Due to the high level of trial-by-trial variability, we solved for Δtbeyond R2M as a significant difference between R2M distributionsn against Δtn in all tests (R2M and ΔT), calculated by the Wilcoxon rank sum test. The median of each distribution was then used to calculate ΔT excess chance (Fig. 1g) defined as:
$$\Delta {\bf{T}}\,\mathrm{in}\,\mathrm{excess}\,\mathrm{of}\,\mathrm{chance}=\mathrm{median}(\Delta {\bf{T}}-{\rm{R}}2{\rm{M}})$$
Photometry
Registration sites and methods
Photometry datasets were collected from all recording sites/modalities in the original +juice task. Therefore, GLM/LME modeling and cross-analysis were performed for all datasets. Optogenetic and task manipulations (Figs. 3–5) were all collected in the VLS rdLight1 cohort.
Signal collection
The optical fibers were illuminated with 475 nm blue LED light (Plexon, TX or Doric Lenses Integrated Photometry Cube) (SNc/VTA, 50 μW; DLS, 35 μW; VLS, 30 μW) measured at the end of the patch cable with a light power meter (Thorlabs). Green fluorescence was collected using a custom dichroic mirror (Doric lenses) and detected with a Newport 1401 photodiode (Newport) or an integrated Doric cube. For red fluorescence, 550 nm lime LEDs were used (Plexon or Doric Lenses Integrated Photometry Cube). Fluorescence was allowed to recover for at least 1 day between recording sessions. To avoid optical crosstalk, the optical control channel (such as tdTomato or GFP) was recorded at one of the other sites implanted while GCaMP6f, dLight1.1/1.3/rdLight1 or DA2mwere recorded simultaneously only on the other implanted sites.
Δ F/F
The raw fluorescence from each session was preprocessed by removing rare singularities (single points 15 sd from the mean) by interpolation to obtainF(t). To correct photometric signals for bleaching, Δ F /Fwas calculated as follows:
$$\frac{\Delta F}{F}
Gn Health
