🦇 Bruce
A napari plugin for creating PALMRobo elements using StarDist segmentation
Description
Bruce is a napari plugin for automated detection of cells of interest in PALM RoboSoftware images, enabling fast laser capture microdissection on the PALM MicroBeam system.
Key features:
- Load 2-channel images and metadata from
.zvifiles produced by PALMRobo 4.9 - Perform StarDist-based cell segmentation (default or user-defined models)
- Allow manual editing of ROIs / elements in napari
- Perform ROI overlap analysis between 2 channels
- Export element list as
.txtfile compatible with PALMRobo 4.9
System requirements
- Conda / Mamba (recommended)
- Install Miniforge from: https://github.com/conda-forge/miniforge
- Java (OpenJDK) – required for Bio-Formats
.zvi → OME-TIFFconversion - GPU (optional) – for accelerated StarDist inference
Installation
Bruce requires a platform-specific Conda environment due to differences in native dependencies and GPU support. Predefined environment files are provided in the env/ directory:
| Platform | Environment file |
|-------------------------|--------------------------------------|
| Windows (native) | `env/bruce-env_windows_native.yml` |
| macOS (Apple Silicon) | `env/bruce-env_macos_arm.yml` |
| Linux | `env/bruce-env_linux.yml` |
Open a terminal and run:
# Create the conda environment (replace <ENV_FILE> with the appropriate .yml file)
mamba env create -f <ENV_FILE>
# Activate the environment
mamba activate bruce-env
# Install Bruce from PyPI
pip install napari-bruce
# Launch Bruce via the command line
bruce
# Or launch Bruce directly from napari
napari --with napari-bruce
# Show help
bruce -h
Configuration
Bruce stores its configuration in a user-specific JSON file.
Available commands:
# Show config file path
bruce --show-config-path
# Open config file in default text editor
bruce --open-config-file
# Edit config in a dedicated GUI window
bruce --edit-config
# Reset config to defaults
bruce --reset-config
GPU support & StarDist models
Bruce runs StarDist predictions on the GPU when visible to TensorFlow, and supports user-defined StarDist models.
Available commands:
# Check whether GPU(s) are visible to TensorFlow
bruce --gpu-status
# List available StarDist models
bruce --list-models
# Add a user-defined StarDist model located at <MODEL_DIR>
bruce --add-model <MODEL_DIR>
Image annotation for model training
Bruce comes with a dedicated GUI to annotate 2-channel images produced by PALMRobo 4.9.
Available commands:
# Construct an image set from 2-channel .zvi files located at <IN_DIR> and save to <OUT_DIR>/imgs.pkl
bruce --zvi-to-dict <IN_DIR> <OUT_DIR>
# Open the annotation GUI to label the image set at <IN_DIR>/imgs.pkl and save image/mask pairs to <OUT_DIR>/imgs_annotated.pkl
bruce --annotate <IN_DIR> <OUT_DIR>
Example images
Example .zvi files are provided in the example_images/ directory for testing and demonstration purposes.
They are not installed with the napari-bruce Python package.
Metadata
Release files for napari-bruce 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| napari_bruce-0.6.2.tar.gz | 72.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| napari_bruce-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 145.6 MB
Release files / napari_bruce-0.6.2.tar.gz
| Download URL | napari_bruce-0.6.2.tar.gz |
|---|---|
| Size | 72.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ceabaea9ae5ce0f3fa8c09bbd3b335822cb7c144cea9ba93cb56f75e9a7f3ebc
|
|
BLAKE2b-256 checksum How to use checksums |
b45bc33e9567293dffc7bf2b5bf3170e8ddbf5894cbf6ad22ba7e085eb4dc966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / napari_bruce-0.6.2-py3-none-any.whl
| Download URL | napari_bruce-0.6.2-py3-none-any.whl |
|---|---|
| Size | 72.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
705af3e1b2e126f990f7e8efec031c0900caf6087ef1142162bb0314eb03c033
|
|
BLAKE2b-256 checksum How to use checksums |
acc06eb4a99b819d99415cd7432cd3ee46636f907d0b36327e9ef49fe6387963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for napari-bruce 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.