🦇 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.5
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 | Actions |
|---|---|---|---|---|
| napari_bruce-0.6.5.tar.gz | 94.0 MB | Without provenance | Details for napari_bruce-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napari_bruce-0.6.5-py3-none-any.whl | Python 3 | none | any | Details for napari_bruce-0.6.5-py3-none-any.whl |
Total release size: 187.9 MB
Release files / napari_bruce-0.6.5.tar.gz
| Download URL | napari_bruce-0.6.5.tar.gz |
|---|---|
| Size | 94.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96759fa74d1c7e4356347bf9db0b78f74289689d2a31acdee8e645b94f06499a
|
|
BLAKE2b-256 checksum How to use checksums |
e8fd6b72d7768f269c3b13a24ee497b0f119de52659ad40a1fa92b78b19532e5
|
| 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.5-py3-none-any.whl
| Download URL | napari_bruce-0.6.5-py3-none-any.whl |
|---|---|
| Size | 94.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9bfaad581151c3b4e9ae2ab18e799683748aa64e7f711ee4bba58e6eb51531a
|
|
BLAKE2b-256 checksum How to use checksums |
2033a245eb16a38708560d007df500253bc8f7392c39f39e55bc13efe3196476
|
| 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.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.