Skip to content

MercaderLabAnatomy/napari-tmidas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

320 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

napari-tmidas

License BSD-3 PyPI Python Version Downloads GitHub stars DOI tests

Need fast batch processing for confocal & whole-slide microscopy images of biological cells and tissues?

This open-source napari plugin integrates state-of-the-art AI + analysis tools in an interactive GUI with side-by-side result comparison! Transform, analyze, and quantify microscopy data at scale including deep learning - from file conversion to segmentation, tracking, and analysis.

napari-tmidas-interactive-table-example

✨ Key Features

πŸ€– AI Methods Built-In

  • Virtual staining (VisCy) β€’ Denoising (CAREamics) β€’ Spot detection (Spotiflow) β€’ Segmentation (Cellpose, Convpaint) β€’ Tracking (Trackastra, Ultrack)
  • Auto-install in isolated environments β€’ No dependency conflicts β€’ GPU acceleration

πŸ”„ Universal File Conversion

  • Convert LIF, ND2, CZI, NDPI, Acquifer β†’ TIFF or OME-Zarr
  • Preserve spatial metadata automatically

⚑ Batch Processing

  • Process entire folders with one click β€’ 40+ processing functions β€’ Progress tracking & quality control

οΏ½ Interactive Workflow

  • Side-by-side table view of original and processed images β€’ Click to instantly compare results β€’ Quickly iterate parameter values β€’ Real-time visual feedback

οΏ½πŸ“Š Complete Analysis Pipeline

  • Segmentation β†’ Tracking β†’ Quantification β†’ Colocalization

πŸš€ Quick Start

# Install napari and the plugin
mamba create -y -n napari-tmidas -c conda-forge python=3.11
mamba activate napari-tmidas
pip install "napari[all]"
pip install napari-tmidas

# Launch napari
napari

Then find napari-tmidas in the Plugins menu. Watch video tutorials β†’

πŸ’‘ Tip: AI methods (SAM2, Cellpose, Spotiflow, etc.) auto-install into isolated environments on first use - no manual setup required!

πŸ“– Documentation

AI-Powered Methods

Method Description Documentation
🎨 VisCy Virtual staining from phase/DIC Guide
πŸ”§ CAREamics Noise2Void/CARE denoising Guide
🎯 Spotiflow Spot/puncta detection Guide
πŸ”¬ Cellpose Cell/nucleus segmentation Guide
🎨 Convpaint Custom semantic/instance segmentation Guide
πŸ“ˆ Trackastra Transformer-based cell tracking Guide
πŸ”— Ultrack Cell tracking based on segmentation ensemble Guide

Core Workflows

Advanced Features

πŸ’» Installation

Step 1: Install napari

mamba create -y -n napari-tmidas -c conda-forge python=3.11
mamba activate napari-tmidas
python -m pip install "napari[all]"

Step 2: Install napari-tmidas

Your Needs Command
Standard installation pip install napari-tmidas
Want the latest dev features pip install git+https://github.com/MercaderLabAnatomy/napari-tmidas.git

πŸ–ΌοΈ Screenshots

File Conversion Widget File Conversion

Convert proprietary formats to open standards with metadata preservation.

Batch Processing Interface Batch Processing

Select files β†’ Choose processing function β†’ Run on entire dataset.

Label Inspection Label Inspection

Inspect and manually correct segmentation results.

SAM2 Crop Anything Crop Anything

Interactive object selection and cropping with SAM2.

πŸ“‹ TODO

Memory-Efficient Zarr Streaming

Current Limitation: Processing functions pre-allocate full output arrays in memory before writing to zarr. For large TZYX time series (e.g., 100 timepoints Γ— 1024Γ—1024Γ—20), this requires ~8+ GB peak memory even when using zarr output.

Planned Enhancement: Implement incremental zarr writing across all processing functions:

  • Process one timepoint at a time
  • Write directly to zarr array on disk
  • Keep only single timepoint in memory (~80 MB vs 8 GB)
  • Maintain OME-Zarr metadata and chunking

Impact: Enable processing of arbitrarily large time series limited only by disk space, not RAM. Critical for high-throughput microscopy workflows.

Affected Functions: Convpaint prediction, Cellpose segmentation, CAREamics denoising, VisCy virtual staining, Trackastra tracking, and all batch processing operations with zarr output.

🀝 Contributing

Contributions are welcome! Please ensure tests pass before submitting PRs:

pip install tox
tox

πŸ“„ License

BSD-3 License - see LICENSE for details.

πŸ› Issues

Found a bug or have a feature request? Open an issue

πŸ™ Acknowledgments

Built with napari and powered by:

AI/ML Methods:

Core Scientific Stack:

File Format Support: