{"name":"napari-segment","display_name":"Segment organoid","visibility":"public","icon":"","categories":[],"schema_version":"0.2.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-segment.get_reader","title":"Open data with Segment organoid","python_name":"napari_segment._reader:napari_get_reader","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-segment.write_multiple","title":"Save multi-layer data with Segment organoid","python_name":"napari_segment._writer:write_multiple","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-segment.write_single_image","title":"Save image data with Segment organoid","python_name":"napari_segment._writer:write_single_image","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-segment.make_early_aggregate","title":"Load sample data","python_name":"napari_segment._sample_data:make_early_aggregate","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-segment.make_late_aggregate","title":"Load sample data","python_name":"napari_segment._sample_data:make_late_aggregate","short_title":null,"category":null,"icon":null,"enablement":null},{"id":"napari-segment.make_qwidget","title":"Segment nd2 stack with multiple positions","python_name":"napari_segment._widget:SegmentStack","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":[{"command":"napari-segment.get_reader","filename_patterns":["*.npy","*.nd2","*.tif"],"accepts_directories":true}],"writers":[{"command":"napari-segment.write_multiple","layer_types":["image*","labels*"],"filename_extensions":[],"display_name":""},{"command":"napari-segment.write_single_image","layer_types":["image"],"filename_extensions":[".npy"],"display_name":""}],"widgets":[{"command":"napari-segment.make_qwidget","display_name":"Segment multipos","autogenerate":false}],"sample_data":[{"command":"napari-segment.make_late_aggregate","key":"D3_D4","display_name":"Old aggregate"},{"command":"napari-segment.make_early_aggregate","key":"D3_D1","display_name":"Early aggregate"}],"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"napari-segment","version":"0.3.12","dynamic":null,"platform":null,"supported_platform":null,"summary":"Segment organoids and measure intensities","description":"# napari-segment\n\n[![License](https://img.shields.io/pypi/l/napari-segment.svg?color=green)](https://github.com/aaristov/napari-segment/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-segment.svg?color=green)](https://pypi.org/project/napari-segment)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-segment.svg?color=green)](https://python.org)\n[![tests](https://github.com/aaristov/napari-segment/workflows/tests/badge.svg)](https://github.com/aaristov/napari-segment/actions)\n[![codecov](https://codecov.io/gh/aaristov/napari-segment/branch/main/graph/badge.svg)](https://codecov.io/gh/aaristov/napari-segment)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-segment)](https://napari-hub.org/plugins/napari-segment)\n\nInteractively segment organoids/spheroids/aggregates in brightfield/fluorescence from nd2 multipositional stack.\n----------------------------------\n\n![image](https://user-images.githubusercontent.com/11408456/201948817-255717a6-5f5c-45a2-ae01-2e0cbb1e29e8.png)\n\n\n## Installation\n\n```pip install napari-segment```\n\nor\n\nFrom napari plugin\n\n![image](https://user-images.githubusercontent.com/11408456/201949692-33f94eaf-ac43-44dd-8c21-e9f9a460c5b2.png)\n\n\n## Usage for segmentation\n\n1. Drag your nd2 file into napari (otherwise try the Sample data from File / Open Sample / napari-segment)\n2. Lauch Plugins -> napari-segment: Segment multipos\n3. Select the brightfield channel\n4. The data is lazily loaded from nd2 dataset and dynamically segmented in the viewer.\n5. Binning 1-8 allows to skip small features and focus on bigger objects, also makes processing faster.\n![image](https://user-images.githubusercontent.com/11408456/201701163-70c4af51-8a3a-42a0-adb9-32f0114eb49d.png)\n6. Various preprocessing modes allow segmentation of different objects:\n![image](https://user-images.githubusercontent.com/11408456/201701809-f16a23ea-d14a-4b38-8b8c-08a113416509.png)\n\n - Invert: will use the dark shadow around aggregate - best for very old aggregates , out of focus (File / Open Sample / napari-segment / Old aggregate)\n \n ![image](https://user-images.githubusercontent.com/11408456/201701950-efd86fae-d85b-471c-bb44-a0e328e26adc.png)\n\n - Gradient: best for very sharp edges, early aggregates, single cells (File / Open Sample / napari-segment / Early aggregate) \n \n ![image](https://user-images.githubusercontent.com/11408456/201705697-5d0d0643-44b6-4cb9-9208-4a29dd899d8c.png)\n \n \n - Gauss diff: Fluorescence images\n The result of preprocessing will be shown in the \"Preprocessing\" layer.\n7. Smooth, Theshold and Erode parameters allow you to adjust the preliminary segmentation -> they all will appear in the \"Detections\" layer as outlines \n\n ![image](https://user-images.githubusercontent.com/11408456/201703675-cff6bac1-bb2a-4d45-963f-6e6d00309c77.png)\n\n8. Min/max diameter and eccentricity allow you to filter out unwanted regions -> the good regions will appear in the \"selected labels\" layer as filled areas.\n\n![image](https://user-images.githubusercontent.com/11408456/201703754-2c83a8d6-70c2-444a-8e30-54a39c901cd0.png)\n![image](https://user-images.githubusercontent.com/11408456/201707025-9121f0dc-3939-48f0-ae75-884891be8d66.png)\n\n\n9. Once satisfied, click \"Save the params!\" - it will automatically create file.nd2.params.yml file, so you can recall how the segmentation was done. Next time you open the same dataset, the parameters will be loaded automatically from this file. \n\n10. Next section is for quantifying the sizes. Pixel size will be retrieved automatically from metadata. If not: update it manually and click Update plots to see the correct sizes. Click on any suspected value to see the corresponding frame and try to adjust the above parameters. \n\n![image](https://user-images.githubusercontent.com/11408456/201704881-b2303b9a-50c6-49c7-80ff-a6099cc2a151.png)\n\n11. If impossible to get good results with automatic pipeline, click Clone for manual correction: this will create an editable \"Manual\" layer which you can edin with built-in tools in napari. Click \"Update plots\" to see the updated values. \n\n12. \"Save csv!\" will generate a csv file with regionprops. \n\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-segment\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please [file an issue] 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[file an issue]: https://github.com/aaristov/napari-segment/issues\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","description_content_type":"text/markdown","keywords":null,"home_page":"https://github.com/aaristov/napari-segment","download_url":null,"author":"Andrey Aristov","author_email":"aaristov@pasteur.fr","maintainer":null,"maintainer_email":null,"license":"BSD-3-Clause","classifier":["Development Status :: 2 - Pre-Alpha","Framework :: napari","Intended Audience :: Developers","License :: OSI Approved :: BSD License","Operating System :: OS Independent","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3 :: Only","Programming Language :: Python :: 3.8","Programming Language :: Python :: 3.9","Programming Language :: Python :: 3.10","Topic :: Software Development :: Testing"],"requires_dist":["dask","imageio-ffmpeg","matplotlib","napari","nd2","numpy","pytest-qt","scikit-image","zarr"],"requires_python":">=3.8","requires_external":null,"project_url":["Bug Tracker, https://github.com/aaristov/napari-segment/issues","Documentation, https://github.com/aaristov/napari-segment#README.md","Source Code, https://github.com/aaristov/napari-segment","User Support, https://github.com/aaristov/napari-segment/issues"],"provides_extra":null,"provides_dist":null,"obsoletes_dist":null},"npe1_shim":false}