napari-tmidas 0.1.1__tar.gz → 0.1.3__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.3}/PKG-INFO +49 -16
  2. napari_tmidas-0.1.3/README.md +99 -0
  3. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/pyproject.toml +1 -0
  4. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/__init__.py +4 -10
  5. napari_tmidas-0.1.3/src/napari_tmidas/_file_selector.py +518 -0
  6. napari_tmidas-0.1.3/src/napari_tmidas/_label_inspection.py +160 -0
  7. napari_tmidas-0.1.3/src/napari_tmidas/_registry.py +68 -0
  8. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_version.py +2 -2
  9. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/napari.yaml +10 -21
  10. napari_tmidas-0.1.3/src/napari_tmidas/processing_functions/__init__.py +61 -0
  11. napari_tmidas-0.1.3/src/napari_tmidas/processing_functions/basic.py +60 -0
  12. napari_tmidas-0.1.3/src/napari_tmidas/processing_functions/scipy_filters.py +57 -0
  13. napari_tmidas-0.1.3/src/napari_tmidas/processing_functions/skimage_filters.py +113 -0
  14. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas.egg-info/PKG-INFO +49 -16
  15. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas.egg-info/SOURCES.txt +8 -1
  16. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/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.3}/.github/dependabot.yml +0 -0
  19. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/.github/workflows/test_and_deploy.yml +0 -0
  20. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/.gitignore +0 -0
  21. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/.napari-hub/DESCRIPTION.md +0 -0
  22. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/.napari-hub/config.yml +0 -0
  23. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/.pre-commit-config.yaml +0 -0
  24. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/LICENSE +0 -0
  25. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/MANIFEST.in +0 -0
  26. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/setup.cfg +0 -0
  27. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_reader.py +0 -0
  28. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_sample_data.py +0 -0
  29. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_tests/__init__.py +0 -0
  30. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_tests/test_reader.py +0 -0
  31. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_tests/test_sample_data.py +0 -0
  32. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_tests/test_widget.py +0 -0
  33. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_tests/test_writer.py +0 -0
  34. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_widget.py +0 -0
  35. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas/_writer.py +0 -0
  36. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas.egg-info/dependency_links.txt +0 -0
  37. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas.egg-info/entry_points.txt +0 -0
  38. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/src/napari_tmidas.egg-info/top_level.txt +0 -0
  39. {napari_tmidas-0.1.1 → napari_tmidas-0.1.3}/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.3
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,54 @@ 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
+ You can find the installed plugin here:
96
+
97
+ ![image](https://github.com/user-attachments/assets/504db09a-d66e-49eb-90cd-3237024d9d7a)
98
98
 
99
- To install latest development version :
99
+ ### File inspector
100
100
 
101
- pip install git+https://github.com/macromeer/napari-tmidas.git
101
+ 1. After opening `Plugins > T-MIDAS > File selector`, enter the path to the folder containing the images to be processed (currently supports TIF, later also ZARR). You can also filter for filename suffix.
102
+
103
+ ![image](https://github.com/user-attachments/assets/41ecb689-9abe-4371-83b5-9c5eb37069f9)
104
+
105
+ 2. As a result, a table appears with the found images.
106
+
107
+ ![image](https://github.com/user-attachments/assets/8360942a-be8f-49ec-bc25-385ee43bd601)
108
+
109
+ 3. Next, select a processing function, set parameters if applicable and `Start Batch Processing`.
110
+
111
+ ![image](https://github.com/user-attachments/assets/05929660-6672-4f76-89da-4f17749ccfad)
112
+
113
+ 4. You can click on the images in the table 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.
114
+
115
+ ![image](https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce)
116
+
117
+ Note that 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 see the image pair that you want to inspect.
118
+
119
+ ### Label inspector
120
+ 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 `Plugins > T-MIDAS > Label inspector`, which automatically saves your changes to the existing label image once you click the `Save Changes and Continue` button (bottom right).
121
+
122
+ ![image](https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e)
102
123
 
103
124
 
104
125
  ## Contributing
@@ -128,6 +149,18 @@ If you encounter any problems, please [file an issue] along with a detailed desc
128
149
 
129
150
  [file an issue]: https://github.com/macromeer/napari-tmidas/issues
130
151
 
152
+ ----------------------------------
153
+
154
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
155
+
156
+ <!--
157
+ Don't miss the full getting started guide to set up your new package:
158
+ https://github.com/napari/napari-plugin-template#getting-started
159
+
160
+ and review the napari docs for plugin developers:
161
+ https://napari.org/stable/plugins/index.html
162
+ -->
163
+
131
164
  [napari]: https://github.com/napari/napari
132
165
  [tox]: https://tox.readthedocs.io/en/latest/
133
166
  [pip]: https://pypi.org/project/pip/
@@ -0,0 +1,99 @@
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
+ You can find the installed plugin here:
28
+
29
+ ![image](https://github.com/user-attachments/assets/504db09a-d66e-49eb-90cd-3237024d9d7a)
30
+
31
+ ### File inspector
32
+
33
+ 1. After opening `Plugins > T-MIDAS > File selector`, enter the path to the folder containing the images to be processed (currently supports TIF, later also ZARR). You can also filter for filename suffix.
34
+
35
+ ![image](https://github.com/user-attachments/assets/41ecb689-9abe-4371-83b5-9c5eb37069f9)
36
+
37
+ 2. As a result, a table appears with the found images.
38
+
39
+ ![image](https://github.com/user-attachments/assets/8360942a-be8f-49ec-bc25-385ee43bd601)
40
+
41
+ 3. Next, select a processing function, set parameters if applicable and `Start Batch Processing`.
42
+
43
+ ![image](https://github.com/user-attachments/assets/05929660-6672-4f76-89da-4f17749ccfad)
44
+
45
+ 4. You can click on the images in the table 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.
46
+
47
+ ![image](https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce)
48
+
49
+ Note that 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 see the image pair that you want to inspect.
50
+
51
+ ### Label inspector
52
+ 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 `Plugins > T-MIDAS > Label inspector`, which automatically saves your changes to the existing label image once you click the `Save Changes and Continue` button (bottom right).
53
+
54
+ ![image](https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e)
55
+
56
+
57
+ ## Contributing
58
+
59
+ Contributions are very welcome. Tests can be run with [tox], please ensure
60
+ the coverage at least stays the same before you submit a pull request.
61
+
62
+ ## License
63
+
64
+ Distributed under the terms of the [BSD-3] license,
65
+ "napari-tmidas" is free and open source software
66
+
67
+ ## Issues
68
+
69
+ If you encounter any problems, please [file an issue] along with a detailed description.
70
+
71
+ [napari]: https://github.com/napari/napari
72
+ [copier]: https://copier.readthedocs.io/en/stable/
73
+ [@napari]: https://github.com/napari
74
+ [MIT]: http://opensource.org/licenses/MIT
75
+ [BSD-3]: http://opensource.org/licenses/BSD-3-Clause
76
+ [GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
77
+ [GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
78
+ [Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
79
+ [Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
80
+ [napari-plugin-template]: https://github.com/napari/napari-plugin-template
81
+
82
+ [file an issue]: https://github.com/macromeer/napari-tmidas/issues
83
+
84
+ ----------------------------------
85
+
86
+ This [napari] plugin was generated with [copier] using the [napari-plugin-template].
87
+
88
+ <!--
89
+ Don't miss the full getting started guide to set up your new package:
90
+ https://github.com/napari/napari-plugin-template#getting-started
91
+
92
+ and review the napari docs for plugin developers:
93
+ https://napari.org/stable/plugins/index.html
94
+ -->
95
+
96
+ [napari]: https://github.com/napari/napari
97
+ [tox]: https://tox.readthedocs.io/en/latest/
98
+ [pip]: https://pypi.org/project/pip/
99
+ [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
  )