A napari plugin for automated nuclear segmentation and neural cell type classification in neurogenesis research. Supports classification of astrocytes, neurons, oligodendrocyte precursor cells (OPCs), and dead cells from multi-channel fluorescence microscopy images.
| 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 |
pip install neurogenesis-napariOr install through napari:
- Open napari
- Go to
Plugins→Install/Uninstall Plugins - Search for "TUM.ai Neurogenesis Toolkit"
- Click Install
- Load your images into napari
- Select the appropriate widget from the
Pluginsmenu - Choose your image layers from the dropdown menus
- Click the action button to process
Model weights are automatically downloaded on first use.
Standardizes color variations and reduces noise in bright-field microscopy images.
- Load a bright-field image into napari
- Open
Plugins→Normalize and Denoise - Select your bright-field image from the BF dropdown
- Click "Normalize + Denoise"
- Color Normalization: Histogram matching against an internal reference to standardize appearance across different acquisitions
- Denoising: Removes noise while preserving cellular structures using Cellpose
- Output: Creates a new layer named
{original_name}_denoised
Detects and segments individual cell nuclei from DAPI-stained images using Cellpose.
- Load a DAPI/nuclear staining image into napari
- Open
Plugins→Segment - Select your DAPI image from the DAPI dropdown
- Optionally adjust:
- GPU: Enable for faster processing (if CUDA available)
- Model: Choose Cellpose model (
cyto3default)
- Click "Segment"
- Segmentation: Uses Cellpose to identify individual nuclei
- Creates 3 new layers:
{name}_masks: Segmentation masks for each nucleus{name}_centroids: Center points of detected nuclei{name}_bboxes: Bounding boxes (polygons) around each nucleus
End-to-end pipeline that segments nuclei and classifies neural cell types in multi-channel fluorescence images.
- Load a 4-channel image into napari as separate layers:
- DAPI: Nuclear staining (DAPI/Hoechst)
- Tuj1: β-III-tubulin (neuronal marker)
- RFP: Red fluorescent protein marker
- BF: Bright-field
- Open
Plugins→Segment and Classify - Select each channel from the respective dropdowns
- Choose Reuse cached segmentation:
- True (default): Reuse previous segmentation if available (faster)
- False: Perform fresh segmentation
- Click "Segment + Classify"
- Segmentation: Cellpose-based nuclear segmentation on DAPI channel
- Feature extraction: Variational Autoencoder (VAE) extracts features from 4-channel patches around each nucleus
- Classification: Nearest-centroid classifier assigns cell types based on learned centroids
Creates colored polygon overlays for each detected cell:
- Astrocytes (magenta)
- Neurons (cyan)
- OPCs - Oligodendrocyte Precursor Cells (lime)
- Dead Cells (gray)
The classification results can be manually corrected through an interactive interface. Select any cell and use keyboard shortcuts to reassign its type: Shift+A (Astrocyte), Shift+N (Neuron), Shift+O (OPC), Shift+D (Dead Cell).
.czi(Zeiss microscopy files, via napari-czifile2).tiff,.tif.png,.jpg
- Feature extraction: Variational Autoencoder (VAE) with 2304-dimensional latent space
- Classifier: Scikit-learn Nearest Centroid
- Input: 224×224 pixel patches from 4 channels (DAPI, BF, Tuj1, RFP)
- Output: 4 cell type classes
- Python ≥ 3.10
- CUDA-capable GPU (optional, for faster processing)
- Model weights are automatically downloaded on first use via Hugging Face Hub
If you use this plugin in your research, please cite:
TUM.ai Neurogenesis Napari Plugin
Technical University of Munich
https://github.com/tum-ai/neurogenesis_napari
MIT License - see LICENSE file for details.