Skip to main content

plugin for cell segmentation

Project description

napari-cellseg3D: a napari plug-in for direct 3D cell segmentation with deep learning

cellseg3d logo

Code style: black License: MIT PyPI Python Version codecov napari hub

A napari plugin for 3D cell segmentation: training, inference, and data review. In particular, this project was developed for analysis of mesoSPIM-acquired (cleared tissue + lightsheet) datasets.


News

June 2022: This is an alpha version, please expect bugs and issues, and help us make the code better by reporting them as an issue!

Installation

You can install napari-cellseg3d via pip:

pip install napari-cellseg3d

Documentation

Available at https://AdaptiveMotorControlLab.github.io/CellSeg3d

You can also generate docs by running make html in the docs folder.

Usage

To use the plugin, please run:

napari

Then go into Plugins > napari-cellseg3d, and choose which tool to use.

  • Review: This module allows you to review your labels, from predictions or manual labeling, and correct them if needed. It then saves the status of each file in a csv, for easier monitoring.
  • Inference: This module allows you to use pre-trained segmentation algorithms on volumes to automatically label cells and compute statistics.
  • Train: This module allows you to train segmentation algorithms from labeled volumes.
  • Utilities: This module allows you to perform several actions like cropping your volumes and labels dynamically, by selecting a fixed size volume and moving it around the image; computing prediction scores from ground truth and predicition labels; or converting labels from instance to segmentation and the opposite.

Requirements

Python >= 3.8 required

Requires pytorch and MONAI. For PyTorch, please see PyTorch's website for installation instructions. A CUDA-capable GPU is not needed but very strongly recommended, especially for training. If you get errors from MONAI regarding missing readers, please see MONAI's optional dependencies page for instructions on getting the readers required by your images.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Testing

To run tests locally:

  • Locally : run pytest in the plugin folder
  • Locally with coverage : In the plugin folder, run coverage run --source=src -m pytest then coverage.xml to generate a .xml coverage file.
  • With tox : run tox in the plugin folder (will simulate tests with several python and OS configs, requires substantial storage space)

Contributing

Contributions are very welcome.

Please ensure the coverage at least stays the same before you submit a pull request.

For local installation from Github cloning, please run:

pip install -e .

License

Distributed under the terms of the MIT license.

"napari-cellseg3d" is free and open source software.

Acknowledgements

This plugin was developed by Cyril Achard, Maxime Vidal, Mackenzie Mathis. This work was funded, in part, from the Wyss Center to the Mathis Laboratory of Adaptive Motor Control.

Plugin base

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

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-cellseg3d-0.0.1rc2.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

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

napari_cellseg3d-0.0.1rc2-py3-none-any.whl (90.0 kB view details)

Uploaded Python 3

File details

Details for the file napari-cellseg3d-0.0.1rc2.tar.gz.

File metadata

  • Download URL: napari-cellseg3d-0.0.1rc2.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for napari-cellseg3d-0.0.1rc2.tar.gz
Algorithm Hash digest
SHA256 8133dd23d1828b81ff2f8e7f3a98ef00d9c36b309620663721f45b127ad79185
MD5 0b0e0a0db4391d19704d60014d8c24ae
BLAKE2b-256 45f178a9e82d12efe2beee81d21b67ab2b77020a7048a063a2a4a1dc87797e5c

See more details on using hashes here.

File details

Details for the file napari_cellseg3d-0.0.1rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_cellseg3d-0.0.1rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f54457556161a53ba29d98d80131e965e0fd3ef9ec282dbc57479b2f858d665
MD5 02fc70022c2c3f0bfaa6b21b29aeca0b
BLAKE2b-256 86c3f7aa4ab0afd600ca63025dd4032384fbb7e9abfd69da73180856e293e34b

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