AllenNeuralDynamics / aind-ophys-extraction-suite2p

Combines cellpose and suite2p to extract sources, i.e. ROIs and their traces.
MIT License
0 stars 0 forks source link

Extraction

This capsule combines cellpose and suite2p to perform cell detection and signal extraction.

Input

All parameters are passed to extraction.py using python extraction.py [parameters]. All parameters are defined in main using argparse. The most important one is 'input-dir' which should point to a directory that includes an hdf5 file with a 'data' 3D array of the registered (or, in the case of multi-plane imaging, decrosstalked) movie.

Output

The main output is the extraction.h5 file.
For QC, the figures detected_ROIs.png and detected_ROIs_withIDs.png display contours of the detected ROIs over a selection of summary images. If the capsule is run with the --contour_video argument, a 10x sped-up video is also created, showing ROI contours overlaid on the raw data, along with ROI activity and the remainder.
The extraction.h5 file contains three groups: traces, rois, and cellpose, with the latter only present if Cellpose is used for detection (--anatomical_only ≠ 0).

traces:

rois:

cellpose:

Additional datasets at the root of extraction.h5 are: