Skip to main content

A pipeline for stuff #TODO: Get knowledge to write a proper description Pitcount

Project description

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.

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

napari_pitcount_cfim-1.0.0.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

napari_pitcount_cfim-1.0.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file napari_pitcount_cfim-1.0.0.tar.gz.

File metadata

  • Download URL: napari_pitcount_cfim-1.0.0.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for napari_pitcount_cfim-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3bef7c4198f26268f8a6da5092cf77f799aa2710267e75ae484e441f42e933f3
MD5 15825ab40e652daa7e83b721b45d8ebe
BLAKE2b-256 cd9b0cb0bdfb35b1cc5635aadc79333b98082aacf27adda5c1b576442091a014

See more details on using hashes here.

File details

Details for the file napari_pitcount_cfim-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_pitcount_cfim-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29fb0c31b26ff26882e64cfff5fcb475cbd49c7df4f67d9e5cddd6cd74a0446e
MD5 55f22f3eb20466a98cda00b9e131128c
BLAKE2b-256 3722d4d15c038fa584f098b1acc04297e3709ec91759cedee3bd2615b5358547

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