napari-tmidas 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/PKG-INFO +50 -16
  2. napari_tmidas-0.1.2/README.md +100 -0
  3. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/pyproject.toml +1 -0
  4. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/__init__.py +4 -10
  5. napari_tmidas-0.1.2/src/napari_tmidas/_file_selector.py +518 -0
  6. napari_tmidas-0.1.2/src/napari_tmidas/_label_inspection.py +160 -0
  7. napari_tmidas-0.1.2/src/napari_tmidas/_registry.py +68 -0
  8. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_version.py +2 -2
  9. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/napari.yaml +10 -21
  10. napari_tmidas-0.1.2/src/napari_tmidas/processing_functions/__init__.py +61 -0
  11. napari_tmidas-0.1.2/src/napari_tmidas/processing_functions/basic.py +60 -0
  12. napari_tmidas-0.1.2/src/napari_tmidas/processing_functions/scipy_filters.py +57 -0
  13. napari_tmidas-0.1.2/src/napari_tmidas/processing_functions/skimage_filters.py +113 -0
  14. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/PKG-INFO +50 -16
  15. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/SOURCES.txt +8 -1
  16. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/requires.txt +1 -0
  17. napari_tmidas-0.1.1/README.md +0 -67
  18. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.github/dependabot.yml +0 -0
  19. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.github/workflows/test_and_deploy.yml +0 -0
  20. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.gitignore +0 -0
  21. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.napari-hub/DESCRIPTION.md +0 -0
  22. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.napari-hub/config.yml +0 -0
  23. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/.pre-commit-config.yaml +0 -0
  24. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/LICENSE +0 -0
  25. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/MANIFEST.in +0 -0
  26. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/setup.cfg +0 -0
  27. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_reader.py +0 -0
  28. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_sample_data.py +0 -0
  29. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_tests/__init__.py +0 -0
  30. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_tests/test_reader.py +0 -0
  31. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_tests/test_sample_data.py +0 -0
  32. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_tests/test_widget.py +0 -0
  33. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_tests/test_writer.py +0 -0
  34. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_widget.py +0 -0
  35. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas/_writer.py +0 -0
  36. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/dependency_links.txt +0 -0
  37. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/entry_points.txt +0 -0
  38. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/src/napari_tmidas.egg-info/top_level.txt +0 -0
  39. {napari_tmidas-0.1.1 → napari_tmidas-0.1.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: napari-tmidas
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Tissue Microscopy Image Data Analysis Suite
5
5
  Author: Marco Meer
6
6
  Author-email: marco.meer@pm.me
@@ -57,6 +57,7 @@ Requires-Dist: numpy
57
57
  Requires-Dist: magicgui
58
58
  Requires-Dist: qtpy
59
59
  Requires-Dist: scikit-image
60
+ Requires-Dist: pyqt5
60
61
  Provides-Extra: testing
61
62
  Requires-Dist: tox; extra == "testing"
62
63
  Requires-Dist: pytest; extra == "testing"
@@ -71,34 +72,55 @@ Requires-Dist: pyqt5; extra == "testing"
71
72
  [![PyPI](https://img.shields.io/pypi/v/napari-tmidas.svg?color=green)](https://pypi.org/project/napari-tmidas)
72
73
  [![Python Version](https://img.shields.io/pypi/pyversions/napari-tmidas.svg?color=green)](https://python.org)
73
74
  [![tests](https://github.com/macromeer/napari-tmidas/workflows/tests/badge.svg)](https://github.com/macromeer/napari-tmidas/actions)
74
- [![codecov](https://codecov.io/gh/macromeer/napari-tmidas/branch/main/graph/badge.svg)](https://codecov.io/gh/macromeer/napari-tmidas)
75
75
  [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-tmidas)](https://napari-hub.org/plugins/napari-tmidas)
76
+ <!-- [![codecov](https://codecov.io/gh/macromeer/napari-tmidas/branch/main/graph/badge.svg)](https://codecov.io/gh/macromeer/napari-tmidas) -->
76
77
 
77
- Tissue Microscopy Image Data Analysis Suite
78
+ The Tissue Microscopy Image Data Analysis Suite (short: T-MIDAS), is a collection of pipelines for batch image preprocessing, segmentation, regions-of-interest (ROI) analysis and other useful features. This is a work in progress (WIP) and an evolutionary step away from the [terminal / command-line version of T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
78
79
 
79
- ----------------------------------
80
+ ## Installation
80
81
 
81
- This [napari] plugin was generated with [copier] using the [napari-plugin-template].
82
+ First install Napari in a virtual environment following the latest [Napari installation instructions](https://github.com/Napari/napari?tab=readme-ov-file#installation).
82
83
 
83
- <!--
84
- Don't miss the full getting started guide to set up your new package:
85
- https://github.com/napari/napari-plugin-template#getting-started
86
84
 
87
- and review the napari docs for plugin developers:
88
- https://napari.org/stable/plugins/index.html
89
- -->
85
+ After you have activated the environment, you can install `napari-tmidas` via [pip]:
90
86
 
91
- ## Installation
87
+ pip install napari-tmidas
92
88
 
93
- You can install `napari-tmidas` via [pip]:
89
+ To install the latest development version:
94
90
 
95
- pip install napari-tmidas
91
+ pip install git+https://github.com/macromeer/napari-tmidas.git
96
92
 
93
+ ## Usage
97
94
 
95
+ ### File inspector
98
96
 
99
- To install latest development version :
97
+ 1. You can find the installed plugin here:
98
+
99
+ ![image](https://github.com/user-attachments/assets/504db09a-d66e-49eb-90cd-3237024d9d7a)
100
100
 
101
- pip install git+https://github.com/macromeer/napari-tmidas.git
101
+
102
+ 3. After opening the plugin, select the folder with the images to be processed (currently supports TIF, later also ZARR). You can also filter for filename suffix.
103
+
104
+ ![image](https://github.com/user-attachments/assets/41ecb689-9abe-4371-83b5-9c5eb37069f9)
105
+
106
+ 5. As a result, a table appears with the found images.
107
+
108
+ ![image](https://github.com/user-attachments/assets/8360942a-be8f-49ec-bc25-385ee43bd601)
109
+
110
+ 7. Next, select a processing function, set parameters if applicable and start batch processing.
111
+
112
+ ![image](https://github.com/user-attachments/assets/05929660-6672-4f76-89da-4f17749ccfad)
113
+
114
+ 9. You can click on the images to show them in the viewer. For example first click on one of the `Original Files`, and then the corresponding `Processed File` to see an overlay.
115
+
116
+ ![image](https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce)
117
+
118
+ Whenever you click on an `Original File` or `Processed File` in the table, it will replace the one that is currently shown in the viewer. So naturally, you'd first select the original image, and then the processed image to correctly overlay the image pair that you want to inspect.
119
+
120
+ ### Label inspector
121
+ If you have already segmented a folder full of images and now you want to maybe inspect and edit each label image, you can use the Label inspector, which automatically saves your changes to the existing label image once you click the `Save and Continue` button.
122
+
123
+ ![image](https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e)
102
124
 
103
125
 
104
126
  ## Contributing
@@ -128,6 +150,18 @@ If you encounter any problems, please [file an issue] along with a detailed desc
128
150
 
129
151
  [file an issue]: https://github.com/macromeer/napari-tmidas/issues
130
152
 
153
+ ----------------------------------
154
+
155
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
156
+
157
+ <!--
158
+ Don't miss the full getting started guide to set up your new package:
159
+ https://github.com/napari/napari-plugin-template#getting-started
160
+
161
+ and review the napari docs for plugin developers:
162
+ https://napari.org/stable/plugins/index.html
163
+ -->
164
+
131
165
  [napari]: https://github.com/napari/napari
132
166
  [tox]: https://tox.readthedocs.io/en/latest/
133
167
  [pip]: https://pypi.org/project/pip/
@@ -0,0 +1,100 @@
1
+ # napari-tmidas
2
+
3
+ [![License BSD-3](https://img.shields.io/pypi/l/napari-tmidas.svg?color=green)](https://github.com/macromeer/napari-tmidas/raw/main/LICENSE)
4
+ [![PyPI](https://img.shields.io/pypi/v/napari-tmidas.svg?color=green)](https://pypi.org/project/napari-tmidas)
5
+ [![Python Version](https://img.shields.io/pypi/pyversions/napari-tmidas.svg?color=green)](https://python.org)
6
+ [![tests](https://github.com/macromeer/napari-tmidas/workflows/tests/badge.svg)](https://github.com/macromeer/napari-tmidas/actions)
7
+ [![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-tmidas)](https://napari-hub.org/plugins/napari-tmidas)
8
+ <!-- [![codecov](https://codecov.io/gh/macromeer/napari-tmidas/branch/main/graph/badge.svg)](https://codecov.io/gh/macromeer/napari-tmidas) -->
9
+
10
+ The Tissue Microscopy Image Data Analysis Suite (short: T-MIDAS), is a collection of pipelines for batch image preprocessing, segmentation, regions-of-interest (ROI) analysis and other useful features. This is a work in progress (WIP) and an evolutionary step away from the [terminal / command-line version of T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
11
+
12
+ ## Installation
13
+
14
+ First install Napari in a virtual environment following the latest [Napari installation instructions](https://github.com/Napari/napari?tab=readme-ov-file#installation).
15
+
16
+
17
+ After you have activated the environment, you can install `napari-tmidas` via [pip]:
18
+
19
+ pip install napari-tmidas
20
+
21
+ To install the latest development version:
22
+
23
+ pip install git+https://github.com/macromeer/napari-tmidas.git
24
+
25
+ ## Usage
26
+
27
+ ### File inspector
28
+
29
+ 1. You can find the installed plugin here:
30
+
31
+ ![image](https://github.com/user-attachments/assets/504db09a-d66e-49eb-90cd-3237024d9d7a)
32
+
33
+
34
+ 3. After opening the plugin, select the folder with the images to be processed (currently supports TIF, later also ZARR). You can also filter for filename suffix.
35
+
36
+ ![image](https://github.com/user-attachments/assets/41ecb689-9abe-4371-83b5-9c5eb37069f9)
37
+
38
+ 5. As a result, a table appears with the found images.
39
+
40
+ ![image](https://github.com/user-attachments/assets/8360942a-be8f-49ec-bc25-385ee43bd601)
41
+
42
+ 7. Next, select a processing function, set parameters if applicable and start batch processing.
43
+
44
+ ![image](https://github.com/user-attachments/assets/05929660-6672-4f76-89da-4f17749ccfad)
45
+
46
+ 9. You can click on the images to show them in the viewer. For example first click on one of the `Original Files`, and then the corresponding `Processed File` to see an overlay.
47
+
48
+ ![image](https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce)
49
+
50
+ Whenever you click on an `Original File` or `Processed File` in the table, it will replace the one that is currently shown in the viewer. So naturally, you'd first select the original image, and then the processed image to correctly overlay the image pair that you want to inspect.
51
+
52
+ ### Label inspector
53
+ If you have already segmented a folder full of images and now you want to maybe inspect and edit each label image, you can use the Label inspector, which automatically saves your changes to the existing label image once you click the `Save and Continue` button.
54
+
55
+ ![image](https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e)
56
+
57
+
58
+ ## Contributing
59
+
60
+ Contributions are very welcome. Tests can be run with [tox], please ensure
61
+ the coverage at least stays the same before you submit a pull request.
62
+
63
+ ## License
64
+
65
+ Distributed under the terms of the [BSD-3] license,
66
+ "napari-tmidas" is free and open source software
67
+
68
+ ## Issues
69
+
70
+ If you encounter any problems, please [file an issue] along with a detailed description.
71
+
72
+ [napari]: https://github.com/napari/napari
73
+ [copier]: https://copier.readthedocs.io/en/stable/
74
+ [@napari]: https://github.com/napari
75
+ [MIT]: http://opensource.org/licenses/MIT
76
+ [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
77
+ [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
78
+ [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
79
+ [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
80
+ [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
81
+ [napari-plugin-template]: https://github.com/napari/napari-plugin-template
82
+
83
+ [file an issue]: https://github.com/macromeer/napari-tmidas/issues
84
+
85
+ ----------------------------------
86
+
87
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
88
+
89
+ <!--
90
+ Don't miss the full getting started guide to set up your new package:
91
+ https://github.com/napari/napari-plugin-template#getting-started
92
+
93
+ and review the napari docs for plugin developers:
94
+ https://napari.org/stable/plugins/index.html
95
+ -->
96
+
97
+ [napari]: https://github.com/napari/napari
98
+ [tox]: https://tox.readthedocs.io/en/latest/
99
+ [pip]: https://pypi.org/project/pip/
100
+ [PyPI]: https://pypi.org/
@@ -29,6 +29,7 @@ dependencies = [
29
29
  "magicgui",
30
30
  "qtpy",
31
31
  "scikit-image",
32
+ "pyqt5",
32
33
  ]
33
34
 
34
35
  [project.optional-dependencies]
@@ -3,14 +3,10 @@ try:
3
3
  except ImportError:
4
4
  __version__ = "unknown"
5
5
 
6
+
7
+ from ._label_inspection import label_inspector_widget
6
8
  from ._reader import napari_get_reader
7
9
  from ._sample_data import make_sample_data
8
- from ._widget import (
9
- ExampleQWidget,
10
- ImageThreshold,
11
- threshold_autogenerate_widget,
12
- threshold_magic_widget,
13
- )
14
10
  from ._writer import write_multiple, write_single_image
15
11
 
16
12
  __all__ = (
@@ -18,8 +14,6 @@ __all__ = (
18
14
  "write_single_image",
19
15
  "write_multiple",
20
16
  "make_sample_data",
21
- "ExampleQWidget",
22
- "ImageThreshold",
23
- "threshold_autogenerate_widget",
24
- "threshold_magic_widget",
17
+ "file_selector",
18
+ "label_inspector_widget",
25
19
  )