Skip to main content

napari-grid-curator

License MIT PyPI Python Version napari hub

Interactive batch annotation tool for microscopy datasets with tiled grid visualization.


Overview

napari-grid-curator is a napari plugin for efficient manual curation of large microscopy datasets. The key feature is a tiled grid layout that displays many segmented objects simultaneously, allowing rapid quality control and annotation.

Key Features

  • Tiled Grid Layout: View 100+ cells at once in an organized montage
  • Batch Processing: Efficiently navigate through thousands of segmented objects
  • 2D & 3D Support: Works with both 2D image stacks and 3D volumetric data with scrollable Z-stacks
  • Dual View Modes:
    • Mosaic Mode: See all cells in batch simultaneously
    • Slide Mode: Navigate cell-by-cell with arrow keys
  • Interactive Annotation:
    • Alt + Click: Exclude/include individual cells
    • Shift + Click: Mark cells as positive (thresholding)
    • Quick Filters: DAPI intensity and nearest-neighbor distance sliders
  • Flexible Data Loading:
    • Legacy mode (all data in single .pkl)
    • Lazy mode (split per-scene .pkl files)
    • Minimal mode (on-the-fly cropping from original .lif/.tif files)
  • Multi-channel Thresholding: Set per-channel thresholds with interactive histograms
  • Smart Caching: Efficient caching for large 3D wholebrain datasets

Installation

Install directly from PyPI:

pip install napari-grid-curator

Or install latest development version:

pip install git+https://github.com/jojofranz/napari-grid-curator.git

Usage

From napari GUI

  1. Open napari
  2. Go to Plugins > Grid Curator
  3. Load your dataset (.pkl file)
  4. Use mouse interactions to annotate:
    • Alt + Click: Toggle cell inclusion/exclusion
    • Shift + Click: Mark cell as positive
  5. Set thresholds per channel using histogram widget
  6. Export annotated dataset when done

Supported Dataset Formats

The plugin works with three dataset modes:

  1. Legacy Mode: All images stored in single .pkl file
  2. Lazy Mode: Images split across per-scene .pkl files
  3. Minimal Mode: References to original .lif or .tif files with on-the-fly cropping

See DATASET_FORMATS.md for detailed format specifications.

Key Bindings

  • Alt + Click: Toggle cell exclusion (include/exclude)
  • Shift + Click: Toggle positive marker (for thresholding)
  • Arrow Keys: Navigate between cells in slide mode (Left/Right)
  • Mouse Wheel: Scroll through Z-slices (3D mode)

Use Cases

This plugin was originally developed for retinal ganglion cell (RGC) analysis but is applicable to:

  • Quality control of automated segmentations
  • Manual classification of cell types
  • Thresholding based on marker expression
  • Excluding edge artifacts or missegmented objects
  • Any workflow requiring rapid inspection of many segmented objects

Development

This plugin was generated using the napari-plugin-template and follows napari plugin best practices.

Dataset Preparation

Your dataset should include:

  • Images (2D or 3D, multi-channel)
  • Segmentation labels
  • Metadata table with regionprops (e.g., from skimage.measure.regionprops_table)

The plugin uses bounding boxes to crop regions around each segmented object for efficient visualization.

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

Distributed under the terms of the MIT license. "napari-grid-curator" is free and open source software.

Issues

If you encounter any problems, please file an issue with:

  • Dataset format and size
  • Full error traceback
  • napari and plugin versions (napari --info)

Acknowledgements

This plugin was developed for wholebrain RGC analysis and uses (amongst others):

Development of this plugin was funded by NL-BioImaging AM and is happening in at the MCL.

Metadata

Release files for napari-grid-curator 0.1.1

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-grid-curator 0.1.1
File Size Uploaded Provenance Actions
napari_grid_curator-0.1.1.tar.gz 82.2 kB Without provenance Details for napari_grid_curator-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-grid-curator 0.1.1
File Interpreter ABI Platform Actions
napari_grid_curator-0.1.1-py3-none-any.whl Python 3 none any Details for napari_grid_curator-0.1.1-py3-none-any.whl

Total release size: 153.0 kB

Release files / napari_grid_curator-0.1.1.tar.gz

Download URL napari_grid_curator-0.1.1.tar.gz
Size 82.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c8f4731370895096aa7fa39a6f53631e736589b8362be7cc32d097ee2b862d78
BLAKE2b-256 checksum
How to use checksums
18c16ec6dcfee7873a10b0a25847bf6f3349fe52b3b1278f08c79848d700b075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / napari_grid_curator-0.1.1-py3-none-any.whl

Download URL napari_grid_curator-0.1.1-py3-none-any.whl
Size 70.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99a284a0294bc1612d20d805f3a9914868125ab1a41ea76592463c606a9a843a
BLAKE2b-256 checksum
How to use checksums
bd81e3318e2096511e8215c231f88a94ac23dca5458ab828e590e2a83c6e4ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Security for napari-grid-curator 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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