napari-svetlana


Namenapari-svetlana JSON
Version 0.3.2 PyPI version JSON
download
home_page
SummaryA classification plugin for the ROIs of a segmentation mask.
upload_time2023-11-14 14:18:37
maintainer
docs_urlNone
authorClément Cazorla
requires_python>=3.9
licenseGPL-3.0-only
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # napari_svetlana

[![License](https://img.shields.io/pypi/l/napari_svetlana.svg?color=green)](https://bitbucket.org/koopa31/napari_svetlana/src/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/napari_svetlana.svg?color=green)](https://pypi.org/project/napari_svetlana)
[![Python Version](https://img.shields.io/pypi/pyversions/napari_svetlana.svg?color=green)](https://python.org)
[![tests](https://bitbucket.org/koopa31/napari_svetlana/workflows/tests/badge.svg)](https://bitbucket.org/koopa31/napari_svetlana/actions)
[![codecov](https://codecov.io/gh/koopa31/napari_svetlana/branch/main/graph/badge.svg)](https://codecov.io/gh/koopa31/napari_svetlana)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-svetlana)](https://napari-hub.org/plugins/napari-svetlana)
[![Documentation](https://readthedocs.org/projects/svetlana-documentation/badge/?version=latest)](https://svetlana-documentation.readthedocs.io/en/latest/)

The aim of this plugin is to classify the output of a segmentation algorithm.
The inputs are :
<ul>
  <li>A folder of raw images</li>
  <li>Their segmentation masks where each ROI has its own label.</li>
</ul>

Svetlana can process 2D, 3D and multichannel image. If you want to use it to work on cell images, we strongly
recommend the use of [Cellpose](https://www.cellpose.org) for the segmentation part, as it provides excellent quality results and a standard output format
accepted by Svetlana (labels masks). 

If you use this plugin please cite the [paper](https://hal.inria.fr/hal-03927879): 

Cazorla, C., Weiss, P., & Morin, R. (2023). Svetlana: a Supervised Segmentation Classifier for Napari.

```bibtex
@unpublished{weiss:hal-03927879,
  TITLE = {{Svetlana: a Supervised Segmentation Classifier for Napari}},
  AUTHOR = {Weiss, Pierre and Cazorla, Cl{\'e}ment and Morin, Renaud},
  URL = {https://hal.inria.fr/hal-03927879},
  NOTE = {working paper or preprint},
  YEAR = {2023},
  MONTH = Jan,
  PDF = {https://hal.inria.fr/hal-03927879/file/main_nature.pdf},
  HAL_ID = {hal-03927879},
  HAL_VERSION = {v1},
}

```


![](https://bitbucket.org/koopa31/napari_svetlana/raw/bca8788111b38d97bd172c7caac87cc488ace699/images/Videogif.gif)


----------------------------------

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

<!--
Don't miss the full getting started guide to set up your new package:
https://github.com/napari/cookiecutter-napari-plugin#getting-started

and review the napari docs for plugin developers:
https://napari.org/plugins/stable/index.html
-->

## Installation

First install Napari in a Python 3.9 Conda environment following these instructions :

```bash
conda create -n svetlana_env python=3.9
conda activate svetlana_env
conda install pip
python -m pip install "napari[all]"==0.4.17
```

Then, you can install `napari_svetlana` via [pip](https://pypi.org/project/napari-svetlana/), or directly from the Napari plugin manager (see Napari documentation):
```bash
pip install napari_svetlana
```
WARNING:

If you have a Cuda compatible GPU on your computer, some computations may be accelerated
using [Cupy](https://pypi.org/project/cupy/). Unfortunately, Cupy needs Cudatoolkit to be installed. This library can only be installed via 
Conda while the plugin is a pip plugin, so it must be installed manually for the moment:
```bash
conda install cudatoolkit=10.2 
```
Also note that the library ([Cucim](https://pypi.org/project/cucim/)) that we use to improve these performances, computing morphological operations on GPU
is unfortunately only available for Linux systems. Hence, if you are a Windows user, this installation is not necessary.

## Tutorial

Many advanced features are available in Svetlana, such as data augmentation or contextual information reduction, to optimize the performance of your classifier. Thus, we strongly encourage you to
check our [Youtube tutorial](https://www.youtube.com/watch?v=u_FKuHta-RE) and
our [documentation](https://svetlana-documentation.readthedocs.io/en/latest/).
A button called **TRY ON DEMO IMAGE** is available in the annotation plugin and enables you to apply the YouTube
tutorial to the same test images to learn how to use the plugin. Feel free to try it to test all the features
that Svetlana offers.

## Similar Napari plugins

Joel Luethi developed a similar method for objects classification called [napari feature classifier](https://www.napari-hub.org/plugins/napari-feature-classifier).
Also, [apoc](https://www.napari-hub.org/plugins/napari-accelerated-pixel-and-object-classification) by Robert Haase is available in Napari for pixels and objects classification.

## Contributing

Contributions are very welcome.

## License

Distributed under the terms of the [BSD-3] license,
"napari_svetlana" is free and open source software

## Acknowledgements

The method was developed by [Clément Cazorla](https://koopa31.github.io/), [Renaud Morin](https://www.linkedin.com/in/renaud-morin-6a42665b/?originalSubdomain=fr) and [Pierre Weiss](https://www.math.univ-toulouse.fr/~weiss/). And the plugin was written by
Clément Cazorla. The project is co-funded by [Imactiv-3D](https://www.imactiv-3d.com/) and [CNRS](https://www.cnrs.fr/fr).

## Issues

If you encounter any problems, please [file an issue](https://bitbucket.org/koopa31/napari_svetlana/issues?status=new&status=open) along with a detailed description.

[napari]: https://github.com/napari/napari
[Cookiecutter]: https://github.com/audreyr/cookiecutter
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin

[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "napari-svetlana",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Cl\u00e9ment Cazorla",
    "author_email": "clement.cazorla31@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a1/e5/82d6328c004a121954b8341b103785d70317f45bfbba44bdeaddf399e997/napari_svetlana-0.3.2.tar.gz",
    "platform": null,
    "description": "# napari_svetlana\n\n[![License](https://img.shields.io/pypi/l/napari_svetlana.svg?color=green)](https://bitbucket.org/koopa31/napari_svetlana/src/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari_svetlana.svg?color=green)](https://pypi.org/project/napari_svetlana)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari_svetlana.svg?color=green)](https://python.org)\n[![tests](https://bitbucket.org/koopa31/napari_svetlana/workflows/tests/badge.svg)](https://bitbucket.org/koopa31/napari_svetlana/actions)\n[![codecov](https://codecov.io/gh/koopa31/napari_svetlana/branch/main/graph/badge.svg)](https://codecov.io/gh/koopa31/napari_svetlana)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-svetlana)](https://napari-hub.org/plugins/napari-svetlana)\n[![Documentation](https://readthedocs.org/projects/svetlana-documentation/badge/?version=latest)](https://svetlana-documentation.readthedocs.io/en/latest/)\n\nThe aim of this plugin is to classify the output of a segmentation algorithm.\nThe inputs are :\n<ul>\n  <li>A folder of raw images</li>\n  <li>Their segmentation masks where each ROI has its own label.</li>\n</ul>\n\nSvetlana can process 2D, 3D and multichannel image. If you want to use it to work on cell images, we strongly\nrecommend the use of [Cellpose](https://www.cellpose.org) for the segmentation part, as it provides excellent quality results and a standard output format\naccepted by Svetlana (labels masks). \n\nIf you use this plugin please cite the [paper](https://hal.inria.fr/hal-03927879): \n\nCazorla, C., Weiss, P., & Morin, R. (2023). Svetlana: a Supervised Segmentation Classifier for Napari.\n\n```bibtex\n@unpublished{weiss:hal-03927879,\n  TITLE = {{Svetlana: a Supervised Segmentation Classifier for Napari}},\n  AUTHOR = {Weiss, Pierre and Cazorla, Cl{\\'e}ment and Morin, Renaud},\n  URL = {https://hal.inria.fr/hal-03927879},\n  NOTE = {working paper or preprint},\n  YEAR = {2023},\n  MONTH = Jan,\n  PDF = {https://hal.inria.fr/hal-03927879/file/main_nature.pdf},\n  HAL_ID = {hal-03927879},\n  HAL_VERSION = {v1},\n}\n\n```\n\n\n![](https://bitbucket.org/koopa31/napari_svetlana/raw/bca8788111b38d97bd172c7caac87cc488ace699/images/Videogif.gif)\n\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n<!--\nDon't miss the full getting started guide to set up your new package:\nhttps://github.com/napari/cookiecutter-napari-plugin#getting-started\n\nand review the napari docs for plugin developers:\nhttps://napari.org/plugins/stable/index.html\n-->\n\n## Installation\n\nFirst install Napari in a Python 3.9 Conda environment following these instructions :\n\n```bash\nconda create -n svetlana_env python=3.9\nconda activate svetlana_env\nconda install pip\npython -m pip install \"napari[all]\"==0.4.17\n```\n\nThen, you can install `napari_svetlana` via [pip](https://pypi.org/project/napari-svetlana/), or directly from the Napari plugin manager (see Napari documentation):\n```bash\npip install napari_svetlana\n```\nWARNING:\n\nIf you have a Cuda compatible GPU on your computer, some computations may be accelerated\nusing [Cupy](https://pypi.org/project/cupy/). Unfortunately, Cupy needs Cudatoolkit to be installed. This library can only be installed via \nConda while the plugin is a pip plugin, so it must be installed manually for the moment:\n```bash\nconda install cudatoolkit=10.2 \n```\nAlso note that the library ([Cucim](https://pypi.org/project/cucim/)) that we use to improve these performances, computing morphological operations on GPU\nis unfortunately only available for Linux systems. Hence, if you are a Windows user, this installation is not necessary.\n\n## Tutorial\n\nMany advanced features are available in Svetlana, such as data augmentation or contextual information reduction, to optimize the performance of your classifier. Thus, we strongly encourage you to\ncheck our [Youtube tutorial](https://www.youtube.com/watch?v=u_FKuHta-RE) and\nour [documentation](https://svetlana-documentation.readthedocs.io/en/latest/).\nA button called **TRY ON DEMO IMAGE** is available in the annotation plugin and enables you to apply the YouTube\ntutorial to the same test images to learn how to use the plugin. Feel free to try it to test all the features\nthat Svetlana offers.\n\n## Similar Napari plugins\n\nJoel Luethi developed a similar method for objects classification called [napari feature classifier](https://www.napari-hub.org/plugins/napari-feature-classifier).\nAlso, [apoc](https://www.napari-hub.org/plugins/napari-accelerated-pixel-and-object-classification) by Robert Haase is available in Napari for pixels and objects classification.\n\n## Contributing\n\nContributions are very welcome.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari_svetlana\" is free and open source software\n\n## Acknowledgements\n\nThe method was developed by [Cl\u00e9ment Cazorla](https://koopa31.github.io/), [Renaud Morin](https://www.linkedin.com/in/renaud-morin-6a42665b/?originalSubdomain=fr) and [Pierre Weiss](https://www.math.univ-toulouse.fr/~weiss/). And the plugin was written by\nCl\u00e9ment Cazorla. The project is co-funded by [Imactiv-3D](https://www.imactiv-3d.com/) and [CNRS](https://www.cnrs.fr/fr).\n\n## Issues\n\nIf you encounter any problems, please [file an issue](https://bitbucket.org/koopa31/napari_svetlana/issues?status=new&status=open) along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-only",
    "summary": "A classification plugin for the ROIs of a segmentation mask.",
    "version": "0.3.2",
    "project_urls": {
        "Bug Tracker": "https://bitbucket.org/koopa31/napari_svetlana/issues?status=new&status=open",
        "Documentation": "https://svetlana-documentation.readthedocs.io/en/latest/",
        "Source Code": "https://bitbucket.org/koopa31/napari_svetlana/src/main/",
        "User Support": "https://bitbucket.org/koopa31/napari_svetlana/issues?status=new&status=open"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "823f5d9679d0821b048f1ae51a1971bf2975616c3d35e505f9b23195ad343914",
                "md5": "fe41d911e0903efdb551b1fb0c31ba56",
                "sha256": "e475da7a4117e91e7f7c35f07a3effbc7ab2cd06c1aeb07aed5b8b938880b0da"
            },
            "downloads": -1,
            "filename": "napari_svetlana-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fe41d911e0903efdb551b1fb0c31ba56",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 119625,
            "upload_time": "2023-11-14T14:18:34",
            "upload_time_iso_8601": "2023-11-14T14:18:34.760360Z",
            "url": "https://files.pythonhosted.org/packages/82/3f/5d9679d0821b048f1ae51a1971bf2975616c3d35e505f9b23195ad343914/napari_svetlana-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1e582d6328c004a121954b8341b103785d70317f45bfbba44bdeaddf399e997",
                "md5": "056b7e0031084f925bf9aaff82029dbb",
                "sha256": "4ab19780fbfe89592ab204fb40822e206ded2a0a0349008652250ab0d40fd9c3"
            },
            "downloads": -1,
            "filename": "napari_svetlana-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "056b7e0031084f925bf9aaff82029dbb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 95330,
            "upload_time": "2023-11-14T14:18:37",
            "upload_time_iso_8601": "2023-11-14T14:18:37.814616Z",
            "url": "https://files.pythonhosted.org/packages/a1/e5/82d6328c004a121954b8341b103785d70317f45bfbba44bdeaddf399e997/napari_svetlana-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-14 14:18:37",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "koopa31",
    "bitbucket_project": "napari_svetlana",
    "lcname": "napari-svetlana"
}
        
Elapsed time: 0.16731s