Introduction

Memory for an experience is thought to be represented in the brain by a sparsely distributed cell ensemble, or engram [1,2,3,4,5,6]. Neurons active at the time of an experience are hypothesized to be recruited to an engram, with subsequent reactivation of these neurons supporting memory retrieval. Although the engram is a hypothetical construct dating back to the turn of the last century [1,2,3,4, 7, 8], recently, progress has been made in identifying and manipulating key components of an engram supporting a specific memory. Largely, this progress has been enabled by an array of new tools to identify and control the activity of individual neurons hypothesized to be part of an engram (“engram neurons”).

Two complementary strategies have been used to identify and manipulate engram neurons. First, neurons active at the time of a training experience can be genetically “tagged” [9,10,11,12], or, second, the excitability of random neurons can be artificially increased around the time of training to bias their recruitment or allocation into an engram [13,14,15]. Inactivation of tagged or allocated neurons disrupts subsequent memory retrieval [9, 16,17,18,19] while artificial reactivation of these neurons induces memory expression in the absence of an external sensory retrieval cue [11, 18, 20,21,22,23,24,25,26,27]. Although these findings suggest that neurons allocated to an engram are indispensable for subsequent memory retrieval and therefore, are key components of the underlying engram, the precise mechanisms underlying allocation are not fully understood.

Previous research shows neuronal allocation to an engram within a given brain region is a competitive process between eligible neurons [13,14,15, 23, 24, 28,29,30,31,32,33,34,35,36,37]. Although the outcome of this neuronal competition may be mediated by many things, converging results indicate the transcription factor CREB (cAMP-response element binding protein) plays a vital role in this process [13, 14, 36]. First, endogenous (non-manipulated) memory formation is correlated with an increase in CREB function in a small, seemingly random population of neurons [19, 29], consistent with the notion that these neurons were key components of an engram. Second, artificially increasing CREB function in a similar small portion (roughly 10%) of random excitatory neurons in the lateral amygdala (LA) enhanced auditory fear conditioned memory [14, 24, 29]. Third, neurons with relatively higher CREB function were more likely to be allocated to an engram than their neighbors [14, 24, 29]. Although these results are compelling, in these manipulation experiments, CREB function was increased for 2–3 d before training. This leaves open the crucial issue of when, relative to training, increased CREB function is important for neuronal allocation and memory enhancement.

To address this question, we took advantage of a novel tool to optically control CREB function in vivo. Recently, we engineered a light-sensitive CREB protein (opto-DN-CREB) by fusing photoactive yellow protein (PYP, a blue-light photoreceptor) to a dominant-negative inhibitor of CREB (A-CREB, DN) [38]. A-CREB is a specific and strong inhibitor of CREB transcription [39], while PYP is a photo-switchable protein that changes conformation in response to blue light (BL). Therefore, in the absence of BL, the opto-DN-CREB construct would repress CREB function. However, once activated by BL, the structure of PYP changes, sequestering A-CREB, and thereby liberating endogenous CREB function [38]. In this way, it is possible to temporally control CREB function with BL.

We found acutely increasing CREB function (photoactivation of opto-DN-CREB) 1 h, but not 24 h, before training enhanced the formation of an auditory fear memory, similar to overexpressing wild-type CREB for 2–3 d before training [23]. This finding indicates that high CREB function in the minutes-to-hours before the training event is sufficient to govern allocation and enhance memory. In contrast, increasing CREB in a random portion of neurons immediately after training impaired subsequent fear memory retrieval, perhaps by interrupting the precise timing of post-training neuronal reactivation that may be necessary for memory consolidation. Together, these results show the importance of the timing of increased CREB function in governing neuronal allocation and memory.

Materials and methods

Mice

All experiments were performed according to the guidelines provided by The Hospital for Sick Children Animal Care and Use Committee in addition to the Canadian Council on Animal Care (CCAC) and the NIH Guidelines on the Care and Use of Laboratory Animals. Adult mice between the ages of 8 and 12 weeks of age were used for all experiments. Experiments were conducted with male and female hybrid (C57BL/6Ntac × 129S6/SvEvTac) mice. As we observed no differences in our dependent variable between sexes, we pooled the data. Mice were bred and housed at The Hospital for Sick Children on a 12-h light–dark cycle, with food and water available ad libitum. Behavioral experiments were performed during the light cycle.

opto-DN-CREB

The opto-DN-CREB construct contains two important components: (1) a dominant-negative inhibitor of CREB (A-CREB) and (2) a PYP light-sensitive domain. The dominant-negative inhibitor of CREB, originally published by Ahn and colleagues [39], was constructed by adding an acidic extension to the N-terminus of the CREB basic leucine zipper domain. This acidic extension interacts with the basic region of CREB to form a coiled-coil extension, preventing wild-type CREB from binding to DNA. A-CREB heterodimerizes with endogenous CREB and prevents their interaction with CRE sites [40]. Many labs have shown that A-CREB functions as a specific inhibitor of CREB function [41, 42].

PYP is a small soluble protein found in purple sulfur bacteria, where it senses BL [43].  BL bleaches PYP; however, its color recovers in the dark within roughly 1 s [43]. This light-induced change in the color, and quick reversal in the dark, likely parallels the conformational changes of PYP. We fused PYP to A-CREB to confer light responsivity to this dominant-negative CREB inhibitor. In the dark, opto-DN-CREB functions as a CREB inhibitor. However, upon BL stimulation, PYP undergoes a conformational change and sequesters A-CREB, thereby liberating endogenous CREB [38] (see Fig. 1a). That is, upon BL stimulation, opto-DN-CREB increases CREB function.

Fig. 1: Photostimulation of opto-DN-CREB, even without the exogenous addition of a chromophore, increases expression of CREB and CREB target genes.
figure 1

a Schematic of opto-DN-CREB construct. The photoreceptor PYP (photoactive yellow protein) is bound to a dominant-negative inhibitor of CREB (A-CREB). In the lights-off condition, A-CREB (fused with PYP) binds to endogenous CREB, thereby blocking CREB function. Upon blue light (BL) stimulation, PYP undergoes a conformational change, sequestering A-CREB, thereby liberating endogenous CREB and increasing CREB function. b (Top) Schematic of HSV-opto-DN-CREB construct. (Bottom) HSV-GFP control construct. c Exogenous addition of the PYP chromophore (CHR) is not required for opto-DN-CREB to increase CREB function in HEK cells. As expected, in HEK cells transfected with opto-DN-CREB, addition of the adenylyl cyclase activator forskolin (FSK) increased expression of the CREB target gene Nurr1 compared to control cells (Cntrl, transfected with opto-DN-CREB, no FSK). Nurr1 expression was further increased with BL, whether exogenous chromophore (CHR) was (Left) added (+CHR) [Cntrl (n = 4), FSK (n = 7), FSK + BL (n = 6)] (Right) or not (−CHR) [Cntrl (n = 4), FSK (n = 6), FSK + BL (n = 6)]. d Normalization of FSK + BL groups from c with, and without, exogenous CHR show similar increases in Nurr1 expression, indicating exogenous chromophore is not required for opto-DN-CREB function. e (Left) Experimental design for experiment showing opto-DN-CREB enhances CREB function. (Right) In cultured hippocampal neurons expressing opto-DN-CREB, 1 h of BL increased Creb expression [HSV-GFP (n = 3), HSV-opto-DN-CREB (n = 4)]. All error bars represent SEM; n.s. represents p > 0.05, * represents p < 0.05, ** represents p < 0.001.

Viral vectors

We used three replication-defective herpes simplex viral vectors (HSV) (see Fig. 1b): (1) HSV-CREB, originally described in ref. [29], contains a fusion protein of wild-type (WT) CREB with GFP expressed under the control of the HSV IE 4/5 promoter, (2) control vectors HSV-GFP or HSV-tdTomato (tdT) that express GFP or tdT after the HSV IE4/5 promoter, and (3) HSV-opto-DN-CREB, in which the light-inducible dominant-negative form of CREB is expressed after the IE 4/5 promoter. To identify neurons infected with HSV-opto-DN-CREB, tdT was also expressed (driven by the CMV promoter in the same vector).

Replication-deficient HSV-derived particles were packaged in-house as previously described [29] to titers > 1 × 108 infectious units/mL. HSV randomly infects ~10–20% of principal (excitatory) neurons when injected into the LA [23] and reaches maximal expression levels between 2 and 4 d post-injection [44,45,46,47].

In vitro analysis of opto-DN-CREB function

We previously characterized opto-DN-CREB in a series of biochemical studies and showed this construct functions as a light-responsive dominant-negative inhibitor of CREB [38]. Here we examined whether functional opto-DN-CREB requires addition of an exogenous chromophore and whether blue-light activation of opto-DN-CREB increases Creb expression, thereby increasing CREB function.

HEK cells

To examine the necessity of exogenously adding the chromophore (CHR) for opto-DN-CREB function, we treated opto-DN-CREB-expressing HEK cells with forskolin (FSK) (an activator of adenylyl cyclase) and BL, in the presence or absence of CHR. As our downstream readout of CREB function, we examined levels of the CREB-responsive gene Nurr1. In HEK cells, Nurr1 is one of the most highly CREB-responsive genes [48]. Because there is no robust antibody to detect Nurr1, we quantified Nurr1 levels using quantitative real-time PCR (RT-qPCR).

HEK293T cells were grown in complete feeding medium (Dulbecco’s modified eagle medium (DMEM, Life Technologies, Inc.) with 10% fetal bovine serum (FBS) at 37 °C in the dark, in 6-well plates and transfected (Lipofectamine 2000, Thermo Fisher) with opto-DN-CREB or control plasmid. Approximately 48 h later, cells were washed and chromophore (activated p-coumaric acid, S-thiophenylester [38], 0.1 mg/mL, referred to as p-coumaric acid, CHR) or vehicle added. Cells were treated with FSK (50 μM) for 2 h in serum-free medium before being moved to an incubator with or without BL illumination (0.2 mW/cm2) for 1 h.

Primary hippocampal neurons

To examine whether BL activation of opto-DN-CREB enhanced Creb expression, we used primary hippocampal neurons as described in [49, 50]. After 14 d in culture, 2 µL of virus (HSV-opto-DN-CREB or HSV-GFP) was added for 2 d. Neurons were then illuminated with BL (0.2 mW/cm2) for 1 h, and 1 h following this, neurons were processed for RT-qPCR to examine changes in Creb expression.

RT-qPCR

Cell culture medium was aspirated, and cells were flash frozen before RNA isolation (EZ-10 RNA isolation kit, Bio-Basic). Total RNA was quantified, and 500–1000 ng of RNA was made into cDNA using a high capacity cDNA reverse transcriptase kit (Life Technologies Inc). RT-qPCR was performed on 2 ng of cDNA using Evagreen mastermix (ABM) in a Biorad CFX96 real-time detection system. Ct thresholds were determined automatically and compared using the ∆∆Ct method. The following primers were added to each reaction (final concentration 500 nM):

Nurr1 F: 5′ CAACTACAGCACAGGCTACGA 3′;

Nurr1 R: 5′ GCATCTGAATGTCTTCTACCTTAATG 3′;

Creb F: 5′ GAACGAAAGCAGTGACGGA 3′;

Creb R: 5′ CTAAGGTTACAGTGGGAGCAG 3′.

Between 4 and 6 replicates were measured for each condition and levels of target transcript were normalized to levels of the housekeeping gene, Hprt (primers: 5′ GGAGTCCTGTTGATGTTGCCAGTA 3′; 5′ GGGACGCAGCAACTGACATTTCTA 3′) within each sample. Data were normalized to transfected/infected cells in the control condition.

Surgery

Mice were pre-treated with atropine sulfate (0.1 mg/kg, i.p.), anesthetized with chloral hydrate (400 mg/kg, i.p.) and placed in a stereotaxic frame. Topical lidocaine was applied to the incision site. The skull was exposed, and holes drilled bilaterally above the LA (AP −1.2, ML ±3.4, DV −5.0) [51]. Glass micropipettes filled with virus of interest were slowly lowered into the brain and virus (1.5 μL) was injected over 20 min. Following microinfusion, the micropipette was left in place for an additional 15 min to ensure viral diffusion. Following surgery, mice were given the analgesic Metacam (2 mg/kg), and recovered for 4 h before being returned to normal housing conditions.

For in vivo optogenetic experiments requiring BL stimulation, we also implanted bilateral optical fibers (fibers consisted of a 5-mm-long, 200 µm diameter, 0.39 numerical aperture fiber attached to a 1.25-mm zirconia ferrule) 0.5 mm above virus injection site, as previously described [19]. Optical fibers were constructed in-house by cutting a 10-mm-long fiber, polishing the fiber, and fixing it into a ferrule using epoxy resin. Optical fibers were secured in place using screws and dental cement.

Optogenetic stimulation

Two days after surgery, mice received BL stimulation (or no light stimulation, as a control) at different times relative to auditory fear conditioning.

Pre-training BL stimulation

Mice were individually placed in cages and received either BL stimulation (473 nm, 20 Hz, 10% duty cycle, 1–1.5 mW) or no stimulation for 1 h (Fig. 3b, e, f). Mice were then returned to homecage for 1 h before being placed in the fear conditioning apparatus and trained. We chose the parameters for photostimulation based on a similar system [52] and because our pilot data showed that BL stimulation for 5 min immediately before training was not sufficient to induce changes in memory (data not shown, F1,8 = 0.01, p > 0.05). In a separate group of mice (Fig. 3e), the same procedure was followed except that mice received BL stimulation 24 h before training.

Post-training BL stimulation

Immediately after fear conditioning, mice were individually placed in a cage and either BL stimulation or no stimulation was applied for 1 h, as above (Fig. 3f). Mice were then returned to homecage.

Auditory fear training and testing

Training

Mice were placed in a conditioning chamber (31 × 24 × 21 cm) with a stainless-steel grid floor through which shocks could be delivered (Med Associates, St Albans, VT). After 2 min, a 30-s tone (93 dB, 2800 Hz) conditioned stimulus (CS) that co-terminated with a 2-s footshock (0.4 mA), the unconditioned stimulus (US), was played. Mice remained in the chambers for an additional 30 s before being returned to the homecage.

Testing

Memory was tested 24 h later, by placing mice in novel context (a chamber with a white plastic floor and semi-circular white plastic walls). Following 2 min, the tone CS was played for 1 min. Our index of memory was the amount of time spent freezing during the tone. Freezing is an active defensive response defined as cessation of movement, except for breathing [53, 54]. Video Freeze software (version 2.7.1.107, Med Associates, Inc.) was used to assess freezing both before and during the tone CS, as previously described [13, 23, 29, 30]. The freezing scores generated by this software correlate well with human scored freezing levels.

To more thoroughly investigate potential differences in movement between groups before tone onset in the memory test, we also used DeepLabCut software as a means of developing a motion index [55, 56]. DeepLabCut uses deep learning to estimate body part positions from unlabeled videos. We trained the DeepLabCut neural network by manually labeling the positions of the snout, ear, and base of tail in randomly selected frames from a subset of our behavioral videos. Our trained model was then able to extract the positions of these body parts across videos from a randomly selected subset of mice in each of the four experimental groups (tdT BL− (n = 7), tdT BL+ (n = 7); opto-DN-CREB BL− (n = 10), opto-DN-CREB BL+ (n = 8)). To calculate motion index, we computed the change in position for each of the three body parts from one frame to the next and averaged across the pre-tone period.

Verification of virus and fiber placement

Following behavioral experiments, mice were perfused, and their brains fixed with 4% paraformaldehyde (PFA) for 1 d, then transferred to a 30% sucrose solution for 2 d. Brains were sliced coronally (40 μm) using a cryostat. Slices were mounted onto a gelatin-coated slides, and cover-slipped with a Vectashield fluorescence mounting medium containing DAPI (to label nuclei). The LA was imaged on a laser confocal microscope (LSM 710; Zeiss). Images were analyzed using ImageJ software. To estimate the percentage of infection, we counted the number of tdT- or GFP-positive neurons within LA fields of view and divided by the total number of neurons (estimated by number of DAPI-labeled cells, excluding DAPI signal that was brightly colored and concentrated nuclei likely representing glial cells [57]).

Only data corresponding to mice with robust bilateral transgene expression limited to the LA were included in subsequent analysis (“hits”). A “hit” was defined as robust tdT or GFP fluorescence (depending on vector used) bilaterally in each LA across four or more consecutive LA slices. Similar to several previous reports [13, 23, 29, 45, 49, 50, 58], HSV microinjection resulted in expression of the transgene in a small proportion of LA neurons (20.5% ± 1.74, n = 3 for HSV-tdT and 19.9% ± 2.24, n = 3 for HSV-opto-DN-CREB) with minimal damage to surrounding tissue (Fig. 2b). Similar criteria were used to verify fiber placement, with the defining criteria being placement ~0.5 mm dorsal to the LA.

Fig. 2: Photostimulation of LA neurons expressing opto-DN-CREB increases expression of the CREB-dependent immediate early gene c-Fos.
figure 2

a Outline of experimental design. b Microinjection of HSV-opto-DN-CREB (or HSV-tdTomato, HSV-tdT) into LA produced robust expression in small, random proportion of neurons. Scale bar = 100 μm. Dashed box outline shows damage from optic fiber, dashed triangle outlines LA. c Representative images showing increase in c-Fos (green) after blue light (BL+) stimulation, specifically in neurons expressing opto-DN-CREB (red). Scale bars = 50 μm. Images quantified in df. d In mice expressing opto-DN-CREB, BL stimulation increased overall number of c-Fos+ cells in the LA (as a function of DAPI). e, f Quantification of c-Fos expression in infected (tdT+) (e) and non-infected (tdT−) (f) LA neurons in mice microinjected with HSV-opto-DN-CREB or HSV-tdT. e Increase in number of c-Fos+ cells in infected neurons in mice expressing opto-DN-CREB following blue-light stimulation (and not in mice expressing tdT alone). f No increase in the number of c-Fos+ cells in non-infected neurons following BL stimulation (or no stimulation, BL−) in mice microinjected with HSV-tdT or HSV-opto-DN-CREB (for df, tdT BL+ (n = 6 slices from two mice); tdT BL− (n = 7 slices from three mice); opto-DN-CREB BL+ (n = 9 slices from two mice); opto-DN-CREB BL− (n = 11 slices from three mice)). Error bars = SEM; n.s. p > 0.05, *p < 0.05, **p < 0.001.

Ex vivo analysis of opto-DN-CREB

To assess the effectiveness of BL activation of opto-DN-CREB in vivo, we examined c-Fos protein levels as a measure of downstream CREB function. Two days after surgery in which mice were microinfused with HSV-opto-DN-CREB or control virus, HSV-tdT, mice received BL stimulation (473 nm, 20 Hz, 1–1.5 mW, the same stimulation protocol used in behavioral experiments) or no BL stimulation for 1 h. One hour later, mice were perfused and brains removed. Brains were post-fixed with 4% PFA for 1 d then transferred to a 30% sucrose solution for 2 d.

Brains were sliced coronally (40 μm) using a cryostat. Slices were washed and incubated with rabbit anti-c-Fos polyclonal antibody (1:500, Santa Cruz) at −4 °C. Staining was visualized with a fluorescent green secondary goat anti-rabbit Alexa 488 (1:500, Invitrogen). Slices were mounted onto a gelatin-coated slides, and cover-slipped with a Vectashield fluorescence mounting medium containing DAPI (to label nuclei).

Data analysis and statistics

Data were analyzed using ANOVAs to test differences of means between experimental groups. All statistical tests were considered statistically reliable at a p-value of <0.05. Significant main effects were further analyzed using Newman–Keuls post-hoc comparisons. All analyses were conducted in Statistica software package (Dell Inc. 2016, version 13).

Results

Photostimulation of opto-DN-CREB, even without exogenous chromophore, promotes transcription of CREB target genes

Conformational changes in PYP structure are initiated by the absorption of light by the covalently attached 4-hydroxycinnamic acid (p-coumaric acid) chromophore [59].  In the total absence of this p-coumaric acid chromophore, PYP is not thought to undergo conformational change, and we would expect our PYP-based opto-DN-CREB construct to be insensitive to BL stimulation (Fig. 1a). Previous data from Escherichia coli and yeast show that addition of exogenous chromophore is required to produce BL-activated PYP [60]. Therefore, in our previous in vitro experiments, we added p-coumaric acid directly to the medium. Exogenously adding this chromophore, though, complicates in vivo experiments. Here, we assessed whether exogenous application of p-coumaric acid is essential for PYP function under all experimental conditions. To examine the necessity of adding exogenous p-coumaric acid for PYP function in opto-DN-CREB in HEK cells, we compared the expression levels of the CREB target gene Nurr1 in cells expressing opto-DN-CREB both in the presence and absence of exogenous p-coumaric acid. To increase CREB function in these cells, we first stimulated with FSK (to activate CREB) and then applied BL (to photoactivate the PYP in our opto-DN-CREB construct) or not.

As expected, FSK increased the expression of the CREB target gene Nurr1 in HEK cells. This increase in Nurr1 expression was further enhanced with BL stimulation of opto-DN-CREB, regardless of whether the exogenous chromophore (CHR) was added or not (Fig. 1c, two-way ANOVA with between-group factors, p-coumaric acid (CHR+ or CHR−) and Treatment (Ctrl, FSK or FSK + BL) revealed a significant CHR × Treatment interaction F2,29 = 7.49, p < 0.01. Post-hoc Newman–Keuls tests showed that in both the CHR+ and CHR− conditions, BL application further increased the levels of FSK-induced Nurr1 expression. Furthermore, the relative magnitude of the increase in Nurr1 expression (FSK + BL normalized to FSK) did not differ between the two conditions (with and without exogenous application of p-coumaric acid, Fig. 1d, F1,10 = 0.06, p > 0.05). These data indicate that exogenous application of the chromophore is not required for opto-DN-CREB to activate CREB transcription under these conditions. Thus, the necessity for exogenous chromophore in PYP function may depend on cell type or culture conditions, as was the case for channelrhodopsin and the chromophore retinal [61].

Photostimulation of opto-DN-CREB increased CREB transcription in cultured hippocampal neurons

Evidence suggests CREB promotes its own expression [62, 63]. Therefore, we assessed whether optically relieving CREB inhibition (via BL activation of opto-DN-CREB) enhances Creb expression in cultured neurons. Isolated hippocampal neurons (14 days in vitro, (DIV)) were infected with opto-DN-CREB or GFP control virus. Two days later, BL was applied for 1 h followed by 1 h of rest. Neurons were then processed for RNA, and Creb expression assayed. Importantly, exogenous chromophore was not added. A robust increase in Creb expression was observed following BL stimulation in neurons expressing opto-DN-CREB compared to GFP control virus (Fig. 1e, F1,5 = 30.98, p < 0.01). Therefore, BL activation of opto-DN-CREB increased CREB function in cultured neurons (without addition of the exogenous chromophore).

Photostimulation of opto-DN-CREB in vivo increased the levels of a CREB-dependent protein

To verify that BL stimulation of opto-DN-CREB increased CREB function in vivo, we examined c-Fos expression in mice microinjected with opto-DN-CREB virus (or control virus) into the LA and treated with BL stimulation (or not) (Fig. 2a). We examined c-Fos expression because this immediate early gene contains consensus CRE sites in its promoter region and its transcription is CREB-dependent [62, 63].

Fig. 3: Photostimulation of opto-DN-CREB in the minutes (but not 24 h) before (but not immediately after) conditioning enhances formation of an auditory fear memory.
figure 3

a (Left) Outline of experimental design. (Right) Similar to previous studies, virally overexpressing wild-type CREB for 2–3 d before training enhanced auditory fear memory (HSV-CREB, (n = 8); HSV-GFP, (n = 7)). b (Top) Outline of experimental design. (Bottom) Photostimulating opto-DN-CREB-expressing LA neurons for 1 h, 1 h before training, enhanced auditory fear memory (percent time freezing to the tone) (tdT BL− (n = 9), tdT BL+ (n = 7), opto-DN-CREB BL− (n = 21), opto-DN-CREB BL+ (n = 16)). c Photostimulating opto-DN-CREB-expressing LA neurons did not enhance freezing or d impact general motion before tone presentation in these mice (for c, tdT BL− (n = 9), tdT BL+ (n = 7), opto-DN-CREB BL− (n = 21), opto-DN-CREB BL+ (n = 16); for d, tdT BL− (n = 7), tdT BL+ (n = 7), opto-DN-CREB BL− (n = 10), opto-DN-CREB BL+ (n = 8)). e Photostimulating opto-DN-CREB-expressing LA neurons for 1 h, 24 h before training, failed to enhance auditory fear memory (for all groups, n = 8). f Photostimulating opto-DN-CREB-expressing LA neurons for 1 h, immediately after training, impaired auditory fear memory (tdT + BL before training (BT) (n = 14), tdT + BL after training (AT) (n = 14), opto-DN-CREB + BL BT (n = 14), opto-DN-CREB + BL AT (n = 14)]. Error bars = SEM; n.s. p > 0.05, * p < 0.05, ** p < 0.001.

Consistent with previous results using similar HSV viruses in other brain regions [23, 58], we observed robust transgene expression in a small portion of principal neurons in the LA (Fig. 2b). Mice expressing opto-DN-CREB and stimulated with BL showed higher overall c-Fos+ cells in the LA than control groups (not stimulated with BL or not expressing opto-DN-CREB) (Fig. 2d, two-way ANOVA with between-groups factors Virus (opto-DN-CREB or Control) and Light (BL or BL−) showed a significant interaction, F1,29 = 4.86, p < 0.05, post-hoc Newman–Keuls revealed mice with opto-DN-CREB + BL showed higher levels of c-Fos than all other groups (p < 0.05), which did not differ from each other). This overall increase in c-Fos expression was cell-autonomous. That is, there was an increase in c-Fos in photostimulated opto-DN-CREB-expressing neurons only and not in surrounding neurons (Fig. 2e; two-way ANOVA with between-group factors Light (BL+ or BL−) and Virus (opto-DN-CREB or TdTomato) showed a significant interaction F1,29 = 9.52, p < 0.05. Post-hoc Newman–Keuls tests revealed that c-Fos+ was higher in opto-DN-CREB + BL group than all other groups (p < 0.001); Fig. 2f, two-way ANOVA, Light × Virus interaction, F1,29 = 3.95, p > 0.05]. These in vivo results are consistent with our in vitro data and indicate photostimulation of opto-DN-CREB promotes expression of CREB target genes specifically in neurons expressing opto-DN-CREB, even in the absence of exogenous chromophore.

In vivo photostimulation of opto-DN-CREB in a small proportion of LA neurons 1 h before auditory fear conditioning enhanced memory formation

Next, we used opto-DN-CREB to manipulate CREB function at different time points relative to auditory fear conditioning. Previously, we [13, 23, 29] and others [14, 64] showed that prolonged overexpression of CREB (2–3 d) in a small, but random, portion of LA principal neurons enhanced auditory fear conditioned memory, as neurons with relatively increased CREB function were preferentially allocated to the engram supporting this memory. First, we replicated these results. Mice microinjected with HSV-CREB (a virus in which wild-type CREB is constitutively expressed) 2 d before auditory fear conditioning showed enhanced memory compared to mice microinjected with control vector (Fig. 3a, F1,13 = 4.79, p < 0.05).

To examine whether restricting the increase in CREB function to the minutes (rather than days) before fear conditioning, we microinjected mice with HSV-opto-DN-CREB or control virus. Two days later, mice received BL stimulation (for 1 h, or no BL stimulation) 1 h before fear conditioning. Mice microinjected with opto-DN-CREB and stimulated with BL showed enhanced freezing to the tone compared to all other groups (Fig. 3b; two-way ANOVA with between-group factors Light (BL+ or BL−) and Virus (opto-DN-CREB or TdTomato): there was a significant main effect of light F1,49 = 6.54, p < 0.05, and a significant main effect of virus F1,49 = 5.13, p < 0.05. Post-hoc Newman–Keuls tests revealed the opto-DN-CREB group froze significantly more than all other groups (p < 0.05)). Interestingly, the size of the memory enhancement was strikingly similar to that produced by increasing CREB via microinjection of HSV-CREB 2 d before training (Fig. 3a). This increase in freezing behavior was specific to the tone, as all groups showed similarly low freezing in the test session before tone onset (Fig. 3c; two-way ANOVA with between-group factors Light and Virus: Light × Virus interaction F1,49 = 0.01, p > 0.05]. Furthermore, there was no difference in activity between the groups before tone onset (Fig. 3d; two-way ANOVA with between-group factors Light and Virus: Light × Virus interaction F1,28 = 0.85, p > 0.05). These results converge to show the specificity of the effects of increasing CREB function on memory.

Importantly, similarly photostimulating opto-DN-CREB for 1 h, 24 h before fear conditioning did not enhance freezing showing the reversibility of increased CREB function with opto-DN-CREB (Fig. 3e; two-way ANOVA with between-group factors Light and Virus: Light × Virus interaction F1,28 = 0.03, p > 0.05). Together, these behavioral data indicate that multi-day overexpression is not required for the memory-enhancing effects of CREB, as a relatively short increase in CREB function in the minutes (but not 24 h) before training is sufficient to enhance memory.

In vivo photostimulation of opto-DN-CREB in a small proportion of LA neurons after auditory fear conditioning disrupts memory

Finally, opto-DN-CREB allowed us, for the first time, to examine the mnemonic effects of increasing CREB function in a small population of random neurons immediately after training. In this experiment, BL was applied immediately after, rather than before, training. Neurons expressing opto-DN-CREB would likely not be allocated to the engram supporting the conditioned fear memory as training was conducted in the absence of BL at a time when these neurons likely had decreased CREB function. We hypothesized that increasing CREB function in these random (non-engram) neurons might impair subsequent memory expression of this particular memory by adding post-training transcriptional or population activity “noise”.

We microinjected mice with opto-DN-CREB or control virus and photostimulated either before (as a control) or immediately after training. As before (Fig. 3b), photostimulating opto-DN-CREB-expressing neurons 1 h before training enhanced subsequent memory retrieval (Fig. 3f; two-way ANOVA with between-group factors Virus (opto-DN-CREB or TdTomato) and Time (stimulation before training or after training), Virus × Time interaction, F1,52 = 40.54, p < 0.0001. Post-hoc Newman–Keuls tests revealed the opto-DN-CREB group froze significantly more than all other groups (p < 0.001). However, photostimulating opto-DN-CREB expressing neurons immediately after training disrupted subsequent memory retrieval (Fig. 3f, post-hoc Newman–Keuls tests revealed that post-training opto-DN-CREB stimulation significantly reduced freezing compared to TdTomato control groups (p < 0.05)). Therefore, artificially increasing CREB function in a small subset of random (non-engram) neurons after training inhibited subsequent memory retrieval. Together, these data again show the critical role of CREB in memory allocation and, furthermore, highlight the importance of the timing of increased CREB function in memory processes.

Discussion

Here we used a novel light-activated protein system to examine the effects of acutely increasing CREB levels in a small, random portion of LA neurons on neuronal allocation to an engram supporting auditory conditioned fear, and the subsequent effects on memory consolidation. Previous experiments show that overexpressing CREB in LA neurons for 2–3 d before training enhanced memory as neurons overexpressing CREB were preferentially allocated to an engram supporting that memory. Here we showed that enhancing CREB in the minutes, but not 24 hours, before training was sufficient to enhance memory formation. In stark contrast, similarly enhancing CREB function in random neurons immediately after training disrupted subsequent retrieval of that memory. These results not only show the importance of the timing of increased CREB activity in relation to the training event on subsequent memory expression but also highlight the potential of optogenetic approaches to control protein function with temporal specificity.

In vivo use of PYP-based vectors

In developing and initially characterizing opto-DN-CREB, we focused on finding optimal conditions for controlling the PYP protein. To this end, we supplemented the feeding medium with activated p-coumaric acid, a chromophore necessary for conferring photosensitivity to PYP [38]. However, the in vivo utility of using opto-DN-CREB, or similar PYP-based protein systems, would be enhanced greatly if exogenous administration of this chromophore was not required. In HEK cells, isolated mouse neurons, and in behaving mice, we found that photostimulation of opto-DN-CREB increased CREB function, even in the absence of exogenously delivered chromophore. Therefore, under some conditions, sufficient levels of the chromophore may be available endogenously to enable PYP to undergo conformational change. p-Coumaric acid, for instance, is found in many plants [65] and is absorbed through the intestine [66]. Indeed, p-coumaric acid has been detected in several human metabolic studies [67, 68]. Therefore, mice may acquire sufficient p-coumaric through their diet to allow photostimulation to induce conformational changes in PYP. It remains to be determined, however, whether p-coumaric acid levels via diet are sufficient for producing optimal functioning of PYP proteins in cells and tissues other than those studied here.

Using opto-DN-CREB to enhance CREB function

We hypothesized that relieving CREB inhibition (by photostimulating opto-DN-CREB-expressing neurons) produces an abrupt increase in CREB function. Supporting this idea, photostimulating cultured neurons expressing opto-DN-CREB increased Creb transcription fourfold above control conditions. Furthermore, photostimulating LA neurons expressing opto-DN-CREB increased levels of c-Fos. Together, these findings provide compelling convergent evidence the opto-DN-CREB construct can be used to acutely increase CREB function. The current method offers advantages in terms of speed and molecular specificity over other common inducible expression systems to manipulate CREB (or indeed other protein) function.

Enhancing CREB function in the minutes-to-hours before training enhances memory

CREB is a transcription factor involved in multiple processes [69]. A number of these processes have been proposed to mediate neuronal allocation to an engram (Josselyn et al. 2018; [24, 28, 70, 71]). For instance, increasing CREB function increases neuronal excitability [14, 23, 72,73,74,75,76] and artificially increasing neuronal excitability without directly targeting CREB produces a similar effect (enhancing memory and biasing neuronal allocation) [23]. In addition, increasing CREB function increases dendritic spine density [73, 77], providing a complementary potential mechanism for the allocation effect.

Here we replicated this basic CREB-allocation effect, and, furthermore, found that increasing CREB function in the minutes before auditory fear conditioning was sufficient to enhance memory. The magnitude of this memory enhancement was similar to that observed when CREB was overexpressed for 2–3 d before conditioning suggesting that it is the relative level of CREB function in the minutes before training that plays a critical role in neuronal allocation.

Enhancing CREB function in random neurons immediately after training disrupts memory

This novel optogenetic tools allowed us to examine the effects of increasing CREB function immediately after training. In contrast to the effects of increasing CREB function before training, increasing CREB function after training impaired subsequent memory retrieval. We postulate that at least two processes may contribute to the observed memory weakening. First, tightly controlled “waves of transcription” [78, 79] have been described after memory formation, and inappropriately activating an important transcription factor such as CREB may impair the endogenous training-initiated genetic program and negatively impact memory formation. Second, in vivo electrophysiological data suggest that memory formation requires offline post-encoding reactivation of the neuronal activity patterns present during the initial learning experience. This reactivation or “replay” occurs with precise spatial and temporal fidelity [80,81,82,83]. Although most studied in the hippocampus, some types of memory involve offline reactivation of amygdala neurons [15, 84,85,86]. Therefore, non-discriminately increasing CREB in a random population of non-engram neurons may interfere with the precise reactivation required for memory consolidation. Consistent with this, we observed a similar disruption in subsequent memory expression using chemogenetics to artificially increase neuronal excitability in the LA 18 h after training in a rewarding task (cocaine-induced conditioned place preference) [15].

Use of PYP to modify the function of other proteins

Since the term “optogenetics” was coined [87, 88], there has been an explosion of tools that make use of light to either activate or repress cells, enzymes, or signaling pathways [87,88,89]. Some optogenetic tools, such as the light-gated ion channels (including channelrhodopsins), have gained popularity, due to their ability to modulate the electrical properties of cells. Although the widespread use of optogenetics and light to modify the function of proteins and other molecules is relatively slower, this field is also showing remarkable progress [90].

The PYP protein used in the present study to allow light-induced modification of CREB function is part of large protein domain family the Per-ARNT-Sim (PAS) family. This family also includes the light–oxygen–voltage domain (LOV) proteins. LOV-based optogenetic tools use endogenous flavin chromophores [90]. A number of LOV-based optogenetic tools have been used to modulate the activity of the protein RAC1 within spines [91], dimerization of proteins, and affinity of proteins to their binding partners (reviewed in [90, 92]). Although PYP domains are not as commonly used as LOV domains for designing optogenetic tools, this may derive from the expectation in vivo experiments would require exogenous addition of the chromophore [90]. The present findings show exogenous chromophore is not always required for PYP, thus increasing the potential applicability of PYP-based optogenetic tools for in vivo applications requiring temporally restricted, rapid, and reversible control of proteins.

Funding and disclosure

The authors declare no competing interests.