Suite2p Importer¶
You can load Suite2p output files to import ROIs into the current work environment. This places the Suite2p-derived ROIs onto the image that is currently open.

Video Tutorial¶
Script Usage¶
You can also use this module through the viewer console, or in the Script Editor instead of clicking buttons.
Example
1# get the module, hide the GUI
2s2p_importer = get_module('suite2p_importer', hide=True)
3
4# set the path to the dir containing the suite2p output files
5s2p_importer.data.set_dir('/path/to/dir')
6
7# set the amount of neuropil contamination to subtract
8s2p_importer.data.Fneu_sub = 0.7
9
10# import the suite2p data into the current work environment
11s2p_importer.import_rois()
12
13# clear the data from the importer before importing another directory
14# this doesn't do anything to the viewer work environment, just clears the importer data
15s2p_importer.data.clear()