Light Beads Microscopy Pipeline using Suite2p
Project description
LBM-Suite2p-Python
Status: Late-beta stage of development
A volumetric 2-photon calcium imaging processing pipeline for Light Beads Microscopy (LBM) datasets, built on Suite2p.
A GUI is available via mbo_utilities (GUI functionality will lag behind this pipeline).
Quick Start
See the installation documentation for GUI dependencies and troubleshooting.
uv pip install lbm_suite2p_python
Basic Usage
import lbm_suite2p_python as lsp
ops = {"two_step_registration": 1}
files = [
r"D://demo//plane05_stitched.zarr",
r"D://demo//plane06_stitched.zarr",
]
# Process entire volume
output_ops = lsp.run_volume(
input_files=files,
save_path=None, # save next to tiffs
ops=ops,
keep_reg=True, # Keep registered binaries
force_reg=False, # Skip if already registered
force_detect=False # Skip if stat.npy exists
)
Process a single plane:
ops_file = lsp.run_plane(
input_path=files[0],
save_path=None,
ops=ops,
keep_raw=False, # Delete data_raw.bin after processing
keep_reg=True # Keep data.bin (registered binary)
)
Documentation
- Installation Guide
- User Guide - Complete usage examples
- API Reference
Built With
This pipeline integrates several open-source tools:
- Suite2p - Core registration and segmentation
- Cellpose - Anatomical segmentation (optional)
- Rastermap - Activity clustering (optional)
- mbo_utilities - ScanImage I/O and metadata
- scanreader - ScanImage metadata parsing
Issues & Support
- Bug reports: GitHub Issues
- Questions: See Suite2p documentation for Suite2p-specific questions
- Known issues: Widgets may throw "Invalid Rect" errors (upstream issue)
Contributing
Contributions are welcome! This project follows Suite2p's conventions and uses:
- Ruff for linting and formatting (line length: 88, numpy docstring style)
- pytest for testing
- Sphinx for documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lbm_suite2p_python-2.2.0.tar.gz.
File metadata
- Download URL: lbm_suite2p_python-2.2.0.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9cdf28a51d410ac0556f3a10f1293966faa9dfd4d3dc33615a559544294bf52
|
|
| MD5 |
4eee190d3d4cc64fcc5fff792843041b
|
|
| BLAKE2b-256 |
4d00d6e473a63f1760607349ff8b8039f0114e88f05907d91af6fd966ef592d3
|
File details
Details for the file lbm_suite2p_python-2.2.0-py3-none-any.whl.
File metadata
- Download URL: lbm_suite2p_python-2.2.0-py3-none-any.whl
- Upload date:
- Size: 51.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de2f1ad5fb00ff886221cd41a47d74727dc979affd4652ec7b5b48c0c901b1ee
|
|
| MD5 |
6cab072313447ed894351528a3c95462
|
|
| BLAKE2b-256 |
2a96968f96a3d1f4187e413784f809d30caa621e060b0288275ed89b7fa12449
|