Skip to main content

🦇 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 .zvi files 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 .txt file compatible with PALMRobo 4.9

System requirements

  • Conda / Mamba (recommended)
  • Java (OpenJDK) – required for Bio-Formats .zvi → OME-TIFF conversion
  • 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.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-bruce 0.5.3
File Size Uploaded
napari_bruce-0.5.3.tar.gz 72.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-bruce 0.5.3
File Interpreter ABI Platform
napari_bruce-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 145.6 MB

Release files / napari_bruce-0.5.3.tar.gz

Download URL napari_bruce-0.5.3.tar.gz
Size 72.8 MB
Tags Source
SHA-256 checksum
How to use checksums
c7dc25d6f0b0b9c189b9fd74839ad9471726ca327202ffc3d44d078cdbc7ed13
BLAKE2b-256 checksum
How to use checksums
63809257cd96a2cb5b2b15f9e9fbd14e82b409777b1ae3bc7ed8da9b0dfc0c39
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.5.3-py3-none-any.whl

Download URL napari_bruce-0.5.3-py3-none-any.whl
Size 72.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0c88d6c0836ad5bee3f4f3a254fa46ff8c305a4d7a4733f8d01424f6ee1d1849
BLAKE2b-256 checksum
How to use checksums
6b24fe876a3e99603114cd25000b97ed74b425a486d889e1045eb6b37f519290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

0.6.1

2 release files

0.6.0

2 release files

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page