# 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.

You can also use this module through the viewer console, or in the Script Editor instead of clicking buttons.

Example

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # get the module, hide the GUI s2p_importer = get_module('suite2p_importer', hide=True) # set the path to the dir containing the suite2p output files s2p_importer.data.set_dir('/path/to/dir') # set the amount of neuropil contamination to subtract s2p_importer.data.Fneu_sub = 0.7 # import the suite2p data into the current work environment s2p_importer.import_rois() # clear the data from the importer before importing another directory # this doesn't do anything to the viewer work environment, just clears the importer data s2p_importer.data.clear()