The two-photon calcium imaging module for NANSEN. It provides the two-photon session methods, file adapters, scanner readers (SciScan, ScanImage, PrairieView, ThorLabs, MScan), ROI signal extraction and dF/F, the FluFinder autosegmentation, motion-correction orchestration, integrations with Suite2p, EXTRACT, NoRMCorre, Flow Registration and CaImAn, and the imviewer/signalviewer plugins that expose them.
- MATLAB R2023a or newer.
- NANSEN on the MATLAB path. This module is a NANSEN module: NANSEN discovers it as
nansen.module.twophotonas soon as thecodefolder of this repository is on the path. - The community toolboxes listed in
code/+nansen/+module/+twophoton/dependencies.nansen.json. NANSEN's add-on manager installs them:nansen_install(Modules="nansen.module.twophoton").
code/+nansen/+module/+twophoton/ the module package (nansen.module.twophoton)
+fileadapter, +sessionmethod NANSEN extension points
+roisignals, +roi, +autosegmentation, +motioncorrection, +io
module-owned implementations
+integration adapters for external toolboxes
+ui imviewer and signalviewer plugins
resources data variables and data locations
tests/ matlab.unittest suites (twophotontest.*)
tools/ CI tasks and toolbox metadata
addpath(genpath('code')); addpath(genpath('tests'));
runtests('twophotontest', 'IncludeSubpackages', true)tools/tasks/testToolbox.m is what CI runs: it installs NANSEN and its requirements with MatBox and then runs the suites.
This repository was extracted from the NANSEN repository with git filter-repo, so the history of every file reaches back to its original location in NANSEN.