Skip to main content
STAR Protocols logoLink to STAR Protocols
. 2021 Dec 9;2(4):101010. doi: 10.1016/j.xpro.2021.101010

Pipeline for 2-photon all-optical physiology in mouse: From viral titration and optical window implantation to binarization of calcium transients

Roberta Guimarães Backhaus 1,2,3,5,, Ting Fu 1,2,3,4,∗∗, Hendrik Backhaus 2, Albrecht Stroh 1,2
PMCID: PMC8776863  PMID: 35079708

Summary

2-photon all-optical physiology combines in vivo 2-photon calcium imaging and optogenetics, which enables both the read out and manipulation of neuronal microcircuits with single-cell resolution. Here, we describe a protocol for achieving optimized co-expression of calcium indicator and opsin. To enable longitudinal designs, we introduce a template for virus injection and chronic window implantation. We also highlight key aspects of performing 2-photon imaging and suggest an analysis algorithm for the binarization of putatively action-potential (AP)-related calcium transients.

For complete details on the use and execution of this protocol, please refer to Fu et al. (2021).

Subject areas: Microscopy, Gene Expression, Neuroscience

Graphical abstract

graphic file with name fx1.jpg

Highlights

  • Optimization of co-expression of calcium indicator and opsin

  • Virus injection and chronic window implantation for 2-P all-optical experiments

  • Readout and interrogation of neuronal microcircuits in a 2-P all-optical experiment

  • Binarization of putatively action-potential (AP)-related calcium transients


2-photon all-optical physiology combines in vivo 2-photon calcium imaging and optogenetics, which enables both the read out and manipulation of neuronal microcircuits with single-cell resolution. Here, we describe a protocol for achieving optimized co-expression of calcium indicator and opsin. To enable longitudinal designs, we introduce a template for virus injection and chronic window implantation. We also highlight key aspects of performing 2-photon imaging and suggest an analysis algorithm for the binarization of putatively action-potential (AP)-related calcium transients.

Before you begin

2-photon (2-P) all-optical physiology experiments require cells functionally expressing both, calcium indicator and opsin. Viral vectors transfer a gene of interest to cells either by genomic insertion, or, in case of most adeno-associated viruses predominantly used for the transfer of genes encoding for calcium indicators or opsins, via episomal expression. Viral gene transfer provides the foundation for regional and cellular specificity of indicator or opsin protein expression (Aschauer et al., 2013). However, to avoid overexpression leading to toxicity and apoptosis, while at the same time ensuring functionality of calcium indicator and opsin, it is crucial to adjust virus titration in advance (Fois et al., 2014). Cell and layer specificity can be achieved by promoters, driving targeted calcium indicator and opsin expression (Bohlen et al., 2020; Wu et al., 2019). Whenever possible, a spectral separation of excitation wavelengths of the calcium indicator/opsin pair is advisable, please see our recent publication associated with this protocol (Fu et al., 2021). Please note, that an a priori titration needs to be conducted for every newly started calcium indicator/opsin pair. We established our protocol with genetically encoded calcium indicator GCaMP6f (Chen et al., 2013) and opsin C1V1T/T (Prakash et al., 2012) fused with a red fluorophore. We employ third-generation adeno-associated viral vectors (AAV) for delivery of genes encoding calcium indicator and an opsin. Particularly adeno-associated viruses exhibit a limited packaging capacity (Tornabene and Trapani, 2020; Kay et al., 2001; Nidetz et al., 2020). Both opsin and indicator typically require rather large sequences as they are rather large proteins, and they need to be combined with cell specific promotors. In addition, a sequence encoding for a fluorophore is needed to be incorporated as well, to facilitate identification of opsin-expressing cells by fluorescence microscopy. Consequently, the gene sequence of an opsin-indicator pair, in conjunction with a cell specific promoter, generally well exceeds the packaging capacity of AAVs. Therefore, one AAV is produced containing the sequence for promoter and opsin, and the other for promoter and indicator. This dual-virus approach requires the injection and titration of two viruses (Thompson and Towne, 2018). Here we describe in detail the concepts of viral titration, injection, and optical window implantation, and give a short overview on all optical 2-P imaging experiment. We furthermore include the description of an analysis routine for the acquired functional 2-P images, as this constitutes an integral building block of an all-optical physiology pipeline. While the available analysis approaches for 2-P calcium imaging increase almost at a daily basis, we would strongly suggest to adapt an approach yielding a binarized matrix of putative AP related calcium transients. Ultimately, 2-P calcium imaging of local microcircuits serves as a proxy for obtaining circuit output, i.e., action potential firing (Ellwardt et al., 2018; Arnoux et al., 2018). The presented protocol can be used as a template for the implementation and adaptation of other calcium indicator/opsin pairs and in other cortical regions. Figure 1 serves as a guide to this protocol, giving an overview of each step including hands-on time as well as waiting times for virus expression.

Figure 1.

Figure 1

An overview of all steps within this protocol, including hands-on- and waiting- time

I, II, III, IV correspond to protocol part 1; V, VI correspond to protocol part 2; VII corresponds to protocol part 3 and VIII correspond to protocol part 4.

Our experiments were carried out along institutional animal welfare guidelines and approved by the Landesuntersuchungsamt Koblenz, State of Rhineland-Palantine, Germany. Adult male C57/BL6 mice were used.

Pulling micropipettes for virus injection

Inline graphicTiming: 1–2 min per pipette

  • 1.

    Add additional marks on the micropipettes (capillary pipettes with ring marks, see key resources table for brand) for identifying injected volumes during injection (Figure 2A).

  • 2.

    Pull the micropipette using a standard puller. The puller parameter should be adjusted to yield a pipette with an approximately 1 cm section of decreasing diameter. The tip should have an outer diameter of 45 ± 3 μm and an inner diameter of 15 ± 3 μm.

  • 3.

    Store it carefully in a petri dish attached in Patafix.

Figure 2.

Figure 2

Close-up of the pulled micropipette for viral injections

A ring-cap micropipette is pulled by a standard puller to form a tip with an outer diameter of 45 μm and an inner diameter of 15 μm. Additional marks are drawn on the micropipette to assess the injected volume.

Prerequisite for surgery

Inline graphicTiming: 5–10 min

  • 4.

    Disinfect the table and stereotaxic system according to your institutional guidelines and sterilize all surgical tools prior to carrying out the surgery.

  • 5.

    (For chronic window only) fill a Petri dish with phosphor buffered saline (PBS)/Saline and dip small pieces of surgical sponge in it. Warm it up in the microwave until the PBS/Saline reaches a temperature of 60°C, if possible, to speed up the softening of the sponge.

Key resources table

REAGENT or RESOURCE SOURCE IDENTIFIER
Bacterial and virus strains

rAAV1/CamKIIa-GCaMP6f Penn Vector Core, PA, USA N/A
rAAV2/CamKIIa-C1V1 (E122T/E162T)-TS-mCherry UNC Vector Core, NC, USA N/A

Chemicals, peptides, and recombinant proteins

2% xylocaine AstraZeneca REF.: 01138060
Xylocaine Pump Spray Aspen PZN - 03839482
Isoflurane Forene Abbvie REF.: B506
PBS pH7.4 (1X) – Phosphate Buffered Saline Gibco REF.: 10010-015
Buprenorphine - TEMGESIC Indivior Europe Ltd. REF.: 00345928
Eye cream - Vidisic Bausch Lomb N/A
4% PFA Electron Microscopy Sciences REF.: 15710
DAPI Invitrogen REF.: D1306
Vectashield Mounting Medium Vector Laboratories N/A
Sucrose Carl Roth REF.: 4621.1
Surgical glue vetbond 3M REF.: 1469SB
Polytec UV-Glue 2195 Polytec PC REF.: 2017PWP1188
Saline 0.9% Fresenius Kabi PZN - 06605514

Experimental models: Organisms/strains

Mouse: C57BL/6J, P40, male Janvier Laboratory N/A

Software and algorithms

Matlab The MathWorks Version 2016b
Custom written code for segmentation (MATLAB): Stroh lab (Fu et al., 2021) https://github.com/Strohlab/ROIMeasure
IGOR Pro Wavemetrics Version 6.2
Custom written code for calcium transient detection and binarization (IGOR Pro): Stroh lab (Fu et al., 2021) https://github.com/Strohlab/Igor-Spike-Detection
ImageJ Schneider et al. (2012) https://imagej.nih.gov/ij/
Cell-Counter plugin for ImageJ: Included in cell_counter.jar, and is released under the GNU General Public License. https://imagej.nih.gov/ij/plugins/cell-counter.html
Motion correction plugin for ImageJ: GitHub (Dubbs et al., 2016) https://github.com/NTCColumbia/moco
Imspector LaVision BioTec GmbH
A Miltenyi Biotec Company
Version 5.0.273.0

Other

Ringcaps/Micropipette/Capillary pipettes Hirschmann REF.: 960-01-05
Surgical sponges Spongostan Standard REF.: MS0006
Absorption Triangles Fine Science Tools REF.: 18105-03
Sterile scalpel blade #11 Braun N/A
Parafilm M Witeg N/A
Object slide (histology) Gerhard Menzel J1800AMNZ
Object cover slip (histology) Gerhard Menzel N/A
Round cover slip 3 mm– #0 (optical window) Electron Microscopy Sciences REF.: 72296-03
Round cover slip 4 mm- #1 (optical window) Electron Microscopy Sciences REF.: 640724
Student Vannas Spring Scissors Fine Science Tools REF.: 91500-09
Dumont 590 Forceps - Micro-Blunted, Standard Tips/Angled 90°/Inox/11cm Fine Science Tools REF.: 11253-29
Dumont #5CO Forceps - Biology
Tips/Straight/Dumostar/11cm
Fine Science Tools REF.: 11295-20
Dumont #5 Fine Forceps - Biology Tips/Straight/Inox/11cm Fine Science Tools REF.: 11254-20
Student Vannas Spring Scissors -Curved/Sharp/9cm/5mm Cutting
Edge
Fine Science Tools REF.: 91501-09
Dumont #5/45 Forceps - Standard
Tips/Angled 45°/Dumoxel/11cm
Fine Science Tools REF.: 11251-35
Skin Marker Fine Science Tools REF.: 18000-30
Burrs for Micro Drill - 0.5mm Tip
Diameter/Carbon Steel
Fine Science Tools REF.: 19007-05
London Forceps - Serrated/Angled /45°/16 cm Fine Science Tools REF.: 11080-02
Moria 9987 Ultra Fine Forceps -Biology/Curved/13cm Fine Science Tools REF.: 11399-87
Biopsy punch 4mm Glaxo Smith Kline GmbH REF.: 3547087
Patafix UHU GmbH & Co REF.: 3001145
Microlance 3–18G (Needle) BD REF.: 304622
Cotton swabs Q-Tips N/A
Micropipette puller NARISHIGE Model: PC-10
Electric hair trimmer Aesculap GT416
Halogen gun for polymerization Megaphysics Megalux Soft start
Stereotaxic frame Kopf DKI 942, DKI 923-B and DKI 922
Animal temperature controller World precision instruments ATC 200
Confocal microscope Leica Microsystems SP8
Dental drill Ultimate XL-F Y141513
Micro Drill steel Burrs 0,5mm Fine Science Tools 19007-05
Vibratome Leica Biosystems N/A
Custom-made 2-photon microscope LaVision Biotec TrimScope II
Ti:Sapphire laser Coherent Chameleon II
VIS-IR objective Zeiss W-Plan-Apochromatic 20 × DIC
Optical parametric oscillator Coherent Chameleon compact OPO
PMT Hamamatsu H7-422-40 LV GaAsP
Peristaltic pump (perfusion) Ismatec Model ISM831C

Step-by-step method details

Part 1: Virus injection and titer optimization

  • 1.
    Preparing viral dilutions for titration
    Inline graphicTiming: 10–15 min
    For all different calcium indicator/opsin pairs a titration and histological examination should be conducted. It is advised to perform a viral titer optimization a priori. This can be done in a sequential manner, starting with the two viruses in parallel (Figures 3A–3D), before conducting a final titration step with the combination of these two. Once the optimal titer for each virus is known, it serves as a starting reference to define the optimal titer for the combination of two viruses (Figures 3E and 3F). Each chosen titer should be tested at least in two animals to minimize the impact of eventual pipetting or injection errors.
    • a.
      Prepare 6 tubes, three for each virus (calcium indicator and opsin, respectively) and label them accordingly (Figures 3A and 3C).
      Inline graphicCRITICAL: Before handling AAVs or any other viruses, make sure to read and adhere to the safety instructions of your institution.
    • b.
      Dilute the virus in sterile PBS or saline (Bennett et al., 2017) in parallel, according to the desired titer in each labeled tube. We recommend the following starting titers based on viral particle numbers ranging at:
      • i.
        CamKII-GCaMP6f: undiluted, 1(GCaMP6f):20(PBS), 1:40.
      • ii.
        CamKII-C1V1: undiluted, 2(C1V1):1(PBS), 1:1.
    • c.
      Store the tubes at 4°C, protected from light, for up to 2 weeks.
      Note: After performing the titration and evaluating both viruses independently, another titration should be conducted, commencing with the two best titers of both viruses in the same solution.
    • d.
      Prepare three tubes and label them accordingly.
    • e.
      Pipette the virus-pair (calcium indicator + opsin) in three labeled tubes: one virus-combination constitutes the optimal titer of the respective virus defined previously. For the remaining two combinations, one titer is retained while the other titer is going to be changed (Figure 3E). In our case, the optimal titer for each virus has been confirmed as 1:20 (GCaMP6f) and 2:1 (C1V1T/T), so we chose the titer-combinations for GCaMP6f/C1V1T/T of 1:20/2:1, 1:40/2:1 and 1:20/4:1.
    • f.
      Store the tubes at 4°C and avoid any light exposure.
      Note: After the best titer combination is found, we calculate the particle number as reference for further experiments. In our case, the optimal titer was 1:20/2:1, resulting in the particle numbers 1.84 × 1010/ mL and 3.33 × 1011/ mL, GCaMP6f/C1V1T/T respectively.
      Inline graphicCRITICAL: Be aware if the administered virus has synapse crossing properties, e.g. rabies based viral vectors (Reardon et al., 2016). In this case, a bilateral injection in the same animal is not advised.
  • 2.
    Animal preparation (Induction of anesthesia):
    Inline graphicTiming: 5–10 min
    • a.
      Weigh the animal. The age, strain and sex of the animals is defined for each study individually. In our previous study (Fu et al., 2021), we used C57BL/6J mice (P40).
    • b.
      Anesthetize the animal, by placing the mouse in an anesthesia induction chamber (4% Isoflurane/oxygen).
    • c.
      Under visual control, wait until the breathing rate of the animal drops to approximately 60 BPM.
    • d.
      Administer local analgesia, in our case by injecting buprenorphine (diluted with sterile water or saline for injection) subcutaneously with a concentration of 0.05–0.1 mg/kg.
  • 3.
    Placement of animal in stereotaxic system:
    Inline graphicTiming: 15–20 min
    • a.
      Immediately transfer the deeply anesthetized animal to the stereotaxic frame. Position the upper front teeth into the dedicated opening of the tooth bar. In case volatile anesthetics is used, cover the nose with the anesthesia mask and ensure it fits tightly. The isoflurane level typically is set to 2%.
    • b.
      Test the animal’s reflexes, by pinching the skin between the toes of the medial with a forceps. If no reflex is observed, continue with the next step. If reflexes are observed, slowly increase the anesthesia.
    • c.
      Monitor the temperature of the animal ideally by a closed loop in vivo monitoring system comprising of a temperature sensor, heating plate and control electronics. Insert the temperature sensor into the rectum of the animal and set the desired temperature value (37°C–38°C).
      Inline graphicCRITICAL: Observe the respiration carefully. Throughout surgery, take utmost care to ensure that respiration rate exceeds 30 breaths per minute. Avoiding gasping of the animal is crucial. Once it enters this respiratory stage, the animal is unlikely to achieve a stable state of anesthesia, even if isoflurane level is decreased.
    • d.
      Shave the head with an electric hair trimmer (the shaved area should be larger than the actual opening for the injection/window) and carefully clean up after then.
    • e.
      Apply an eye cream containing the agent dexpanthenol (Vidisic) to avoid the eyes drying out.
    • f.
      Apply 2% xylocaine solution on the surgery area (several minutes before the surgery/opening). We use 10–20 mg xylocaine.
    • g.
      Fix the head firmly with the ear bars and make sure to check the front-back and left-right alignment.
  • 4.
    Craniotomy:
    Inline graphicTiming: 15–20 min
    • a.
      Cut the scalp with a scalpel blade at the midline sagittal suture (Figure 4I).
    • b.
      Pull the scalp aside, peel/cut the periosteum off, clean and expose the skull with triangle sponges (Figure 4II).
    • c.
      Attach an 18G needle to the stereotaxic frame and match its tip to bregma. Set the coordinates of the micromanipulator to zero. All coordinates refer to the bregma location.
    • d.
      Move the tip of the needle to the injection point by operating the manipulator according to the desired coordination for injection. In our case, for visual cortex we use anterior posterior 3.0 mm and medial lateral 2.8 mm. Mark the position(s) on the skull using ink (Skin Marker) that was administered on the tip of the needle (Figure 4III).
    • e.
      Perform the craniotomy employing a dental drill (0.5 mm diameter of the drill bit)
    • f.
      First, thin the skull at the respective location (Figure 5I–III).
      Inline graphicCRITICAL: It is of utmost importance to drill very slowly and carefully when getting closer to break through the skull to avoid puncturing the brain (see troubleshooting 1). Furthermore, setting the drill speed too high can cause high temperatures damaging the brain tissue. Saline or PBS should be poured every 2–3 min on the drilling site to prevent heating damage.
    • g.
      Finally, gently flip up the thinned skull fragment using a 20G needle or a fine tip forceps (see troubleshooting 1).
      Inline graphicCRITICAL: The opening area should always be covered with saline or PBS or surgical sponge soaked with these solutions, to prevent tissue damage due to dehydration until the surgery is completed.
  • 5.
    Injection of virus solution for titration
    Inline graphicTiming: 25–30 min
    • a.
      Exchange the 18G needle with the pulled micropipette in the stereotaxic frame, connect the syringe with tubing to the end of the micropipette. The syringe will be used to apply and control pressure to the attached micropipette to manually load and inject the virus (Figure 6I).
      Note: In our laboratory, we prefer the manual injection, as this procedure allows the experimenter to observe and ensure that the virus solution is injected and control any clogging of the injection pipette.
    • b.
      Place a disinfected piece of parafilm (approx. 1.5 cm × 1.5 cm) on the top of the surgical sponge that is covering the craniotomy. Lower the tip of the micropipette for the injection (Figure 6I). In our case, we perform the injection with an angle of 35°.
      Note: Injection with an angle will decrease the virus spillover, as the micropipette will further penetrate a longer distance in the tissue leading to a better dispersion of the virus. Furthermore, the damage in the tissue caused by the micropipette track will promote less interference during image acquisition. If you are using an angle for injection, make sure to recalculate the penetration depth correspondingly to reach the region of interest.
    • c.
      Apply a drop of the virus solution, in our case 1.0 μL, onto the parafilm (Figure 6II).
      Inline graphicCRITICAL: The virus solution should always be kept at 4°C until it is applied onto the parafilm. The steps c to h should not last more than 15–20 min.
    • d.
      “Front-load” the virus into the micropipette by operating the micromanipulator with the attached pipette. When the micropipette is located in the center of the drop, pull the connected syringe to load the virus solution until the necessary volume of 0.6 μL is reached. Gently retract the micropipette (Figure 6II).
    • e.
      Remove the parafilm and move the micropipette back to the injection point until it touches the surface of the brain.
    • f.
      Reset the z-axis of the micromanipulator to zero.
    • g.
      Advance the micropipette slowly into the brain (ca. 150–250 μm in z-coordinate, (Figure 6III). In our case, multiple injections points along the z-axis are performed. Therefore, we use a total volume of 0.6 μL for injection. At each injection point, administer 200 nL virus volume.
      Note: Multi-injections at several z-coordinates above the initial injection site can make a broader expression of the virus. We recommend injecting the virus solution in three depths, along the injection site. In our case, we inject at 250 μm, 200 μm and 150 μm with an angle of 35°.
    • h.
      Carefully apply pressure onto the syringe to inject the virus solution into the brain. Control the speed of injection by observing the ink markers on the micropipette and regulating the pressure in parallel. The injection rate should be in a range of ≤ 0.20 μL/min.
    • i.
      Keep the micropipette in place for another 5–10 min after the injection is finished. This allows the dispersion of the virus solution in the brain and minimizes upward flow of virus solution after raising the micropipette.
    • j.
      Withdraw the micropipette slowly.
    • k.
      Clean the injection point with saline/PBS. Put the scalp back to the original place and suture it or front-load a micropipette with surgical glue for sealing the incision (Figure 7I–III).
    • l.
      Carefully administer the glue on the incision and make sure to not let it get under the skin: by moving the scalp from one side to another to ensure the scalp is not adhered to the skull by remnants of the glue, which would be detrimental to the healing process (Figure 7III).
      Note: To front-load the micropipette with surgical glue, first use a small spring scissor to cut the tip of a pulled micropipette to create a large opening of approx. 0.5 mm, then dip it into a surgical glue drop. Capillary forces will suck the surgical glue into the micropipette.
  • 6.
    Histology for characterization of the calcium indicator/opsin co-expression
    Inline graphicTiming: 4–5 days
    Note: 4–6 weeks post injection is the ideal time for virus expression.
    • a.
      Initially transcardially perfuse the animal with PBS to remove blood residues. Afterwards, switch the perfusion solution to 4% PFA to fix the tissue. We suggest using a peristaltic pump for this procedure.
    • b.
      Remove the brain of the animal without damaging it and post-fix it in 4% PFA for 24 h, e.g., in a falcon tube. Use sufficient amount of PFA to cover the brain.
    • c.
      After 24 h, start dehydrating the tissue by transferring the brain to a falcon tube containing 15% sucrose for 24 h.
    • d.
      On the following day, transfer the tissue to a new falcon tube containing 30% sucrose for another 24 h.
      Note: The volume of the sucrose solution should exceed at least 5–10 times the volume of the brain.
    • e.
      Slice the brain region of interest (70 μm thickness) using a Vibratome. In our case, we cut the brain in coronal slices.
    • f.
      Slices should be directly transferred onto object slides.
    • g.
      The slices should be marked with a nucleic acid stain shortly before mounting, e.g., DAPI, following the safety instructions and the protocol of the agent. Mount the slice with Vectashield Mounting Medium and fixate it with a cover slip.
    • h.
      Brain tissue sections should be imaged with a confocal microscope (Figures 8A–8C). Typically, first, an overview image to ascertain the volume of opsin or indicator expression with a 10× objective is advised. Filter settings and laser power levels depend both on the fluorophore and the confocal hardware. Homogenous staining, as described below, is best assessed by a 40× objective, or, in case of axonal or dendritic staining, by a 63× objective.
    • i.
      The optimal titer will then be determined depending on the outcome of the following procedure:
    • j.
      To determine the density of calcium indicator and opsin expressing cells, all cells with smooth and strong expression within the volume are counted separately for each layer by using the cell counter plug-in of ImageJ (Plugins – Analyze – Cell Counter, see section code availability).
    • k.
      The density of cells per mm3 in cortical layers II/III, IV, V/VI are calculated by dividing the total number of cells within the volume of strong yet homogenous fluorescence in each layer by the volume. The two independently injected hemispheres for each titer concentration are considered on this calculation. Further information regarding titration evaluation can be found in the references (Fu et al., 2021; Döring et al., 2018).
      Note: Judging the quality of confocal micrographs depends on several experiment specific factors, such as the targeted cell population, the type of virus used and the brain region. However, in our experiments, we aim for an outcome exhibiting homogeneous expression along the neuronal somata, the absence of blebbing and fluorescent punctae as well as a nucleus free staining. For detailed practical advice and example images, please see Yang et al. (2018).

Figure 3.

Figure 3

Titration procedure to achieve optimal calcium indicator/opsin co-expression

(A–D) Three different titer concentrations of the virus carrying the calcium indicator (A) or opsin (C) information are diluted and injected in two independent hemispheres of two different mice (B and D).

(E) Once the optimal concentration of indicator and opsin is defined, another titration experiment is conducted.

(F) A solution containing both viruses at their optimal concentration (F cI) is injected in two hemispheres of two independent animals. To ensure an optimal co-expression and to exclude any interference of the viruses, a second solution (F cII) containing the optimal concentration of the calcium indicator combined with a changed titer of the virus containing the opsin and a third solution (F cIII) containing the optimal titer of the opsin in combination with a changed titer of the virus containing the calcium indicator information is injected in two hemispheres of two independent animals each.

Figure 4.

Figure 4

Accessing the injection site

(I) An incision is made on the scalp with a scalpel blade to reveal the skull. (II) The skull is cleaned using triangle sponges and PBS. (III) After the skull is thoroughly cleaned, the injection site is marked for drilling the craniotomy. The scale bars are 1 mm.

Figure 5.

Figure 5

Performing the craniotomy to access the brain for virus injection

(I) The skull is thinned out using a dental drill. (II) Overview of the craniotomy shortly before the brain is exposed and a magnification (III) of the preparation of the injection site. Both images show the same time point in the surgery. The scale bars in (I) and (II) are 1 mm, the scale bar in (III) is 0.5 mm.

Figure 6.

Figure 6

Injection of the viral vectors

(I) The micropipette is mounted to the arm of the stereotaxic frame and is positioned in the right angel and coordinate to enter the exposed brain. (II) A piece of parafilm is placed onto the animal’s head and 1 μL of the virus solution is dropped on it. The micropipette is lowered until the tip is placed inside the drop of the solution and front-loaded by applying negative pressure via the syringe connected to the backend of the micropipette. When the virus solution is loaded into the micropipette, withdraw it by operating the micromanipulator and remove the parafilm. (III) The micropipette containing the solution is lowered into the injection site at a depth of 250 μm and the virus is administered at three different depths: 250 μm, 200 μm and 150 μm with an angle of 35°. The micropipette is indicated by white dashed lines. The scale bar in (III) is 0.5 mm.

Figure 7.

Figure 7

Closing the exposed skull

(I) The scalp is carefully moved back to its original position with a triangle sponge and the skin is glued using surgical glue (II). To ensure that the skin is not glued to the skull, use a forceps, and move the glued skin from one side to another. The scale bars are 2 mm.

Figure 8.

Figure 8

Confocal micrographs of GCaMP6f and C1V1T/T co-expressing neurons in mouse visual cortex

(A and B) CamKII-GCaMP6f, represented in green, and CamKII-C1V1T/T in red, are mostly expressed in neurons in layer II/III, V and VI. An excerpt of a co-expressing neuron is highlighted in the upper right corner.

(C) A magnification of an overlay of both channels is showing co-expressing neurons in yellow, indicated by white arrows. The scale bars in (A) and (B) are 100 μm, scale bar in (C) is 25 μm. The scale bars of the insets in (A) and (B) are 25 μm.

Part 2: Chronic window implantation for longitudinal 2-photon calcium imaging

  • 7.
    Virus injection and chronic window implantation:
    Inline graphicTiming: 60–120 min
    • a.
      Prepare the virus solution according to "Protocol Part 1": 1d–f, repeat 2a–d and 3a–g.
    • b.
      Make an incision: cut the scalp with a scalpel blade at the midline sagittal suture, then use a small spring scissor to partially remove the scalp from the skull (Figure 9I–II).
      Inline graphicCRITICAL: the exposed skull surface must be smaller than the shaved region so the adhesive (i.e.: dental cement, UV-Glue, etc.) will not be on top of the hair. The exposed surface should not include the neck/facial muscles for avoiding muscle inflammation caused by the glue. An inflamed muscle may lead to a reduced adhesion of the UV-glue or dental cement.
    • c.
      Peel or cut off the periosteum, clean the exposed skull with triangle sponges drenched in PBS.
    • d.
      Use a scalpel blade to scratch the remaining tissue/fascia from the skull carefully. The surface of the skull needs to be clean and dry.
      Inline graphicCRITICAL: This step is essential for the attachment of adhesive, it is crucial to perform this step with utmost care, even though it might be time consuming. A sloppy cleaning of the skull`s surface might result in an insufficient adhesion of the glue and a loss of the headholder (Hefendehl et al., 2012).
    • e.
      Attach an 18G needle to the stereotaxic frame and match its tip to bregma (Figures 9III and 10I–II). Set the micromanipulator coordinates to zero (Figure 10I).
    • f.
      Use the micromanipulator to move the tip of the needle to the injection point according the required coordinates and mark the position(s) on the skull using ink on the tip of the needle (Figure 11I).
    • g.
      Place a piece of surgical sponge soaked in PBS/Saline on top of the injection site and keep it there for a few minutes in order to soften the skull. This will simplify the drilling and flipping-up of the bone fragment in the following steps.
    • h.
      Remove the sponge and use a biopsy puncher to make a very shallow cut around the central point of the injection site as a landmark for a round craniotomy (Figure 11II). The opening area must be smaller than the coverslip.
    • i.
      Front-load a micropipette with surgical glue and seal the edges of the skin surrounding the exposed skull (Figure 11III).
    • j.
      Drill the skull (according the biopsy puncher mark) very carefully, to thin out the bone but without punctuating the brain (Figure 12I). Clean the surface from the bone scrapings with compressed air and moisture the skull with wet surgical sponges from time to time.
    • k.
      Use a fine forceps to remove the detached skull while the dura remains intact (Figure 12II).
    • l.
      Place a surgical sponge soaked with PBS/Saline on top of the opening area (Figure 12V).).
    • m.
      Locate the micropipette for virus injection to the injection point and front load the virus according to the steps 5a–e from “protocol part 1” (Figure 12IV).
    • n.
      Pull the surgical sponge aside to perform the virus injection according to the steps 5f – j from “protocol part 1” (Figure 12V) and then clean the injection point with saline/PBS carefully (see troubleshooting 1).
      Inline graphicCRITICAL: The exposed brain tissue has to be covered with PBS/Saline or a wet surgical sponge throughout the whole procedure. If the brain tissue is drying out the tissue can be permanently damaged.
    • o.
      Front-load a micropipette with surgical glue for gluing the coverslip in step 7 r.
    • p.
      Take a coverslip with a diameter of 3 or 4 mm and a thickness of 0.1 mm with a small forceps and clean it with a triangle sponge and ETOH 70%, then float it in PBS/Saline solution (see troubleshooting 3).
    • q.
      Remove the surgical sponge from the exposed tissue and moisten the exposed tissue with PBS/Saline drop.
    • r.
      Put the coverslip over the opening area and gently press the coverslip on the skull with an angled forceps to make the coverslip completely adhere to the bone (Figure 12VI).
    • s.
      Use triangle sponges to carefully dry the skull around the coverslip without soaking up the PBS/Saline under the coverslip while applying gentle pressure with an angled forceps.
      Inline graphicCRITICAL: For successful imaging, it is critical to make sure that there are no air bubbles between the tissue and the coverslip. In doubt, leave the bone surrounding the cover slip a little bit wet (see troubleshooting 2).
    • t.
      Use the micropipette loaded with surgical glue to apply small amounts of surgical glue point after point all around the coverslip while applying gentile pressure with an angled forceps (Figure 12VI).
      Inline graphicCRITICAL: Make sure to apply the appropriate amount of glue, so that it will not get into the opening area nor on top of the coverslip.
    • u.
      Maintain the pressure by the angled forceps for approximately 2 min until the glue is dry.
    • v.
      In case the remaining exposed skull is wet, dry it properly by using Q-tips and triangle sponges.
  • 8.
    Holder implantation
    Inline graphicTiming: 10 min
    • a.
      Gently make small incisions on the skull surface with a scalpel blade in a grid pattern for improved adhesion (Figure 13I).
    • b.
      Prepare the adhesive (dental cement or UV-glue) and use a 20G needle for applying it on the exposed skull. Make sure to apply the adhesive only on the exposed skull and not to the skin (Figure 13II).
      Note: The size of the headholder needs to be big enough to cover both hemispheres of the skull (Figure 14). A two to four point fixation with the fixation points located at two hemispheres is mandatory to ensure a movement artefact free recording.
      Inline graphicCRITICAL: When using cement, make sure that the cement is not too fluid nor too dense. When using UV-Glue, apply the glue in small layers and expose it to UV-light after each layer. Do not administer a big amount of UV-glue at once to avoid a hardening of the upper layer while the lower layers remain viscous which can lead to an instability of the headholder (see troubleshooting 4).
    • c.
      While applying the first layer of adhesive around the coverslip, take care to only cover its borders with adhesive. Do not administer adhesive on top of the coverslip since it is very difficult to remove it afterwards, reducing the quality of the imaging experiments.
    • d.
      Apply adhesive to attach the holder to the animal’s skull (Figure 13III). When using UV glue, apply some glue to the base of the head holder and then place it on top of the previously administered layer of UV glue.
    • e.
      Make sure that the adhesive is completely dry before moving the animal from the stereotaxic frame.

Figure 9.

Figure 9

Commencing the surgery for chronic window implantation

The scalp is removed by initially making medial incision with a scissor, followed by cutting the scalp in a circular manner (I–II). The periosteum is peeled off and the skull thoroughly cleaned with sponge and PBS (II). Ink-mark the tip of a needle to locate the bregma for defining the zero-position of the micromanipulator (III). The scale bars are 2 mm.

Figure 10.

Figure 10

Defining the reference position

Locate the needle above bregma (I). Lower the needle until it touches bregma and set the micromanipulator coordinates to zero (II). The scale bar in (I) is 2 mm, the scale bar in (II) is 1 mm.

Figure 11.

Figure 11

Preparing the craniotomy site

The tip of the ink-marked needle is located at the site for performing the craniotomy (I). Here, we located the primary visual cortex V1 at the coordinates AP 3.0 mm ML 2.8 mm. A biopsy punch is used to create a ledger line as a guide for the subsequent craniotomy (II). The borders of the skin are sealed with surgical glue for a more stable preparation (III). The scale bars are 1 mm.

Figure 12.

Figure 12

Accessing the injection site, administering the viral vectors, and implanting of the chronic window

The skull is thinned out with a dental drill at the ledger line previously prepared with the biopsy punch (I). The remains of the thinned skull are flipped up with a forceps to expose the brain (II). Apply PBS or saline on the brain and always remain it hydrated (III). Front-load the virus into the micropipette, (IV) and administer it into the exposed brain (V) according to desired coordinate. Implant the cover glass by placing it onto the opened skull and apply gentle pressure with a curved forceps on it while sealing it with surgical glue filled in a micropipette (VI). After all edges are sealed, keep the pressure upright until the glue is dry. Micropipettes are indicated by white dashed lines (IV and V) and black dashed lines (VI) for better visibility. The scale bars in (I), (II), (III), (IV) and (VI) are 0.5 mm, the scale bar in (V) is 1 mm.

Figure 13.

Figure 13

Implantation of the headholder

Use a scalpel blade to cut small incisions forming a grid pattern into the exposed skull to increase adhesion of the UV-glue in the following step (I). The white dashed lines serve as illustration for the desired pattern (I). Apply UV-glue in layers onto the skull and hardening them with UV-light after placing each layer (II). Implant the holder by gluing it on the last layers (III). The scale bars in (I), (II) are 1 mm, the scale bar in (III) is 2 mm.

Figure 14.

Figure 14

Headholder

We use a circular metal holder for stable fixation of the animal during imaging. The outer diameter is 14 mm, the inner diameter is 7 mm and the thickness 2 mm (Hefendehl et al., 2012).

Part 3: 2-P all-optical experiment

2-P all-optical experiments require a dedicated hardware for, ideally, photostimulate opsin expressing cells while fast full-field imaging the field of view. It has to be noted, that excitation wavelengths that are close to each other might lead to a cross-talk between the channels. We propose to choose the calcium indicator/opsin pair that the spectral wavelengths for imaging and excitation are as separated as possible to avoid cross-talk from 2-P stimulation during image acquisition. An overview of commonly used calcium indicators and opsins are shown in Figure 15 to serve as an orientation for choosing the best suited pair. Note that it is also possible to reach spectral independency using a blue shifted opsin like the newly developed stCoChR, a soma-targeted variant of the opsin CoChR, while 2-P imaging the neuronal micronetwork with the red-shifted calcium indicator jRCaMP1a (Forli et al., 2021).

  • 9.
    2-P calcium imaging combined with 2-P optogenetics
    Inline graphicTiming: 1 h
    Note: We advise to perform imaging experiments within 4 to 6 weeks post injection to ensure functional co-expression of calcium indicator and opsin. Furthermore, transient inflammation caused by the surgical procedure can cease.
    • a.
      Transfer the animal to the microscope (Figure 16). Mount the headholder (Hefendehl et al., 2012) to a restraining device under the microscopes’ objective.
      Note: This protocol can be applied to both, anesthetized and awake imaging experiments. If the experiment is carried out in awake animals, perform a habituation prior to the imaging session. This is necessary to reduce the stress load of the animal during the experiment and consequently affects the quality of your data. Plan approximately 5 days for habituation for each animal. On the first 2 days, handle the animal 15–20 min and let it get used to the experimenter. On day 3 and 4, restrain the animal’s head and on day 5 restrain the animal under the microscope without imaging.
    • b.
      Use a femtosecond pulsed laser and resonant scanner for fast full-field scanning up to 35 Hz for imaging the calcium indicator expressing cells. In our case, we use a Titan-Sapphire (Ti:Sa) laser at 920 nm (Figure 17III) (see troubleshooting 5). For a schematic overview of the microscopic system used for our experiments, please see Fu et al. (2021) and Döring et al. (2018).
    • c.
      Images were acquired by a Zeiss W-Plan-Apochromatic 20 × DIC VIS-IR objective (NA = 1.0) (Figure 17II), resulting in a field of view (FOV) of 466 × 466 μm. However, the actual dimension of the recorded FOV depends on the used objective and its magnification properties. Typically, the FOV is represented in a matrix of 512 × 512 pixels (see troubleshooting 3).
    • d.
      For opsin excitation, an independent laser should be used to temporally uncouple opsin and indicator excitation, enabling a simultaneous readout of the microcircuits response upon optogenetic manipulation of single neurons. In our case, we used an optical parametric oscillator (OPO) at 1100 nm pumped by a Ti:Sa laser at 800 nm (Figure 17V).
      Note: In resonant scanning full field mode of our experiment, the pixel dwell time ranges at 1 μs, which might be too short to efficiently excite an opsin. To achieve longer pixel dwell times, either use a second galvo-resonant mirror system or a spatial light modulator for scanless excitation of opsin expressing cells.
    • e.
      Signals may be collected by a dual – PMT solution: The first PMT is equipped with a spectral bandpass filter matching the emission properties of the calcium indicator. A second PMT needs to be operated with a bandpass filter matching the properties of the fluorescence reporter of the opsin (Figure 17II).
      Note: During the experiment, the co-expression of the recorded field of view needs to be evaluated. Therefore, two PMTs are necessary to identify co-expressing neurons in the ongoing experiment.
    • f.
      A region of interest (ROI)-based raster-scan stimulation of previously identified co-expressing cells is carried out. Alternatively, if a spatial light modulator (SLM) is implemented in the microscopes beam path, excitation is conducted in a scanless manner by modulating the electric field of the laser beam, enabling the generation of multiple focus points (Figure 17I). For a more detailed and technical explanation, please see Papagiakoumou et al. (2010).
    • g.
      Stimulation is delivered by a pixel dwell time of 6 μs, in case of C1V1, but this strongly depends on the opsin used, and a line scan resolution of 0.5–2 μm (Figure 17I) to cover the entire membrane surface area containing the opsins. Note, that the effective spatial coverage is determined by the point spread function (PSF). It is advisable to measure the PSF as part of the regular quality control of the used microscope.

Figure 15.

Figure 15

A selection of calcium indicator opsin pairs and their spectral properties under a two-photon regime

Cross-talk between indicator and opsin can be avoided by choosing a pair with non-overlapping excitation and emission wavelengths. For example, we used the combination of GCaMP6f, excited at 920 nm, and C1V1T/T was excited above 1100 nm to reach cross-talk free imaging (Chen et al., 2019; Fu et al., 2021; Lin et al., 2013; Ronzitti et al., 2017a; Papagiakoumou et al., 2018; Chettih and Harvey, 2019).

Figure adapted from Chen et al. (2018).

Figure 16.

Figure 16

A head-restrained mouse under the objective of a 2-P microscope.

Figure 17.

Figure 17

Overview of the user interface of the software Imspector controlling the 2-P microscope

Region of interest (ROI) for photostimulation are defined and settings such as pixel dwell times and line width can be adapted (I). The recorded field of view for functional calcium imaging and the sensitivity of the PMTs are adjusted (II). The wavelength of the laser for calcium indicator (III) and opsin excitation is set and the shutters are controlled (IV). Properties of the lasers for photostimulation and imaging can be modified (V). The figure is published with the kind permission of LaVision BioTec GmbH, Bielefeld, Germany.

Part 4: Identification and binarization of putative AP-related calcium transient

  • 10.
    Identification and binarization of putative AP-related calcium transient.
    Inline graphicTiming: 5–6 h
    • a.
      Export the imaging data as a series of single tiffs or tiff stack.
    • b.
      In functional 2-P imaging, motion artefacts induced by heartbeat or breathing, and, especially in awake recordings, movement of the animal can affect the quality of the measurement. Motion artefacts in x–y direction can be compensated for by performing a motion correction, in our case we use the moco plugin of ImageJ (see section code availability). Here, all images within a time-lapse image series are aligned with a reference image. The reference image is a single frame from the entire time-series that comprises a high amount of visible neurons. Alternatively, an average intensity projection of the entire time-series can be calculated using the ImageJ function “z-project” and chose “average” projection. This can be necessary if the signal-noise ratio (SNR) is low. Note, that also other projection types can be used depending on the quality of your recording, e.g., a maximum or a median intensity projection if the contrast is low.
      Note: Motion correction is crucial for the next step to guarantee that an identified neuron does not move out of the boundaries defining its outline (see troubleshooting 4).
    • c.
      For the identification of neuronal somata in the microcircuit, each soma is identified as functional unit and is defined and segmented as a ROI. In our case, we use a custom written Matlab script. The motion corrected single tiffs or the tiff stacks are loaded into Matlab and an average intensity projection is calculated. The projection is used to mark all identifiable neurons with polygon shapes, defining them as ROIs (Figures 18A and 18B). Especially for neurons located at the boarders of the FOV, the contrast can often be low. Therefore, the Matlab figure properties can be used to adapt brightness properties of the projection, simplifying the identification of neurons exhibiting a weak baseline fluorescence. These figure properties can be accessed choosing “Edit” and “Colormap”.
      Note: In recent years a variety of tools based on mathematical models were developed to automatize the step of segmentation, like deep-learning based algorithms (Soltanian-Zadeh et al., 2019; Klibisz et al., 2017). However, these algorithms are reaching their limits when applied on datasets of varying quality, e.g. datasets of a particularly low SNR. Furthermore, depending on the algorithm used, a dedicated training set is needed. We suggest to perform a manual segmentation to ensure a reliable identification of neuronal somata in the recorded microcircuit.
    • d.
      The change in fluorescence for each neuron, identified as a functional unit, needs to be represented as a series of values in an array for further analysis. For this, average all intensity values of all pixels within each ROI for every image of the series of single tiffs or the tiff stack, resulting in an intensity trace for every ROI (see troubleshooting 5).
    • e.
      Define a 10 s long period of quiescence characterized by the absence of functional calcium transient or signal fluctuations as baseline F0 separately for each neuron and calculate the relative change of fluorescence for each time point F with ΔF=FF0F0 (Figure 18C).
      Inline graphicCRITICAL: The absolute level of intensity is based on multiple factors such as autofluorescence, the expression level of the calcium indicator, or the influence of stray light. Therefore, it is recommended to calculate the relative change of fluorescence. Because these dynamic changes, depending on their temporal dynamics, are most likely due to changes in intracellular calcium levels and can therefore be termed as calcium transients.
    • f.
      To verify that all identified functional units exhibit physiological meaningful signal components as expected from neurons, the data is loaded into IGOR Pro. With a custom written code each intensity trace is smoothed by a Gaussian filter and inspected for ongoing neuronal activity during the measurement. At this step, unwanted or falsely identified structures can be manually excluded from the analysis (Figure 19A).
    • g.
      Calcium indicators show rather stereotypical signal characteristics. At this step, we are inspecting every intensity trace to identify the presence of these characteristic components. In our case, we use the calcium indicator GCaMP6f, exhibiting a sharp onset, followed by an exponential decay. These dynamics are modelled in our analysis routine for each intensity trace, initially by detecting the onset, peak and offset of an AP calcium transient by a standard deviation-based threshold algorithm:
      • i.
        The mean value of the intensity trace is calculated.
      • ii.
        Amplitudes exceeding 3–3.5 standard deviations (SD) above the mean are detected (Figure 19B). By specifying a refraction time, the minimum time difference that must lie between two peaks can be defined.
      • iii.
        For peak identification of calcium transients, two criteria need to be fulfilled: the first derivative of the amplitude has to cross zero, the second derivate has to be negative (Figure 19B).
      • iv.
        The onset of the calcium transient is identified as the first data point that dropped below 0.5 SD of the baseline.
      • v.
        The offset of the calcium transient is determined by fitting an exponential curve to the trace, mimicking the τoff of the calcium indicator, and identifying the data point after the peak when the fitted curve reaches 0.5 SD of the baseline (Figure 19C). Without a priori knowledge of the calcium indicator dynamics, a reliable identification of AP-related calcium transients is not advisable.
      • vi.
        If necessary, peak locations can be corrected manually.
      • vii.
        Intensity traces are binarized such as that peaks are represented as 1 and periods of quiescence are represented as 0.
        Note: The here proposed pipeline for binarizing calcium transients is based on Matlab and IGOR Pro. However, the procedures can also be implemented in any other programming language or analysis software, e.g. Python, LabView, Java and many others.

Figure 18.

Figure 18

Preprocessing and segmentation of neuronal somata for subsequent analysis

Prior segmentation, basic parameters of the recording need to be stated: an average intensity projection (AvgIP) is calculated based on the stated number of frames that should be considered in the projection.

(A) The dimensions of the field of view need to be stated in μm and the sample rate of the image acquisition is reported (A).

(B) Each somata in the field of view is now labeled by drawing a polygon around its border (B). This is reiterated for all visible neurons in the field of view. The averaged intensity of the enclosed pixels over time is calculated for each ROI and displayed as intensity trace. The scale bars in (B) are 20 μm.

(C) To calculate the relative change of fluorescence, a baseline free of activity is defined for each intensity trace, indicated by the green dashed boxes (C).

Figure 19.

Figure 19

Binarization of putatively AP related calcium transients

(A) The imported data (blue) is initially smoothed by a gaussian filter (red) and intensity traces are inspected for the presence of functional calcium transients of physiological origin. At this step, every intensity trace that is not exhibiting calcium transients or does not represent a somata can be excluded from further analysis.The scale bar is 100% dF/F.

(B) Calcium transients are identified by a standard deviation-based threshold. The onset of the transient is detected when the amplitude of the peak falls below 0.5 SD of the baseline value. The grey line indicates the calculated first derivative of the smoothed raw trace. The scale bar is 100% dF/F.

(C) The offset of a calcium transient is then calculated by fitting an exponential curve (black) to the peak to model the decay dynamics of the calcium indicator. When the fitted curve crosses 0.5 SD of the baseline, the offset is detected. The scale bar is 100% dF/F.

Expected outcomes

The proposed protocol enables the experimenter to master the first steps of a 2-P all-optical experiment in vivo. Following the protocol, cellular co-expression of both, calcium indicator and opsin, will be achieved, representing the prerequisite for conducting all-optical physiology experiments. Meanwhile, cell damage by overexpression or insufficient co-expression can be avoided (Fois et al., 2014)

The described step-by-step guidelines for a clean and accurate implanted chronic window as well as a stable headholder preparation is suitable for longitudinal approaches over several weeks while observing the same microcircuit. The field of view can comprise up to several hundred neurons, which contain cells that functionally express both, indicator and opsin. Under this condition, the microcircuit can be manipulated on single-cell level. Since the excitation bands of calcium indicators and opsins can have an overlap, a cross-talk in the calcium indicators readout channel during opsin excitation can occur. To reduce the risk of cross-talk in all-optical approaches, a calcium indicator opsin pair with non-overlapping action spectra is preferably chosen (Fu et al., 2021).

The consecutive analysis aims at the avoidance of false-positive results, i.e., falsely identifying a putative AP related calcium transient. A subsequent binarization of the detected calcium transient facilitates the application of analysis methods originating from electrophysiology. Compared to electrophysiological methods, with clearly superior temporal precision and directly recording the signal of interest, i.e., APs, 2-P all-optical in vivo experiments carry the advantage of a superior spatial resolution and enable for manipulating microcircuits on single-cell level in longitudinal studies. Employing 2-P all-optical methods in rodent models of disease provide a truly promising approach to deepen our knowledge on the causal relations between single-cell dysregulation and microcircuit performance, ultimately shining light on the role of cortical microcircuit function and dysfunction in disease development.

Limitations

Neuron number and network limitations

The expression of the gene of interest in this protocol is confined to a restricted area according to the injection site. Thus, only a limited number of cells are transfected. The experimenter can only investigate an a priori defined micronetwork comprising several hundred neurons, therefore conclusions about the interaction with other cortical areas cannot be drawn. Nonetheless, the method is well suited to explore subtle changes in a micronetwork, especially under the perspective of cell-specific responses and modulations in vivo on single cell resolution, where other methods like electrophysiological approaches reach their limits.

Experimental timeframe

Since longitudinal studies are on the rise, and the experiments are performed within the same animal over a longer time, it has to be noted that the natural healing process of the skull leads to a slow but steady closure of the craniotomy. Therefore, the time window for conducting 2-P all-optical experiments is limited. Certainly, the here proposed protocol can be used for longitudinal experiments in a timeframe of weeks, but not months. For further information on how to optimize the chronic window preparation and maximize the time window for imaging, please see the troubleshooting section number 4.

Opsin activation by raster scanning

Raster scan methods represent a reliable approach when a specific neuron or several neurons successively one after another need to be excited. However, if several neurons of a microcircuit need to be excited simultaneously, the raster scan method is not fast enough: the minimal excitation volume of a microscope is defined by the full-width at half maximum of the point spread function (PSF). The radial PSF can be estimated by the magnification of the chosen objective and the wavelength for opsin excitation and can be calculated with Δrλ22NA (Ronzitti et al., 2017b). The whole membrane of the opsin-expressing neuron needs to be covered during photostimulation. For C1V1, a laser operating at 1100 nm, 6 μs pixel dwell time and an objective with a NA = 1.0 can be employed. Under this condition, it will take up to 16 ms for a neuron of an average surface of 20 × 20 μm to be excited. For 6 neurons, the total excitation time is around 96 ms, without taking into account the time moving from target to target. If the experiment requires the simultaneous excitation of a bigger number of neurons, only an approach based on spatial light modulators can achieve the necessary excitation times.

Analysis

The proposed analysis pipeline takes advantage of the rather stereotypical signal dynamics and waveforms of AP related calcium transients. Methodologically, the somatic calcium influx and efflux is convolved with the binding dynamics of the calcium indicator. These dynamics can be described based on parameters as the rise time, the decay and the duration of the transients. The rise time of a calcium indicator is based on its dissociation constant KD: a small KD causes a high affinity to calcium and therefore, considering the fast calcium influx, results in a sharp onset of the recorded calcium transient. In consequence to the high affinity, the off dynamics is inherently slow, and not reflecting the true underlying dynamics of the intracellular calcium concentration. In addition, the re-uptake of calcium in intracellular stores, reflecting the main source of intracellular calcium, depends on ATP-driven pumps, such as the SERCA: Generally, pumps are slower than channels, so the efflux is slower than the influx which is governed by voltage-gated or ligand gated calcium channels. Our pipeline is developed and well tested for the genetically encoded calcium indicator GCaMP6f and its dynamics (Ellwardt et al., 2018; Arnoux et al., 2018; Fu et al., 2021). However, as long as the dynamics of another calcium indicator are identical or similar, such as it is the case for RCaMP6f, the pipeline will still perform in the proposed quality. The pipeline reaches its limits when using calcium indicators that exhibit lower affinities towards calcium or different dynamics. It has to be noted, that, in general, every analytical pipeline for identification of calcium transients of physiological origin has to be adapted to the used calcium indicator.

Due to the highly variable quality of all-optical experiments, e.g., in terms of SNR, every algorithm, potentially, can lead to false-positive result. Therefore, a manual inspection of the binarized data is considered important, independent from the chosen method or algorithm used to extract AP related calcium transients from an intensity trace. We advise for a rather conservative approach to identify AP related calcium transients to avoid any false-positive results, even if it means an increase in false-negative results.

Troubleshooting

Problem 1

Bleeding while performing the craniotomy (step 4, step 7).

Potential solution

Bleedings commonly occur while performing the craniotomy, especially by flipping up the remaining bone fragment with the forceps. To solve this issue, first, place a surgical sponge soaked with saline onto the bleeding cranial opening and wait for several minutes for stopping the bleeding. Then apply a triangle sponge gently on top of the surgical sponge to soak up the liquid. Rehydrate the surgical sponge on the opening area by applying a drop of saline onto it. Repeat the process several times until the area is clean.

Problem 2

The implanted chronic window becomes intransparent (step 7).

Potential solution

An opaque cranial window will directly interfere with the quality of your subsequent 2-P all-optical experiments. A smooth and clean craniotomy will reduce the risk of an intransparent chronic window. Insufficient cleaning of the opening area can lead to opacity. After the virus injection, clean the opening area with a surgical sponge soaked with saline several times (see problem number 1).

Air bubbles under the cranial window will create an artefact during the image acquisition. Therefore, during chronic window sealing, enrich the volume under the coverslip with saline, which will help to reduce forming air bubbles. If any bubble is seen under the window, repeat the procedure. The surrounding solution should be carefully dried by triangle sponge before sealing the coverslip onto the skull. During sealing, avoid any surgical glue to reach the brain tissue or get on top of the coverslip.

Problem 3

Limited imaging area through chronic window (step 7, step 9).

Potential solution

In our experiment, the coverslip has a diameter of Ø 3 or 4 mm. To optimize the area of cortex that can be effectively imaged, the size of the craniotomy has to be maximized while maintaining an adhesion surface sufficient for gluing the coverslip. In our case, we suggest a maximum craniotomy diameter of 2.5 mm. However, if the examination of several microcircuits in the same cortical area is required, a chronic window of a bigger diameter can be employed, as long as the coverslip does not collide with the headholder. If the experimental design requires access to the entire dorsal cerebral cortex, ‘see-shells’ can be used as a possible solution, as proposed by Ghanbari et al. (2019).

Problem 4

Movement artefacts during the 2-P imaging lead to signal loss (step 8, step 10).

Potential solution

During single-plane imaging, distortions in z-direction should be avoided since post hoc correction cannot be conducted. Therefore, it is important to ensure mechanical stability of the animal during the experiment by using an adequate head holder. One-point fixations on only one hemisphere of the skull, often designed as a metal bar connected to the skull by dental cement or UV-glue may not provide sufficient stability. We suggest a headholder with two-point fixation. A maximization of the adhesive surface between holder and skull is as well recommended.

Problem 5

The recorded intensity trace comprises a non-linear, exponential decay (step 9, step 10)

Potential solution

During the first seconds of data acquisition, it is often happening that the intensity trace displays a non-linear, exponential decrease which cannot be compensated for. Non-linear manipulations are highly problematic due to the effect onto the dynamics of the calcium transients. Reducing the intensity of the laser for calcium indicator excitation can help to minimize the initial non-linear bleaching, but comes at the price of a lower SNR.

Resource availability

Lead contact

Further information and requests for resources and reagents should be directed to and will be fulfilled by the lead contact, Roberta Guimarães Backhaus (roberta.backhaus@lir-mainz.de).

Materials availability

This study did not generate new unique reagents.

Acknowledgments

The German Research Council (DFG CRC128 B9) and Boehringer Ingelheim foundation supported this study.

Author contributions

R.G.B., T.F., H.B., and A.S. wrote the protocol, T.F. performed the experiments, and R.G.B. and H.B. created the figures.

Declaration of interests

The authors declare no competing interests.

Contributor Information

Roberta Guimarães Backhaus, Email: roberta.backhaus@lir-mainz.de.

Ting Fu, Email: ting.fu@unimedizin-mainz.de.

Data and code availability

All original code necessary for analysis has been deposited at the repositories on GitHub listed below and is publicly available as of the date of publication. DOIs are listed in the key resources table.

Cell-Counter plugin for ImageJ: https://imagej.nih.gov/ij/plugins/cell-counter.html

Motion correction plugin for ImageJ: https://github.com/NTCColumbia/moco

Custom written code for segmentation (MATLAB): https://github.com/Strohlab/ROIMeasure

Custom written code for calcium transient detection and binarization (IGOR Pro): https://github.com/Strohlab/Igor-Spike-Detection

References

  1. Arnoux I., Willam M., Griesche N., Krummeich J., Watari H., Offermann N., Weber S., Narayan Dey P., Chen C., Monteiro O., et al. Metformin reverses early cortical network dysfunction and behavior changes in Huntington's disease. Elife. 2018;7:e38744. doi: 10.7554/eLife.38744. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Aschauer D.F., Kreuz S., Rumpel S. Analysis of transduction efficiency, tropism and axonal transport of AAV serotypes 1, 2, 5, 6, 8 and 9 in the mouse brain. PLoS One. 2013;8:e76310. doi: 10.1371/journal.pone.0076310. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Bennett A., Patel S., Mietzsch M., Jose A., Lins-Austin B., Yu J.C., Bothner B., Mckenna R., Agbandje-Mckenna M. Thermal stability as a determinant of AAV serotype identity. Mol. Ther. Methods Clin. Dev. 2017;6:171–182. doi: 10.1016/j.omtm.2017.07.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bohlen M.O., Mccown T.J., Powell S.K., El-Nahal H.G., Daw T., Basso M.A., Sommer M.A., Samulski R.J. Adeno-associated virus capsid-promoter interactions in the brain translate from rat to the nonhuman primate. Hum. Gene Ther. 2020;31:1155–1168. doi: 10.1089/hum.2020.196. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Chen I.W., Papagiakoumou E., Emiliani V. Towards circuit optogenetics. Curr. Opin. Neurobiol. 2018;50:179–189. doi: 10.1016/j.conb.2018.03.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Chen I.W., Ronzitti E., Lee B.R., Daigle T.L., Dalkara D., Zeng H., Emiliani V., Papagiakoumou E. In vivo submillisecond two-photon optogenetics with temporally focused patterned light. J. Neurosci. 2019;39:3484–3497. doi: 10.1523/JNEUROSCI.1785-18.2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Chen T.W., Wardill T.J., Sun Y., Pulver S.R., Renninger S.L., Baohan A., Schreiter E.R., Kerr R.A., Orger M.B., Jayaraman V., et al. Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature. 2013;499:295–300. doi: 10.1038/nature12354. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Chettih S.N., Harvey C.D. Single-neuron perturbations reveal feature-specific competition in V1. Nature. 2019;567:334–340. doi: 10.1038/s41586-019-0997-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Döring J., Fu T., Arnoux I., Stroh A. Springer Protocols; 2018. Concepts of All-Optical Physiology. Optogenetics: A Roadmap. [Google Scholar]
  10. Dubbs A., Guevara J., Yuste R. Moco: fast motion correction for calcium imaging. Front. Neuroinform. 2016;10:6. doi: 10.3389/fninf.2016.00006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Ellwardt E., Pramanik G., Luchtman D., Novkovic T., Jubal E.R., Vogt J., Arnoux I., Vogelaar C.F., Mandal S., Schmalz M., et al. Maladaptive cortical hyperactivity upon recovery from experimental autoimmune encephalomyelitis. Nat. Neurosci. 2018;21:1392–1403. doi: 10.1038/s41593-018-0193-2. [DOI] [PubMed] [Google Scholar]
  12. Fois C., Prouvot P.H., Stroh A. A roadmap to applying optogenetics in neuroscience. Methods Mol. Biol. 2014;1148:129–147. doi: 10.1007/978-1-4939-0470-9_9. [DOI] [PubMed] [Google Scholar]
  13. Forli A., Pisoni M., Printz Y., Yizhar O., Fellin T. Optogenetic strategies for high-efficiency all-optical interrogation using blue-light-sensitive opsins. Elife. 2021;10:e63359. doi: 10.7554/eLife.63359. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Fu T., Arnoux I., Döring J., Backhaus H., Watari H., Stasevicius I., Fan W., Stroh A. Exploring two-photon optogenetics beyond 1100 nm for specific and effective all-optical physiology. iScience. 2021;24:102184. doi: 10.1016/j.isci.2021.102184. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Ghanbari L., Carter R.E., Rynes M.L., Dominguez J., Chen G., Naik A., Hu J., Sagar M.A.K., Haltom L., Mossazghi N., et al. Cortex-wide neural interfacing via transparent polymer skulls. Nat. Commun. 2019;10:1500. doi: 10.1038/s41467-019-09488-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Hefendehl J.K., Milford D., Eicke D., Wegenast-Braun B.M., Calhoun M.E., Grathwohl S.A., Jucker M., Liebig C. Repeatable target localization for long-term in vivo imaging of mice with 2-photon microscopy. J. Neurosci. Methods. 2012;205:357–363. doi: 10.1016/j.jneumeth.2011.10.029. [DOI] [PubMed] [Google Scholar]
  17. Kay M.A., Glorioso J.C., Naldini L. Viral vectors for gene therapy: the art of turning infectious agents into vehicles of therapeutics. Nat. Med. 2001;7:33–40. doi: 10.1038/83324. [DOI] [PubMed] [Google Scholar]
  18. Klibisz A., Rose D., Eicholtz M., Blundon J., Zakharenko S. In: Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support. Cardoso M., et al, editors. Springer; 2017. Fast, simple calcium imaging segmentation with fully convolutional networks; pp. 285–293. [Google Scholar]
  19. Lin J.Y., Knutsen P.M., Muller A., Kleinfeld D., Tsien R.Y. ReaChR: a red-shifted variant of channelrhodopsin enables deep transcranial optogenetic excitation. Nat. Neurosci. 2013;16:1499–1508. doi: 10.1038/nn.3502. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Nidetz N.F., Mcgee M.C., Tse L.V., Li C., Cong L., Li Y., Huang W. Adeno-associated viral vector-mediated immune responses: understanding barriers to gene delivery. Pharmacol. Ther. 2020;207:107453. doi: 10.1016/j.pharmthera.2019.107453. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Papagiakoumou E., Anselmi F., Begue A., de Sars V., Gluckstad J., Isacoff E.Y., Emiliani V. Scanless two-photon excitation of channelrhodopsin-2. Nat. Methods. 2010;7:848–854. doi: 10.1038/nmeth.1505. [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Papagiakoumou E., Ronzitti E., Chen I.W., Gajowa M., Picot A., Emiliani V. In: Optogenetics: A Roadmap. Stroh A., editor. Humana Press; 2018. Two-photon optogenetics by computer-generated holography; pp. 175–197. [Google Scholar]
  23. Prakash R., Yizhar O., Grewe B., Ramakrishnan C., Wang N., Goshen I., Packer A.M., Peterka D.S., Yuste R., Schnitzer M.J., Deisseroth K. Two-photon optogenetic toolbox for fast inhibition, excitation and bistable modulation. Nat.Methods. 2012;9:1171–1179. doi: 10.1038/nmeth.2215. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Reardon T.R., Murray A.J., Turi G.F., Wirblich C., Croce K.R., Schnell M.J., Jessell T.M., Losonczy A. Rabies virus CVS-N2c(DeltaG) strain enhances retrograde synaptic transfer and neuronal viability. Neuron. 2016;89:711–724. doi: 10.1016/j.neuron.2016.01.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Ronzitti E., Conti R., Zampini V., tanese D., Foust A.J., Klapoetke N., Boyden E.S., Papagiakoumou E., Emiliani V. Submillisecond optogenetic control of neuronal firing with two-photon holographic photoactivation of chronos. J. Neurosci. 2017;37:10679–10689. doi: 10.1523/JNEUROSCI.1246-17.2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Ronzitti E., Ventalon C., Canepari M., Forget B.C., Papagiakoumou E., Emiliani V. Recent advances in patterned photostimulation for optogenetics. J. Opt. 2017;19:113001. [Google Scholar]
  27. Schneider C.A., Rasband W.S., Eliceiri K.W. NIH Image to ImageJ: 25 years of image analysis. Nat. Methods. 2012;9:671–675. doi: 10.1038/nmeth.2089. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Soltanian-Zadeh S., Sahingur K., Blau S., Gong Y., Farsiu S. Fast and robust active neuron segmentation in two-photon calcium imaging using spatiotemporal deep learning. Proc. Natl. Acad. Sci. U S A. 2019;116:8554–8563. doi: 10.1073/pnas.1812995116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  29. Thompson K.R., Towne C. In: Optogenetics: A Roadmap. Stroh A., editor. Humana Press; 2018. A Hitchhiker’s guide to the selection of viral vectors for optogenetic studies; pp. 1–23. [Google Scholar]
  30. Tornabene P., Trapani I. Can adeno-associated viral vectors deliver effectively large genes? Hum. Gene Ther. 2020;31:47–56. doi: 10.1089/hum.2019.220. [DOI] [PubMed] [Google Scholar]
  31. Wu M.R., Nissim L., Stupp D., Pery E., Binder-Nissim A., Weisinger K., Enghuus C., Palacios S.R., Humphrey M., Zhang Z., et al. A high-throughput screening and computation platform for identifying synthetic promoters with enhanced cell-state specificity (SPECS) Nat. Commun. 2019;10:2880. doi: 10.1038/s41467-019-10912-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Yang J.-W., Prouvot P.-H., Stroh A., Luhmann H.J. In: Optogenetics: A Roadmap. Stroh A., editor. Humana Press; 2018. Combining optogenetics with MEA, depth-resolved LFPs and assessing the scope of optogenetic network modulation; pp. 133–152. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All original code necessary for analysis has been deposited at the repositories on GitHub listed below and is publicly available as of the date of publication. DOIs are listed in the key resources table.

Cell-Counter plugin for ImageJ: https://imagej.nih.gov/ij/plugins/cell-counter.html

Motion correction plugin for ImageJ: https://github.com/NTCColumbia/moco

Custom written code for segmentation (MATLAB): https://github.com/Strohlab/ROIMeasure

Custom written code for calcium transient detection and binarization (IGOR Pro): https://github.com/Strohlab/Igor-Spike-Detection


Articles from STAR Protocols are provided here courtesy of Elsevier

RESOURCES