A napari plugin for drawing PALM RoboSoftware elements using StarDist segmentation
Project description
🦇 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
Configuration
Bruce stores its configuration in a user-specific JSON file.
Useful commands:
# Show config file path
bruce --show-config-path
# Open config in default editor
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.
Useful 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 (replace <MODEL_DIR> with the model directory)
bruce --add-model <MODEL_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.
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 napari_bruce-0.2.0.tar.gz.
File metadata
- Download URL: napari_bruce-0.2.0.tar.gz
- Upload date:
- Size: 83.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55467014d1ba9197d122279905a71301919e1f8ccbce74773cd3421b0a9d7b30
|
|
| MD5 |
6fb58bbff0cc9f3b363f834d423b7e78
|
|
| BLAKE2b-256 |
e73186ee2b3d09ff810ca050a931d2747ee04950d18ff9d02bb742ec87630ebe
|
File details
Details for the file napari_bruce-0.2.0-py3-none-any.whl.
File metadata
- Download URL: napari_bruce-0.2.0-py3-none-any.whl
- Upload date:
- Size: 83.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
803378a037e295f60ee8809bd790935af86c85c6edd7ff0057d5487d1e952d00
|
|
| MD5 |
0c77ea6b89068e2150a97e1fabdb53ea
|
|
| BLAKE2b-256 |
5ec79423338d84348e39ab82b85c75f2f97258abc2df50caa426cece4f16378e
|