Command Line Interface#
The mbo command provides tools for viewing, converting, and analyzing imaging data.
Command |
Description |
|---|---|
|
Launch GUI with file dialog |
|
Convert between formats |
|
Show array info |
|
Analyze scan-phase offset |
|
Download files from GitHub |
|
List supported formats |
GUI Mode#
mbo # file dialog
mbo /path/to/data # open specific file
mbo /path/to/data --metadata # show only metadata
Convert#
Convert between formats with optional processing.
mbo convert input.tiff output/ -e .zarr # tiff to zarr
mbo convert input.tiff output/ -e .bin # tiff to suite2p binary
mbo convert input.zarr output/ -e .tiff # zarr to tiff
mbo convert input.tiff output/ -e .zarr -p 1 -p 7 # specific planes
mbo convert input.tiff output/ --fix-phase # with phase correction
mbo convert input.tiff output/ -n 1000 # first 1000 frames
Option |
Description |
|---|---|
|
Output format: |
|
Z-planes to export (1-based), repeatable |
|
Limit number of frames |
|
ROI selection: |
|
Bidirectional phase correction |
|
Replace existing files |
All Convert Options
Option |
Description |
|---|---|
|
Custom filename suffix (default: |
|
|
|
Z-plane registration via suite3d |
|
OME-zarr metadata (zarr only) |
|
Streaming chunk size (default: 100) |
|
Verbose logging |
Info#
Display array shape, dtype, chunk info, and metadata without loading data.
mbo info /data/raw.tiff
mbo info /data/volume.zarr
mbo info /data/suite2p/plane0
Scan-Phase Analysis#
Bidirectional resonant scanning causes alternating rows to be shifted horizontally. This tool measures that shift to help configure correction parameters.
mbo scanphase # file dialog
mbo scanphase /path/to/data.tiff # analyze file
mbo scanphase ./folder/ -n 5 # first 5 tiffs
mbo scanphase data.tiff -o ./results # custom output
mbo scanphase data.tiff --show # show plots
mbo scanphase data.tiff --format pdf # output as pdf
Output Files:
Tips: Use -n 2 or -n 3 to run quickly on a subset of frames. Multi-ROI data: offsets are averaged across ROIs.
Download#
Download files from GitHub (auto-converts blob to raw URLs).
mbo download https://github.com/user/repo/blob/main/notebook.ipynb
mbo download https://github.com/user/repo/blob/main/data.npy -o ./data/
Downloading from:
https://raw.githubusercontent.com/.../quickstart.ipynb
Saving to:
C:\Users\...\quickstart.ipynb
Successfully downloaded: quickstart.ipynb
Utilities#
mbo --check-install # verify installation and GPU config
mbo --download-notebook # download user guide notebook
mbo --download-file URL # download any file
mbo_utilities v2.4.3 | Python 3.12.12
==================================================
CUDA Environment:
Driver CUDA: 12.6
Features:
[Γ£ô] PyTorch
[Γ£ô] CuPy
[ ] Suite2p (not installed)
[ ] Suite3D (not installed)
[ ] Rastermap (not installed)
Formats#
mbo formats
Input: .tif, .tiff, .zarr, .bin, .h5, .hdf5, .npy, .json
Output: .tiff, .zarr, .bin, .h5, .npy
Upgrade#
Method |
Command |
|---|---|
Install script |
Re-run install script |
CLI only |
|
Virtual env |
|