Skip to main content

A napari plugin to segment and classify cells.

Project description

TUMai Helmholtz Neurogenesis Napari Plugin

License MIT PyPI Python Version napari hub

This plugin provides one-click color normalization, denoising, and Cellpose-based nuclear segmentation.

Key Features

Widget Function Input Output
Normalize + Denoise Color normalization and denoising Bright-field image Processed image
Segment Nuclear segmentation DAPI/nuclear stain Masks, centroids, bounding boxes
Segment + Classify End-to-end cell analysis 4-channel images Cell segmentation + classification

Quick Start

Installation

pip install neurogenesis-napari

Or install through napari:

  1. Open napari
  2. Go to PluginsInstall/Uninstall Plugins
  3. Search for "TumAI Histology Toolkit"
  4. Click Install

Basic Usage

  1. Load your images into napari
  2. Select the appropriate widget from the Plugins menu
  3. Choose your image layers from the dropdown menus
  4. Click the action button to process

The plugin will automatically download required AI models on first use.


Widget Documentation

Normalize + Denoise

Purpose: Standardizes color variations and reduces noise in bright-field images.

Usage

  1. Load a bright-field image into napari
  2. Open PluginsNormalize and Denoise
  3. Select your bright-field image from the BF dropdown
  4. Click "Normalize + Denoise"

What it does

  • Color Normalization: Adjusts colors against an internal reference to standardize appearance across different images/scanners
  • Denoising: Removes noise while preserving important cellular structures
  • Output: Creates a new layer named {original_name}_denoised

Segment

Purpose: Detects and segments individual cell nuclei using Cellpose.

Usage

  1. Load a nuclear staining image (DAPI) into napari
  2. Open PluginsSegment
  3. Select your nuclear image from the DAPI dropdown
  4. Optionally adjust:
    • GPU: Enable for faster processing
    • Model: Choose Cellpose model (cyto3 default)
  5. Click "Segment Nuclei"

What it does

  • Segmentation: Uses Cellpose to identify individual nuclei
  • Creates 3 new layers:
    • {name}_masks: Segmentation masks
    • {name}_centroids: Center points of each detected cell
    • {name}_bboxes: Bounding boxes around each cell

Segment + Classify

Purpose: Complete pipeline that segments nuclei AND classifies cell types in multi-channel images.

Usage

  1. Load a 4-channel image into napari as separate layers:
    • DAPI: Nuclear staining
    • Tuj1: β-III-tubulin
    • RFP: Red fluorescent protein marker
    • BF: Bright-field
  2. Open PluginsSegment and Classify
  3. Select each channel from the respective dropdowns
  4. Choose Reuse cached:
    • True: Reuse previous segmentation (faster) from the segment widget
    • False: Perform fresh segmentation
  5. Click "Segment + Classify"

What it does

  1. Segmentation: Does segmentation same as the segment widget above
  2. Feature extraction: Uses a Variational Autoencoder (VAE) to extract features
  3. Classification: Nearest-centroid classifier assigns cell types

Output

Creates colored bounding box layers for each detected cell type:

  • 🟣 Astrocytes (magenta boxes)
  • ⚫ Dead Cells (gray boxes)
  • 🔵 Neurons (cyan boxes)
  • 🟢 OPCs (lime boxes)

Layer names show counts: {count}_{cell_type}s (e.g., 23_Neurons)


Supported Image Formats

  • .czi (via napari-czifile2)
  • .png, .jpg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurogenesis_napari-0.1.0a1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurogenesis_napari-0.1.0a1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file neurogenesis_napari-0.1.0a1.tar.gz.

File metadata

  • Download URL: neurogenesis_napari-0.1.0a1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for neurogenesis_napari-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 003e71a4bdc83b743717b03d13129721841ddf4ce80875481bfe4fd45815ace3
MD5 cd6d89fa2f9f809c0cc372985aee6df0
BLAKE2b-256 f08dfeaec551ffce0e9903cfa4f21c9f2b4890449842366c17a76a3226c93bed

See more details on using hashes here.

File details

Details for the file neurogenesis_napari-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for neurogenesis_napari-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 23991776edf14889c1f65f105f4b971c474bcff6e7f26772ab19c06808d9a298
MD5 227f76e3620da448f4cffc75cfd99a64
BLAKE2b-256 48ba95a8683644326bbdfaa6324cbcf64b33fe56b153757377099e4a6383dc8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page