LBM-Suite2p-Python Documentation#
Volumetric 2-photon calcium imaging processing pipeline using Suite2p and Cellpose.
A high-level wrapper around suite2p primarily intended for Light Beads Microscopy (LBM) datasets, but compatible with any data supported by mbo_utilities imread
Features:
Registration, cell-detection, segmentation and deconvolution
Uniform cell curation filters (area, eccentricity, event exceptionality)
ΔF/F calculation with multiple baseline methods
Volumetric statistics, visualizations and clustering
Extensive documentation
See the user guide for complete examples and parameter tuning.
(Really) Quickstart#
import lbm_suite2p_python as lsp
# Process entire volume with the unified pipeline
results = lsp.pipeline(
input_data="D:/data/raw", # path to file, directory, or list of files
save_path=None, # default: save next to input
ops=None, # default: use MBO-optimized parameters
planes=None, # default: process all planes
)
Additional Resources#
Helpful Suite2p Discussions#
Topic |
Resource |
Description |
|---|---|---|
Parameters |
Complete parameter reference |
|
Detection |
Video overview of detection algorithm |
|
Registration |
Troubleshooting registration artifacts |
|
Critical Parameters |
Discussion of tau, threshold_scaling, diameter |
|
ROI Overlap |
Understanding max_overlap and allow_overlap |
|
Fluorescence Signals |
Explanation of F and Fneu outputs |
Referenced Documentation#
Suite2p Documentation - Core pipeline documentation
Cellpose Documentation - Anatomical segmentation
Acknowledgements#
This pipeline is built on excellent open-source tools:
Suite2p - Registration and segmentation (Pachitariu, Stringer, et al.)
Cellpose - Anatomical segmentation (Stringer, Pachitariu, et al.)
Rastermap - Activity clustering (Stringer, Pachitariu)
Suite3D - Volumetric processing inspiration (Haydaroglu)
Special thanks to the Miller Brain Observatory team and all contributors for testing and feedback.