Skip to main content

napari-pitcount-cfim

License

BSD 3-Clause

About

This napari plugin was developed in partnership with CFIM (Centre for Microscopy and Image Analysis, Copenhagen University).

The plugin enables image analysis for microscopy, focused on identifying pits and segmenting cells, then generating detailed statistics. It is tailored for using .czi files and integrates well with the napari-czi-reader.

For training the VGG19 2_2 × Random Forest Classifier used in this plugin, visit the pitcount-ml-training repository.

Features

  • Detects pits in images using a trained torchvision model.
  • Performs cell segmentation via Cellpose (default model: cyto3).
  • Calculates and outputs statistics such as:
    • Total cell count
    • Total pit count
    • Percentage of cells containing pits
    • Average number of pits per cell

Usage

Graphical Mode (GUI)

You can launch the plugin in napari with:

napari-pitcount-cfim --dev

or open napari and activate the plugin manually.

Headless Mode (NO GUI)

napari-pitcount-cfim --no-gui 

Run --help to list all options:

napari-pitcount-cfim --no-gui -h

Command-Line Arguments

Argument Alias Type Description
--no-gui flag Runs the pipeline without GUI. Required for headless automation.
--dev flag Launches napari in developer mode for plugin debugging.
--verbosity -v int (0–2) Sets the level of console output. Default: 0.
--input-folder -i str Input directory for image data (required with --no-gui).
--output-folder -o str Directory to save results. Default: 'output'.
--pit-mask-folder -p path If specified, skips pit prediction and uses this directory for pit masks.
--save-raw-data flag Saves raw, unprocessed data to the output folder (only in --no-gui mode).
--family-grouping str Grouping method for output: default, file, folder, or all. Default: default.

Notes

  • --input-folder must be used with --no-gui.

  • --pit-mask-folder must be a valid existing directory.

  • Set environment variables are used internally to control behavior.

Requirements

Napari recommends installing napari seperately, as it is not included in this package. You can install it with:

pip install napari[all]

Or you can just

pip install napari-pitcount-cfim[napari]

Known Issues

  • The plugin might not support the formats of most model output.
  • It's not possible to link masks directly to images in the GUI.
  • The default pit model, is a stub and mostly for decoration.

Metadata

Release files for napari-pitcount-cfim 1.0.0

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-pitcount-cfim 1.0.0
File Size Uploaded
napari_pitcount_cfim-1.0.0.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-pitcount-cfim 1.0.0
File Interpreter ABI Platform
napari_pitcount_cfim-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.0 kB

Release files / napari_pitcount_cfim-1.0.0.tar.gz

Download URL napari_pitcount_cfim-1.0.0.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3bef7c4198f26268f8a6da5092cf77f799aa2710267e75ae484e441f42e933f3
BLAKE2b-256 checksum
How to use checksums
cd9b0cb0bdfb35b1cc5635aadc79333b98082aacf27adda5c1b576442091a014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / napari_pitcount_cfim-1.0.0-py3-none-any.whl

Download URL napari_pitcount_cfim-1.0.0-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29fb0c31b26ff26882e64cfff5fcb475cbd49c7df4f67d9e5cddd6cd74a0446e
BLAKE2b-256 checksum
How to use checksums
3722d4d15c038fa584f098b1acc04297e3709ec91759cedee3bd2615b5358547
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.0

2 release files

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