MUA rate was smoothed with a Gaussian (for constant light stimulation: SD = 12.5 ms; for stimulation with pulse trains and sinusoids: SD = 1.25 ms; in each case truncated at ± 2 SD) to obtain the spike density.
To quantify the locking of neuronal responses to optogenetic stimulation, we calculated the Pearson correlation coefficient between MUA spike density and laser intensity as a function of time shift between them.
LFP power spectra were calculated for data epochs that were adjusted for each frequency to have a length of 4 cycles and moved over the data in a sliding-window fashion in 1 ms steps. Each epoch was multiplied with a Hann taper, Fourier transformed, squared and divided by the window length to obtain power density per frequency. For the different stimulation frequencies f, LFP power is shown as ratio of power during stimulation versus pre-stimulation baseline (−0.5 s to −0.2 s relative to stimulation onset).
MUA-LFP locking was quantified by calculating the MUA-LFP PPC (pairwise phase consistency), a metric that is not biased by trial number, spike count or spike rate(Vinck et al., 2010). Spike and LFP recordings were always taken from different electrodes. For each spike, the surrounding LFP was Hann tapered and Fourier transformed. Per spike and frequency, this gave the MUA-LFP phase, which should be similar across spikes, if they are locked to the LFP. This phase similarity is quantified by the PPC as the average phase difference across all possible pairs of spikes. For a given MUA channel, MUA-LFP PPC was calculated relative to all LFPs from different electrodes and then averaged.
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this article to respond.