Protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice.
The 2 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Step-by-step method details › Imaging data processing pipeline ↔ CalciumDataProcessing/Preprocessing/MotionCorrection/DriftCorrection.m, lines 85–120 · score 0.59 · motion correction, imaging stacks, raw
- [2] § Before you begin ↔ BehavioralDataProcessing/FigS1E_SimulationTtestCpr.m, the whole file · a weak match · score 0.55 · Remote memory, memory retrieved, behaviorally, manipulation
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 120 lines · 4.1 KB · GPL-3.0 · 1 match
- clc; clear;
- addpath("E:\Data Analysis\2P Imaging\Programs\Fiji.app\scripts");
- addpath('D:\Git\FindUSN\CalciumDataProcessing\Preprocessing\MotionCorrection');
- % Select the root folder to process
- rootFolder = uigetdir(pwd, 'Select Root Folder to Process');
- if rootFolder == 0
- error('Folder selection canceled.');
- end
- fprintf('Selected folder: %s\n', rootFolder);
- % Start MIJ once
- Miji(false);
- % Use a queue to hold folders to process (start with root)
- foldersToProcess = {rootFolder};
- processedFolders = {}; % To avoid repeated processing if needed
- while ~isempty(foldersToProcess)
- currentFolder = foldersToProcess{1};
- foldersToProcess(1) = []; % Dequeue
- % Check if folder contains any .raw files
- rawFiles = dir(fullfile(currentFolder, '*.raw'));
- hasRaw = ~isempty(rawFiles);
- % Check if folder contains Image.tif (skip if yes)
- tifFiles = dir(fullfile(currentFolder, 'Image.tif'));
- hasTif = ~isempty(tifFiles);
- if hasRaw && ~hasTif
- fprintf('Processing folder: %s\n', currentFolder);
- % Use the first .raw file found
- rawFileName = rawFiles(1).name;
- rawFilePath = fullfile(currentFolder, rawFileName);
- % Open raw file in MIJ
- openRawInMIJ(rawFilePath);
- % Get reference frame (first frame)
- img = uint8(MIJ.getCurrentImage);
- ref = img(:,:,1);
- % Save Reference.tif in current folder
- imwrite(ref, fullfile(currentFolder, 'Reference.tif'));
- % Load Reference.tif back for registration
- imref = mijread(fullfile(currentFolder, 'Reference.tif'));
- % Perform motion correction and processing
- performMotionCorrection(rawFilePath, currentFolder);
- % Clear variables before next iteration
- clear img ref imref;
- end
- % Enqueue subfolders to process
- subItems = dir(currentFolder);
- % Remove '.' and '..' and files (keep folders only)
- subFolders = subItems([subItems.isdir] & ~ismember({subItems.name}, {'.','..'}));
- for i = 1:length(subFolders)
- foldersToProcess{end+1} = fullfile(currentFolder, subFolders(i).name);
- end
- end
- % Exit MIJ once after all processing
- MIJ.exit;
- disp('All folders processed.');
- %% --- Subfunctions ---
- function openRawInMIJ(rawPath)
- % Opens raw file in MIJ with fixed parameters (modify if needed)
- [folder, fileName, ext] = fileparts(rawPath);
- fprintf('Opening raw file in MIJ: %s\n', rawPath);
- MIJ.run('Raw...', ['open=', fileName, ext, ' image=[16-bit Unsigned] width=512 height=512 offset=0 number=2800 gap=0 little-endian']);
- MIJ.run('Size...', 'width=256 height=256 depth=2800 constrain average interpolation=None');
- MIJ.run('8-bit');
- end
- function performMotionCorrection(rawFilePath, currentFolder)
- % Perform motion correction steps in MIJ
- [~, rawFileName, ext] = fileparts(rawFilePath);
- % Open raw file again for registration
- MIJ.run('Raw...', ['open=', rawFileName, ext, ' image=[16-bit Unsigned] width=512 height=512 offset=0 number=2800 gap=0 little-endian']);
- MIJ.run('Size...', 'width=256 height=256 depth=2800 constrain average interpolation=None');
- MIJ.run('8-bit');
- % Concatenate all open images
- MIJ.run('Concatenate...', 'all_open title=[Corrected]');
- % Run StackReg rigid body registration
- MIJ.run('StackReg Ming', 'transformation=[Rigid Body]');
- % Get corrected image stack
- temp = uint8(MIJ.getCurrentImage);
- % Max intensity projection
- MIJ.run('Z Project...', 'projection=[Max Intensity]');
- AVG = uint8(MIJ.getCurrentImage);
- % Close all open images in MIJ
- MIJ.run('Close All');
- % Save processed images in current folder
- IMG = temp(:,:,2:end); % skip first image (reference)
- imwrite(IMG(:,:,1), fullfile(currentFolder, 'Image.tif'));
- for k = 2:size(IMG,3)
- imwrite(IMG(:,:,k), fullfile(currentFolder, 'Image.tif'), 'WriteMode', 'append');
- end
- imwrite(AVG, fullfile(currentFolder, 'Average.tif'));
- fprintf('Motion correction done for folder: %s\n', currentFolder);
- end
DriftCorrection.m at commit 43b3ef0, under GPL-3.0 · at the source
Overview
- Department of Neurosurgery, Huashan Hospital, Institute for Translational Brain Research, State Key Laboratory of Brain Function and Disorders, MOE Frontiers Center for Brain Science, Fudan University, Shanghai, China
- National Biomedical Imaging Center, College of Future Technology, Peking University, Beijing, China
- School of Information Science and Engineering and Yau Shing-Tung Center, Southeast University, Nanjing 210096, China
- School of Basic Medical Sciences, Laboratory of Organ Synergy and Intelligent Regenerative Manufacturing, Capital Medical University, Beijing 100069, China
- College of Basic Medicine, Inner Mongolia Medical University, Hohhot 010110, China
- State Key Laboratory of Translational Medicine and Innovative Drug Development, Nanjing, Jiangsu 210000, China
- MOE Innovative Center for New Drug Development of Immune Inflammatory Diseases, Fudan University, Shanghai, China
- MOE Key Laboratory of Developmental Genes and Human Disease, School of Life Science and Technology, Southeast University, Nanjing, Jiangsu Province 210096, China
Abstract
Here, we present a protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice. We describe chronic cranial window implantation, stereotaxic viral delivery, and head-fixed contextual fear conditioning synchronized with imaging acquisition and optical stimulation of identified neurons. We further detail procedures for image data processing pipelines for cross-session registration and longitudinal tracking of the same neuronal population. This protocol enables simultaneous neuronal activity recording, behavioral monitoring, and causal interrogation of neuronal ensembles.
For complete details on the use and execution of this protocol, please refer to Wang et al.1
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
Zenodo 16830880
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
114 files
- BehavioralDataProcessing
/ , MATLAB, 41 linesFigS1A_VideoPiezoCpr.m - BehavioralDataProcessing
/ , MATLAB, 65 linesFigS1E_SimulationTtestCp r.m - BehavioralDataProcessing
/ , MATLAB, 66 linesPreprocessing/ FramebyFrameVideoAna_ST. m - BehavioralDataProcessing
/ , MATLAB, 28 linesPreprocessing/ H5ToMat.m - BehavioralDataProcessing
/ , MATLAB, not shown herePreprocessing/ H5ToMat_v11_Chinese.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 14 linesCalciumPowerCalculation/ GetEnergy.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 8 linesCalciumPowerCalculation/ Sum_of_Squares.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 26 linesCalciumPowerCalculation/ Visualization.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 72 linesCalciumPowerCalculation/ main.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 89 linesCalciumPowerCalculation/ wy_peak_test.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 9 linesCalciumPowerCalculation/ wy_readdata.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 120 linesMotionCorrection/ DriftCorrection.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 66 linesMotionCorrection/ mijread.m - CalciumDataProcessing/
Preprocessing/ , Python, 136 linesSpikeInference/ Deconvolution/ deconv_multi.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,104 linesSpikeInference/ Deconvolution/ deconvolution.py - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ .ipynb_checkpoints/ GenerativeModel-checkpoi nt.py - CalciumDataProcessing/
Preprocessing/ , Python, 234 linesSpikeInference/ DeepSpike/ engine/ .ipynb_checkpoints/ VIMCO_alpha-checkpoint.p y - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ GenerativeModel.py - CalciumDataProcessing/
Preprocessing/ , Python, 265 linesSpikeInference/ DeepSpike/ engine/ RecognitionModel.py - CalciumDataProcessing/
Preprocessing/ , Python, 69 linesSpikeInference/ DeepSpike/ engine/ SV_C.py - CalciumDataProcessing/
Preprocessing/ , Python, 201 linesSpikeInference/ DeepSpike/ engine/ TrainingAlgos.py - CalciumDataProcessing/
Preprocessing/ , Python, 234 linesSpikeInference/ DeepSpike/ engine/ VIMCO_alpha.py - CalciumDataProcessing/
Preprocessing/ , Python, 14 linesSpikeInference/ DeepSpike/ engine/ layers/ __init__.py - CalciumDataProcessing/
Preprocessing/ , Python, 367 linesSpikeInference/ DeepSpike/ engine/ layers/ base.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,083 linesSpikeInference/ DeepSpike/ engine/ layers/ conv.py - CalciumDataProcessing/
Preprocessing/ , Python, 147 linesSpikeInference/ DeepSpike/ engine/ layers/ corrmm.py - CalciumDataProcessing/
Preprocessing/ , Python, 634 linesSpikeInference/ DeepSpike/ engine/ layers/ cuda_convnet.py - CalciumDataProcessing/
Preprocessing/ , Python, 226 linesSpikeInference/ DeepSpike/ engine/ layers/ dense.py - CalciumDataProcessing/
Preprocessing/ , Python, 789 linesSpikeInference/ DeepSpike/ engine/ layers/ dnn.py - CalciumDataProcessing/
Preprocessing/ , Python, 69 linesSpikeInference/ DeepSpike/ engine/ layers/ embedding.py - CalciumDataProcessing/
Preprocessing/ , Python, 559 linesSpikeInference/ DeepSpike/ engine/ layers/ helper.py - CalciumDataProcessing/
Preprocessing/ , Python, 76 linesSpikeInference/ DeepSpike/ engine/ layers/ input.py - CalciumDataProcessing/
Preprocessing/ , Python, 202 linesSpikeInference/ DeepSpike/ engine/ layers/ local.py - CalciumDataProcessing/
Preprocessing/ , Python, 404 linesSpikeInference/ DeepSpike/ engine/ layers/ merge.py - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ layers/ noise.py - CalciumDataProcessing/
Preprocessing/ , Python, 375 linesSpikeInference/ DeepSpike/ engine/ layers/ normalization.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,125 linesSpikeInference/ DeepSpike/ engine/ layers/ pool.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,644 linesSpikeInference/ DeepSpike/ engine/ layers/ recurrent.py - CalciumDataProcessing/
Preprocessing/ , Python, 397 linesSpikeInference/ DeepSpike/ engine/ layers/ shape.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,155 linesSpikeInference/ DeepSpike/ engine/ layers/ special.py - CalciumDataProcessing/
Preprocessing/ , Python, 435 linesSpikeInference/ DeepSpike/ engine/ layers/ utils.py - CalciumDataProcessing/
Preprocessing/ , Python, 174 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ data_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 140 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ perf_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 127 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ plot_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 83 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ utils-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 174 linesSpikeInference/ DeepSpike/ funcs/ data_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 140 linesSpikeInference/ DeepSpike/ funcs/ perf_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 127 linesSpikeInference/ DeepSpike/ funcs/ plot_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 83 linesSpikeInference/ DeepSpike/ funcs/ utils.py - CalciumDataProcessing/
Preprocessing/ , Jupyter, 306 linesSpikeInference/ DeepSpike/ spike_FPR.ipynb - CalciumDataProcessing/
Preprocessing/ , Jupyter, 202 linesSpikeInference/ DeepSpike/ test.ipynb - CalciumDataProcessing/
Preprocessing/ , Jupyter, 340 linesSpikeInference/ DeepSpike/ train.ipynb - CalciumDataProcessing/
Preprocessing/ , MATLAB, not shown heredeltaFCalc/ DataVisualization.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 178 linesdeltaFCalc/ DeltaF_calculate2manualw indow.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, not shown heredeltaFCalc/ DeltaF_calculate2manualw indow.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 16 linesdeltaFCalc/ Excel_Batch.m - CalciumDataProcessing/
SynchronizationCountCalc , MATLAB, 136 lines/ 2DImaging/ CoactivityMap_2d.m - CalciumDataProcessing/
SynchronizationCountCalc , MATLAB, 115 lines/ 3DImaging/ CoactivityGraph_3d.m - FindUSN/
Find_key_node.mlx , MATLAB, not shown here - FindUSN/
KeyNode_CoactivityGraph. , MATLAB, not shown heremlx - InformationTheoryAnalyse
s/ , MATLAB, not shown hereCalcInformationTheoryAna lyses.mlx - InformationTheoryAnalyse
s/ , MATLAB, 662 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ AllDemos.m - InformationTheoryAnalyse
s/ , MATLAB, 52 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ CEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 42 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent1.m - InformationTheoryAnalyse
s/ , MATLAB, 31 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent2.m - InformationTheoryAnalyse
s/ , MATLAB, 74 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent3.m - InformationTheoryAnalyse
s/ , MATLAB, 35 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ JEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 57 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ JMI1.m - InformationTheoryAnalyse
s/ , MATLAB, 49 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI1.m - InformationTheoryAnalyse
s/ , MATLAB, 40 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI2.m - InformationTheoryAnalyse
s/ , MATLAB, 61 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI3.m - InformationTheoryAnalyse
s/ , MATLAB, 72 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ PID1.m - InformationTheoryAnalyse
s/ , MATLAB, 65 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ TEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 57 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ TEnt2.m - InformationTheoryAnalyse
s/ , MATLAB, 79 linesNeuroscience-Information -Theory-Toolbox-master/ EntropyY.m - InformationTheoryAnalyse
s/ , MATLAB, 90 linesNeuroscience-Information -Theory-Toolbox-master/ MutualInfo.m - InformationTheoryAnalyse
s/ , MATLAB, 186 linesNeuroscience-Information -Theory-Toolbox-master/ PID.m - InformationTheoryAnalyse
s/ , MATLAB, 237 linesNeuroscience-Information -Theory-Toolbox-master/ PIDLattice.m - InformationTheoryAnalyse
s/ , MATLAB, 98 linesNeuroscience-Information -Theory-Toolbox-master/ PIDTermLabels.m - InformationTheoryAnalyse
s/ , MATLAB, 105 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ inverseFNoise.m - InformationTheoryAnalyse
s/ , MATLAB, 223 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype1.m - InformationTheoryAnalyse
s/ , MATLAB, 424 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype2.m - InformationTheoryAnalyse
s/ , MATLAB, 566 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype3.m - InformationTheoryAnalyse
s/ , MATLAB, 392 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype4.m - InformationTheoryAnalyse
s/ , MATLAB, 560 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype5.m - InformationTheoryAnalyse
s/ , MATLAB, 544 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo1.m - InformationTheoryAnalyse
s/ , MATLAB, 967 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo2.m - InformationTheoryAnalyse
s/ , MATLAB, 1,333 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo3.m - InformationTheoryAnalyse
s/ , MATLAB, 1,412 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo4.m - InformationTheoryAnalyse
s/ , MATLAB, 2,274 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo5.m - InformationTheoryAnalyse
s/ , MATLAB, 93 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ simpleModel_FSI.m - InformationTheoryAnalyse
s/ , MATLAB, 86 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ simpleModel_RS.m - InformationTheoryAnalyse
s/ , MATLAB, 48 linesNeuroscience-Information -Theory-Toolbox-master/ TE2.m - InformationTheoryAnalyse
s/ , MATLAB, 485 linesNeuroscience-Information -Theory-Toolbox-master/ data2states.m - InformationTheoryAnalyse
s/ , MATLAB, 122 linesNeuroscience-Information -Theory-Toolbox-master/ formattool.m - InformationTheoryAnalyse
s/ , MATLAB, 1,322 linesNeuroscience-Information -Theory-Toolbox-master/ instinfo.m - InformationTheoryAnalyse
s/ , MATLAB, 107 linesNeuroscience-Information -Theory-Toolbox-master/ quickEnt.m - InformationTheoryAnalyse
s/ , MATLAB, 182 linesNeuroscience-Information -Theory-Toolbox-master/ quickMI.m - InformationTheoryAnalyse
s/ , MATLAB, 246 linesNeuroscience-Information -Theory-Toolbox-master/ quickPID.m - InformationTheoryAnalyse
s/ , MATLAB, 211 linesNeuroscience-Information -Theory-Toolbox-master/ quickTE.m - InformationTheoryAnalyse
s/ , MATLAB, 36 linesNeuroscience-Information -Theory-Toolbox-master/ statejit.m - InformationTheoryAnalyse
s/ , MATLAB, 172 linesNeuroscience-Information -Theory-Toolbox-master/ symbolicdata2states.m - InformationTheoryAnalyse
s/ , MATLAB, 163 linesNeuroscience-Information -Theory-Toolbox-master/ wordstates.m - SupportingPrograms/
Fig1N_USNmultiCprTest/ , MATLAB, 97 linesFig1N_USNmultiCprTest.m - SupportingPrograms/
FigS10_SyncAnaCheck/ , MATLAB, 181 linesFigS10_FuncConnAna_sudoD ata.m - SupportingPrograms/
FigS10_SyncAnaCheck/ , MATLAB, not shown herefuncconnAna_sudoData_v12 .mlx - SupportingPrograms/
FigS5_USNTestBootstrap/ , MATLAB, 122 linesFigS5_USNTestBootstrap.m - SupportingPrograms/
FigS5_USNTestBootstrap/ , MATLAB, not shown herebootstrap_v12.mlx - SupportingPrograms/
FigS7_USNQualityCheck/ , MATLAB, 78 linesFigS7A_HighLowSyncCpr.m - SupportingPrograms/
FigS7_USNQualityCheck/ , MATLAB, 77 linesFigS7BC_USNQualityCheck. m - SupportingPrograms/
GetIntensity.mlx , MATLAB, not shown here - SupportingPrograms/
GetSpike.mlx , MATLAB, not shown here - LICENSE, License, 674 lines
- README.md, Text, 64 lines
ariadneunsworth/findusn
43b3ef039fb1b34c373d2799671ffbbec3546602, 13 August 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
114 files
- BehavioralDataProcessing
/ , MATLAB, 41 linesFigS1A_VideoPiezoCpr.m - BehavioralDataProcessing
/ , MATLAB, 65 lines, 1 matchFigS1E_SimulationTtestCp r.m - BehavioralDataProcessing
/ , MATLAB, 66 linesPreprocessing/ FramebyFrameVideoAna_ST. m - BehavioralDataProcessing
/ , MATLAB, 28 linesPreprocessing/ H5ToMat.m - BehavioralDataProcessing
/ , MATLAB, not shown herePreprocessing/ H5ToMat_v11_Chinese.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 14 linesCalciumPowerCalculation/ GetEnergy.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 8 linesCalciumPowerCalculation/ Sum_of_Squares.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 26 linesCalciumPowerCalculation/ Visualization.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 72 linesCalciumPowerCalculation/ main.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 89 linesCalciumPowerCalculation/ wy_peak_test.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 9 linesCalciumPowerCalculation/ wy_readdata.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 120 lines, 1 matchMotionCorrection/ DriftCorrection.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, 66 linesMotionCorrection/ mijread.m - CalciumDataProcessing/
Preprocessing/ , Python, 136 linesSpikeInference/ Deconvolution/ deconv_multi.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,104 linesSpikeInference/ Deconvolution/ deconvolution.py - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ .ipynb_checkpoints/ GenerativeModel-checkpoi nt.py - CalciumDataProcessing/
Preprocessing/ , Python, 234 linesSpikeInference/ DeepSpike/ engine/ .ipynb_checkpoints/ VIMCO_alpha-checkpoint.p y - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ GenerativeModel.py - CalciumDataProcessing/
Preprocessing/ , Python, 265 linesSpikeInference/ DeepSpike/ engine/ RecognitionModel.py - CalciumDataProcessing/
Preprocessing/ , Python, 69 linesSpikeInference/ DeepSpike/ engine/ SV_C.py - CalciumDataProcessing/
Preprocessing/ , Python, 201 linesSpikeInference/ DeepSpike/ engine/ TrainingAlgos.py - CalciumDataProcessing/
Preprocessing/ , Python, 234 linesSpikeInference/ DeepSpike/ engine/ VIMCO_alpha.py - CalciumDataProcessing/
Preprocessing/ , Python, 14 linesSpikeInference/ DeepSpike/ engine/ layers/ __init__.py - CalciumDataProcessing/
Preprocessing/ , Python, 367 linesSpikeInference/ DeepSpike/ engine/ layers/ base.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,083 linesSpikeInference/ DeepSpike/ engine/ layers/ conv.py - CalciumDataProcessing/
Preprocessing/ , Python, 147 linesSpikeInference/ DeepSpike/ engine/ layers/ corrmm.py - CalciumDataProcessing/
Preprocessing/ , Python, 634 linesSpikeInference/ DeepSpike/ engine/ layers/ cuda_convnet.py - CalciumDataProcessing/
Preprocessing/ , Python, 226 linesSpikeInference/ DeepSpike/ engine/ layers/ dense.py - CalciumDataProcessing/
Preprocessing/ , Python, 789 linesSpikeInference/ DeepSpike/ engine/ layers/ dnn.py - CalciumDataProcessing/
Preprocessing/ , Python, 69 linesSpikeInference/ DeepSpike/ engine/ layers/ embedding.py - CalciumDataProcessing/
Preprocessing/ , Python, 559 linesSpikeInference/ DeepSpike/ engine/ layers/ helper.py - CalciumDataProcessing/
Preprocessing/ , Python, 76 linesSpikeInference/ DeepSpike/ engine/ layers/ input.py - CalciumDataProcessing/
Preprocessing/ , Python, 202 linesSpikeInference/ DeepSpike/ engine/ layers/ local.py - CalciumDataProcessing/
Preprocessing/ , Python, 404 linesSpikeInference/ DeepSpike/ engine/ layers/ merge.py - CalciumDataProcessing/
Preprocessing/ , Python, 213 linesSpikeInference/ DeepSpike/ engine/ layers/ noise.py - CalciumDataProcessing/
Preprocessing/ , Python, 375 linesSpikeInference/ DeepSpike/ engine/ layers/ normalization.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,125 linesSpikeInference/ DeepSpike/ engine/ layers/ pool.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,644 linesSpikeInference/ DeepSpike/ engine/ layers/ recurrent.py - CalciumDataProcessing/
Preprocessing/ , Python, 397 linesSpikeInference/ DeepSpike/ engine/ layers/ shape.py - CalciumDataProcessing/
Preprocessing/ , Python, 1,155 linesSpikeInference/ DeepSpike/ engine/ layers/ special.py - CalciumDataProcessing/
Preprocessing/ , Python, 435 linesSpikeInference/ DeepSpike/ engine/ layers/ utils.py - CalciumDataProcessing/
Preprocessing/ , Python, 174 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ data_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 140 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ perf_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 127 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ plot_funcs-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 83 linesSpikeInference/ DeepSpike/ funcs/ .ipynb_checkpoints/ utils-checkpoint.py - CalciumDataProcessing/
Preprocessing/ , Python, 174 linesSpikeInference/ DeepSpike/ funcs/ data_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 140 linesSpikeInference/ DeepSpike/ funcs/ perf_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 127 linesSpikeInference/ DeepSpike/ funcs/ plot_funcs.py - CalciumDataProcessing/
Preprocessing/ , Python, 83 linesSpikeInference/ DeepSpike/ funcs/ utils.py - CalciumDataProcessing/
Preprocessing/ , Jupyter, 306 linesSpikeInference/ DeepSpike/ spike_FPR.ipynb - CalciumDataProcessing/
Preprocessing/ , Jupyter, 202 linesSpikeInference/ DeepSpike/ test.ipynb - CalciumDataProcessing/
Preprocessing/ , Jupyter, 340 linesSpikeInference/ DeepSpike/ train.ipynb - CalciumDataProcessing/
Preprocessing/ , MATLAB, not shown heredeltaFCalc/ DataVisualization.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 178 linesdeltaFCalc/ DeltaF_calculate2manualw indow.m - CalciumDataProcessing/
Preprocessing/ , MATLAB, not shown heredeltaFCalc/ DeltaF_calculate2manualw indow.mlx - CalciumDataProcessing/
Preprocessing/ , MATLAB, 16 linesdeltaFCalc/ Excel_Batch.m - CalciumDataProcessing/
SynchronizationCountCalc , MATLAB, 136 lines/ 2DImaging/ CoactivityMap_2d.m - CalciumDataProcessing/
SynchronizationCountCalc , MATLAB, 115 lines/ 3DImaging/ CoactivityGraph_3d.m - FindUSN/
Find_key_node.mlx , MATLAB, not shown here - FindUSN/
KeyNode_CoactivityGraph. , MATLAB, not shown heremlx - InformationTheoryAnalyse
s/ , MATLAB, not shown hereCalcInformationTheoryAna lyses.mlx - InformationTheoryAnalyse
s/ , MATLAB, 662 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ AllDemos.m - InformationTheoryAnalyse
s/ , MATLAB, 52 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ CEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 42 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent1.m - InformationTheoryAnalyse
s/ , MATLAB, 31 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent2.m - InformationTheoryAnalyse
s/ , MATLAB, 74 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ Ent3.m - InformationTheoryAnalyse
s/ , MATLAB, 35 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ JEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 57 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ JMI1.m - InformationTheoryAnalyse
s/ , MATLAB, 49 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI1.m - InformationTheoryAnalyse
s/ , MATLAB, 40 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI2.m - InformationTheoryAnalyse
s/ , MATLAB, 61 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ MI3.m - InformationTheoryAnalyse
s/ , MATLAB, 72 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ PID1.m - InformationTheoryAnalyse
s/ , MATLAB, 65 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ TEnt1.m - InformationTheoryAnalyse
s/ , MATLAB, 57 linesNeuroscience-Information -Theory-Toolbox-master/ Demos/ TEnt2.m - InformationTheoryAnalyse
s/ , MATLAB, 79 linesNeuroscience-Information -Theory-Toolbox-master/ EntropyY.m - InformationTheoryAnalyse
s/ , MATLAB, 90 linesNeuroscience-Information -Theory-Toolbox-master/ MutualInfo.m - InformationTheoryAnalyse
s/ , MATLAB, 186 linesNeuroscience-Information -Theory-Toolbox-master/ PID.m - InformationTheoryAnalyse
s/ , MATLAB, 237 linesNeuroscience-Information -Theory-Toolbox-master/ PIDLattice.m - InformationTheoryAnalyse
s/ , MATLAB, 98 linesNeuroscience-Information -Theory-Toolbox-master/ PIDTermLabels.m - InformationTheoryAnalyse
s/ , MATLAB, 105 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ inverseFNoise.m - InformationTheoryAnalyse
s/ , MATLAB, 223 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype1.m - InformationTheoryAnalyse
s/ , MATLAB, 424 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype2.m - InformationTheoryAnalyse
s/ , MATLAB, 566 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype3.m - InformationTheoryAnalyse
s/ , MATLAB, 392 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype4.m - InformationTheoryAnalyse
s/ , MATLAB, 560 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ modeltype5.m - InformationTheoryAnalyse
s/ , MATLAB, 544 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo1.m - InformationTheoryAnalyse
s/ , MATLAB, 967 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo2.m - InformationTheoryAnalyse
s/ , MATLAB, 1,333 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo3.m - InformationTheoryAnalyse
s/ , MATLAB, 1,412 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo4.m - InformationTheoryAnalyse
s/ , MATLAB, 2,274 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ neuroDemo5.m - InformationTheoryAnalyse
s/ , MATLAB, 93 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ simpleModel_FSI.m - InformationTheoryAnalyse
s/ , MATLAB, 86 linesNeuroscience-Information -Theory-Toolbox-master/ Simulations/ simpleModel_RS.m - InformationTheoryAnalyse
s/ , MATLAB, 48 linesNeuroscience-Information -Theory-Toolbox-master/ TE2.m - InformationTheoryAnalyse
s/ , MATLAB, 485 linesNeuroscience-Information -Theory-Toolbox-master/ data2states.m - InformationTheoryAnalyse
s/ , MATLAB, 122 linesNeuroscience-Information -Theory-Toolbox-master/ formattool.m - InformationTheoryAnalyse
s/ , MATLAB, 1,322 linesNeuroscience-Information -Theory-Toolbox-master/ instinfo.m - InformationTheoryAnalyse
s/ , MATLAB, 107 linesNeuroscience-Information -Theory-Toolbox-master/ quickEnt.m - InformationTheoryAnalyse
s/ , MATLAB, 182 linesNeuroscience-Information -Theory-Toolbox-master/ quickMI.m - InformationTheoryAnalyse
s/ , MATLAB, 246 linesNeuroscience-Information -Theory-Toolbox-master/ quickPID.m - InformationTheoryAnalyse
s/ , MATLAB, 211 linesNeuroscience-Information -Theory-Toolbox-master/ quickTE.m - InformationTheoryAnalyse
s/ , MATLAB, 36 linesNeuroscience-Information -Theory-Toolbox-master/ statejit.m - InformationTheoryAnalyse
s/ , MATLAB, 172 linesNeuroscience-Information -Theory-Toolbox-master/ symbolicdata2states.m - InformationTheoryAnalyse
s/ , MATLAB, 163 linesNeuroscience-Information -Theory-Toolbox-master/ wordstates.m - SupportingPrograms/
Fig1N_USNmultiCprTest/ , MATLAB, 97 linesFig1N_USNmultiCprTest.m - SupportingPrograms/
FigS10_SyncAnaCheck/ , MATLAB, 181 linesFigS10_FuncConnAna_sudoD ata.m - SupportingPrograms/
FigS10_SyncAnaCheck/ , MATLAB, not shown herefuncconnAna_sudoData_v12 .mlx - SupportingPrograms/
FigS5_USNTestBootstrap/ , MATLAB, 122 linesFigS5_USNTestBootstrap.m - SupportingPrograms/
FigS5_USNTestBootstrap/ , MATLAB, not shown herebootstrap_v12.mlx - SupportingPrograms/
FigS7_USNQualityCheck/ , MATLAB, 78 linesFigS7A_HighLowSyncCpr.m - SupportingPrograms/
FigS7_USNQualityCheck/ , MATLAB, 77 linesFigS7BC_USNQualityCheck. m - SupportingPrograms/
GetIntensity.mlx , MATLAB, not shown here - SupportingPrograms/
GetSpike.mlx , MATLAB, not shown here - LICENSE, License, 674 lines
- README.md, Text, 64 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 224 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data and code availability
• All data necessary to understand and assess the conclusions of the manuscript are presented in the main text and the supplementary materials. Raw calcium data will be shared by the lead contact upon request. • All original code has been deposited at Zenodo (https://
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 3 keywords, 5 funders, 22 references, 4 RRIDs.
Cite
This paper
Guo, H., Yang, H., Su, F., Zhu, Y., Tang, Q., Cao, R., Wang, Q., Tong, S., Wang, S., Zhang, C., & Lu, W. (2026). Protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice. STAR protocols, 7(3), 104678. https://
BibTeX
@article{guo2026protocol
author = {Guo, Huaiqin and Yang, He and Su, Feng and Zhu, Yuzhi and Tang, Qingyi and Cao, Rui and Wang, Qiao and Tong, Siyi and Wang, Shaoli and Zhang, Chen and Lu, Wei},
title = {{Protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice}},
journal = {STAR protocols},
year = {2026},
month = jul,
volume = {7},
number = {3},
pages = {104678},
publisher = {Elsevier},
issn = {2666-1667},
doi = {10.1016/
url = {https://
pmid = {42391006},
pmcid = {PMC13352386}
}
RIS
TY - JOUR
AU - Guo, Huaiqin
AU - Yang, He
AU - Su, Feng
AU - Zhu, Yuzhi
AU - Tang, Qingyi
AU - Cao, Rui
AU - Wang, Qiao
AU - Tong, Siyi
AU - Wang, Shaoli
AU - Zhang, Chen
AU - Lu, Wei
TI - Protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice
T2 - STAR protocols
J2 - STAR Protoc
PY - 2026
DA - 2026/
VL - 7
IS - 3
SP - 104678
SN - 2666-1667
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Protocol for longitudinal two-photon calcium imaging and holographic optogenetic manipulation to investigate memory in mice",
"container-title": "STAR protocols",
"author": [
{
"family": "Guo",
"given": "Huaiqin"
},
{
"family": "Yang",
"given": "He"
},
{
"family": "Su",
"given": "Feng"
},
{
"family": "Zhu",
"given": "Yuzhi"
},
{
"family": "Tang",
"given": "Qingyi"
},
{
"family": "Cao",
"given": "Rui"
},
{
"family": "Wang",
"given": "Qiao"
},
{
"family": "Tong",
"given": "Siyi"
},
{
"family": "Wang",
"given": "Shaoli"
},
{
"family": "Zhang",
"given": "Chen"
},
{
"family": "Lu",
"given": "Wei"
}
],
"container-title-short":
"volume": "7",
"issue": "3",
"page": "104678",
"DOI": "10.1016/
"PMID": "42391006",
"PMCID": "PMC13352386",
"ISSN": "2666-1667",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
2
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41592-026-03043-8 [code]
- Designer indicators for two-photon recording of subthreshold voltage dynamics.Journal: Nature methodsIn common: seaborn, pandas, SciPy, 2 other tools, optical imaging (calcium, voltage, 2-photon), histology / microscopy, mouse, 2 references
- [2] doi:10.1364/boe.600665 [code]
- NeuroSeg-MF: robust neuron segmentation in two-photon Ca&
lt;sup& gt;2+& lt;/ sup& gt; imaging using multi-feature fusion and detection-guided SAM. Journal: Biomedical optics expressIn common: PyTorch, seaborn, pandas, 3 other tools, optical imaging (calcium, voltage, 2-photon), 2 references - [3] doi:10.1038/s41593-026-02255-7 [code]
- Neural circuits encode prior knowledge of temporal statistics.Journal: Nature neuroscienceIn common: Parallel Computing Toolbox, Statistics and Machine Learning Toolbox, pandas, 3 other tools, mouse, 2 references
- [4] doi:10.21203/rs.3.rs-10218667/v1 [code]
- Combining ultra-flexible electrodes with two-photon imaging to illuminate brain-wide neural dynamicsJournal: Research Square (preprint)In common: Statistics and Machine Learning Toolbox, SciPy, Matplotlib, 1 other tool, optical imaging (calcium, voltage, 2-photon), 3 references
- [5] doi:10.1016/j.neuron.2026.03.034 [code]
- Dentate gyrus interneurons modulate winner-take-all network dynamics in freely behaving mice.Journal: NeuronIn common: Parallel Computing Toolbox, PyTorch, Statistics and Machine Learning Toolbox, 5 other tools, mouse
- [6] doi:10.1038/s41593-026-02205-3 [code]
- Competitive interactions shape mammalian brain network dynamics and computation.Journal: Nature neuroscienceIn common: Parallel Computing Toolbox, PyTorch, Statistics and Machine Learning Toolbox, 5 other tools, mouse
- [7] doi:10.7554/elife.111876 [code]
- Distinct sensorimotor encoding in tuft dendrites and somata associated with action, correction, and learning.Journal: eLifeIn common: PyTorch, seaborn, pandas, 3 other tools, mouse, 2 references
- [8] doi:10.1016/j.patter.2026.101590 [code]
- Density-based longitudinal neuron tracking in high-density electrophysiological recordings.Journal: Patterns (New York, N.Y.)In common: Parallel Computing Toolbox, PyTorch, Statistics and Machine Learning Toolbox, 5 other tools
- [9] doi:10.1016/j.crmeth.2026.101481 [code]
- A hybrid micro-ECoG for functionally targeted multi-site and multi-scale investigation.Journal: Cell reports methodsIn common: Statistics and Machine Learning Toolbox, 4 references
- [10] doi:10.1016/j.isci.2026.116206 [code]
- Gut distension evokes rapid neural dynamics in vagal and hindbrain populations of larval zebrafish.Journal: iScienceIn common: PyTorch, seaborn, pandas, 3 other tools, optical imaging (calcium, voltage, 2-photon), 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 224 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:85d159404efbf1d9…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
