napari-tmidas 0.1.8.5__tar.gz → 0.1.9__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.
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/PKG-INFO +18 -45
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/README.md +16 -43
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/pyproject.toml +1 -1
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_version.py +2 -2
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/PKG-INFO +18 -45
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.github/dependabot.yml +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.github/workflows/test_and_deploy.yml +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.gitignore +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.napari-hub/DESCRIPTION.md +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.napari-hub/config.yml +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/.pre-commit-config.yaml +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/LICENSE +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/MANIFEST.in +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/setup.cfg +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/__init__.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_crop_anything.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_file_conversion.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_file_selector.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_label_inspection.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_reader.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_registry.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_roi_colocalization.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_sample_data.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_tests/__init__.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_tests/test_reader.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_tests/test_sample_data.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_tests/test_widget.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_tests/test_writer.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_widget.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/_writer.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/napari.yaml +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/__init__.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/basic.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/cellpose_env_manager.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/cellpose_segmentation.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/colocalization.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/file_compression.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/scipy_filters.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/skimage_filters.py +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/SOURCES.txt +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/dependency_links.txt +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/entry_points.txt +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/requires.txt +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/top_level.txt +0 -0
- {napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/tox.ini +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napari-tmidas
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: A plugin for batch processing of confocal microscopy images
|
|
3
|
+
Version: 0.1.9
|
|
4
|
+
Summary: A plugin for batch processing of confocal and whole-slide microscopy images of biological tissues
|
|
5
5
|
Author: Marco Meer
|
|
6
6
|
Author-email: marco.meer@pm.me
|
|
7
7
|
License:
|
|
@@ -83,42 +83,14 @@ Dynamic: license-file
|
|
|
83
83
|
[](https://github.com/macromeer/napari-tmidas/actions)
|
|
84
84
|
[](https://napari-hub.org/plugins/napari-tmidas)
|
|
85
85
|
<!-- [](https://codecov.io/gh/macromeer/napari-tmidas) -->
|
|
86
|
-
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of microscopy images. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
87
|
-
|
|
88
|
-
## Feature Overview
|
|
89
|
-
|
|
90
|
-
1. **Image Processing**
|
|
91
|
-
- Process image folders with:
|
|
92
|
-
- Gamma correction & histogram equalization
|
|
93
|
-
- Z-projection and channel splitting
|
|
94
|
-
- Gaussian & median filters
|
|
95
|
-
- Thresholding (Otsu/manual)
|
|
96
|
-
- Label cleaning & binary conversion
|
|
97
|
-
- RGB to labels conversion
|
|
98
|
-
- Cellpose 3.0 automated segmentation
|
|
99
|
-
- File compression (Zstandard)
|
|
100
|
-
|
|
101
|
-
2. **Label Inspection**
|
|
102
|
-
- Review and edit label images with auto-save
|
|
103
|
-
|
|
104
|
-
3. **Microscopy Image Conversion**
|
|
105
|
-
- Convert .nd2/.lif/.ndpi/.czi/acquifer → .tif/.zarr with metadata preservation
|
|
106
|
-
|
|
107
|
-
4. **Crop Anything**
|
|
108
|
-
- Interactive ROI selection via click interface
|
|
109
|
-
|
|
110
|
-
5. **ROI Colocalization**
|
|
111
|
-
- Count colocalized labels across multiple channels
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Coming Soon
|
|
116
|
-
New features arriving April 2025
|
|
86
|
+
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of confocal and whole slide microscopy images of biological tissues. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
117
87
|
|
|
88
|
+
## Features
|
|
89
|
+
Currently, napari-tmidas provides pipelines as widgets for batch image conversion / cropping / processing, ROI colocalization and label inspection (cf. [Usage](#usage) below).
|
|
118
90
|
|
|
119
91
|
## Installation
|
|
120
92
|
|
|
121
|
-
First install Napari in a virtual environment:
|
|
93
|
+
First, install Napari in a virtual environment:
|
|
122
94
|
|
|
123
95
|
mamba create -y -n napari-tmidas -c conda-forge python=3.11 tqdm
|
|
124
96
|
mamba activate napari-tmidas
|
|
@@ -156,16 +128,15 @@ To use the plugin, start napari in the activated virtual environment with this t
|
|
|
156
128
|
|
|
157
129
|
mamba run -n napari-tmidas napari
|
|
158
130
|
|
|
159
|
-
You can find the installed plugin
|
|
160
|
-
|
|
161
|
-

|
|
162
|
-
|
|
131
|
+
You can then find the installed plugin in the Plugins tab.
|
|
163
132
|
|
|
164
133
|
### Microscopy Image Conversion
|
|
165
134
|
|
|
166
135
|
You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conversion`. Currently, this pipeline supports the conversion of `.nd2, .lif, .ndpi, .czi` and acquifer data. After scanning a folder of your choice for microscopy image data, select a file in the first column of the table and preview and export any image data it contains.
|
|
167
136
|
|
|
168
|
-
|
|
137
|
+
|
|
138
|
+
<img src="https://github.com/user-attachments/assets/e377ca71-2f30-447d-825e-d2feebf7061b" alt="Microscopy Image Conversion Widget" style="width:75%; height:auto;">
|
|
139
|
+
|
|
169
140
|
|
|
170
141
|
### Image Processing
|
|
171
142
|
|
|
@@ -173,7 +144,7 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
173
144
|
|
|
174
145
|

|
|
175
146
|
|
|
176
|
-
2. As a result, a table appears with the found images.
|
|
147
|
+
2. As a result, a table appears with the found images. You can click on them to inspect them in the viewer.
|
|
177
148
|
|
|
178
149
|

|
|
179
150
|
|
|
@@ -182,26 +153,28 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
182
153
|

|
|
183
154
|
|
|
184
155
|
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.
|
|
156
|
+
|
|
157
|
+
<img src="https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce" alt="Image Processing Widget" style="width:75%; height:auto;">
|
|
185
158
|
|
|
186
|
-

|
|
187
159
|
|
|
188
160
|
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.
|
|
189
161
|
|
|
190
162
|
### Batch Label Inspection
|
|
191
163
|
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 > Batch Label Inspection`, which automatically saves your changes to the existing label image once you click the `Save Changes and Continue` button (bottom right).
|
|
192
164
|
|
|
193
|
-
|
|
165
|
+
<img src="https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e" alt="Batch Label Inspection Widget" style="width:75%; height:auto;">
|
|
166
|
+
|
|
194
167
|
|
|
195
168
|
### Crop Anything
|
|
196
169
|
This pipeline combines the Segment Anything Model (SAM) for automatic object detection with an interactive interface for selecting and cropping multiple objects from images. To launch the widget, open `Plugins > T-MIDAS > Batch Crop Anything`. Click the image below to see a video demo.
|
|
197
170
|
|
|
198
|
-
|
|
171
|
+
<img src="https://github.com/user-attachments/assets/6d72c2a2-1064-4a27-b398-a9b86fcbc443" alt="Crop Anything Widget" style="width:75%; height:auto;">
|
|
172
|
+
|
|
199
173
|
|
|
200
174
|
### ROI Colocalization
|
|
201
175
|
This pipeline quantifies colocalization between labeled regions of interest (ROIs) across multiple image channels. It determines the extent of overlap between ROIs in a reference channel and those in one or two other channels. The output is a table of colocalization counts. Optionally, the size of reference channel ROIs, as well as the total or median size of colocalizing ROIs in the other channels, can be included. Colocalization is determined using Boolean masking. The number of colocalizing instances is determined by counting unique label IDs within the overlapping regions. Typically, the reference channel contains larger structures, while other channels contain smaller, potentially nested, structures. For example, the reference channel might contain cell bodies, with the second and third channels containing nuclei and sub-nuclear objects, respectively.
|
|
202
176
|
|
|
203
|
-
|
|
204
|
-
|
|
177
|
+
<img src="https://github.com/user-attachments/assets/2f9022a0-7b88-4588-a448-250f07a634d7" alt="ROI Colocalization Widget" style="width:75%; height:auto;">
|
|
205
178
|
|
|
206
179
|
## Contributing
|
|
207
180
|
|
|
@@ -6,42 +6,14 @@
|
|
|
6
6
|
[](https://github.com/macromeer/napari-tmidas/actions)
|
|
7
7
|
[](https://napari-hub.org/plugins/napari-tmidas)
|
|
8
8
|
<!-- [](https://codecov.io/gh/macromeer/napari-tmidas) -->
|
|
9
|
-
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of microscopy images. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
10
|
-
|
|
11
|
-
## Feature Overview
|
|
12
|
-
|
|
13
|
-
1. **Image Processing**
|
|
14
|
-
- Process image folders with:
|
|
15
|
-
- Gamma correction & histogram equalization
|
|
16
|
-
- Z-projection and channel splitting
|
|
17
|
-
- Gaussian & median filters
|
|
18
|
-
- Thresholding (Otsu/manual)
|
|
19
|
-
- Label cleaning & binary conversion
|
|
20
|
-
- RGB to labels conversion
|
|
21
|
-
- Cellpose 3.0 automated segmentation
|
|
22
|
-
- File compression (Zstandard)
|
|
23
|
-
|
|
24
|
-
2. **Label Inspection**
|
|
25
|
-
- Review and edit label images with auto-save
|
|
26
|
-
|
|
27
|
-
3. **Microscopy Image Conversion**
|
|
28
|
-
- Convert .nd2/.lif/.ndpi/.czi/acquifer → .tif/.zarr with metadata preservation
|
|
29
|
-
|
|
30
|
-
4. **Crop Anything**
|
|
31
|
-
- Interactive ROI selection via click interface
|
|
32
|
-
|
|
33
|
-
5. **ROI Colocalization**
|
|
34
|
-
- Count colocalized labels across multiple channels
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### Coming Soon
|
|
39
|
-
New features arriving April 2025
|
|
9
|
+
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of confocal and whole slide microscopy images of biological tissues. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
40
10
|
|
|
11
|
+
## Features
|
|
12
|
+
Currently, napari-tmidas provides pipelines as widgets for batch image conversion / cropping / processing, ROI colocalization and label inspection (cf. [Usage](#usage) below).
|
|
41
13
|
|
|
42
14
|
## Installation
|
|
43
15
|
|
|
44
|
-
First install Napari in a virtual environment:
|
|
16
|
+
First, install Napari in a virtual environment:
|
|
45
17
|
|
|
46
18
|
mamba create -y -n napari-tmidas -c conda-forge python=3.11 tqdm
|
|
47
19
|
mamba activate napari-tmidas
|
|
@@ -79,16 +51,15 @@ To use the plugin, start napari in the activated virtual environment with this t
|
|
|
79
51
|
|
|
80
52
|
mamba run -n napari-tmidas napari
|
|
81
53
|
|
|
82
|
-
You can find the installed plugin
|
|
83
|
-
|
|
84
|
-

|
|
85
|
-
|
|
54
|
+
You can then find the installed plugin in the Plugins tab.
|
|
86
55
|
|
|
87
56
|
### Microscopy Image Conversion
|
|
88
57
|
|
|
89
58
|
You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conversion`. Currently, this pipeline supports the conversion of `.nd2, .lif, .ndpi, .czi` and acquifer data. After scanning a folder of your choice for microscopy image data, select a file in the first column of the table and preview and export any image data it contains.
|
|
90
59
|
|
|
91
|
-
|
|
60
|
+
|
|
61
|
+
<img src="https://github.com/user-attachments/assets/e377ca71-2f30-447d-825e-d2feebf7061b" alt="Microscopy Image Conversion Widget" style="width:75%; height:auto;">
|
|
62
|
+
|
|
92
63
|
|
|
93
64
|
### Image Processing
|
|
94
65
|
|
|
@@ -96,7 +67,7 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
96
67
|
|
|
97
68
|

|
|
98
69
|
|
|
99
|
-
2. As a result, a table appears with the found images.
|
|
70
|
+
2. As a result, a table appears with the found images. You can click on them to inspect them in the viewer.
|
|
100
71
|
|
|
101
72
|

|
|
102
73
|
|
|
@@ -105,26 +76,28 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
105
76
|

|
|
106
77
|
|
|
107
78
|
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.
|
|
79
|
+
|
|
80
|
+
<img src="https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce" alt="Image Processing Widget" style="width:75%; height:auto;">
|
|
108
81
|
|
|
109
|
-

|
|
110
82
|
|
|
111
83
|
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.
|
|
112
84
|
|
|
113
85
|
### Batch Label Inspection
|
|
114
86
|
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 > Batch Label Inspection`, which automatically saves your changes to the existing label image once you click the `Save Changes and Continue` button (bottom right).
|
|
115
87
|
|
|
116
|
-
|
|
88
|
+
<img src="https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e" alt="Batch Label Inspection Widget" style="width:75%; height:auto;">
|
|
89
|
+
|
|
117
90
|
|
|
118
91
|
### Crop Anything
|
|
119
92
|
This pipeline combines the Segment Anything Model (SAM) for automatic object detection with an interactive interface for selecting and cropping multiple objects from images. To launch the widget, open `Plugins > T-MIDAS > Batch Crop Anything`. Click the image below to see a video demo.
|
|
120
93
|
|
|
121
|
-
|
|
94
|
+
<img src="https://github.com/user-attachments/assets/6d72c2a2-1064-4a27-b398-a9b86fcbc443" alt="Crop Anything Widget" style="width:75%; height:auto;">
|
|
95
|
+
|
|
122
96
|
|
|
123
97
|
### ROI Colocalization
|
|
124
98
|
This pipeline quantifies colocalization between labeled regions of interest (ROIs) across multiple image channels. It determines the extent of overlap between ROIs in a reference channel and those in one or two other channels. The output is a table of colocalization counts. Optionally, the size of reference channel ROIs, as well as the total or median size of colocalizing ROIs in the other channels, can be included. Colocalization is determined using Boolean masking. The number of colocalizing instances is determined by counting unique label IDs within the overlapping regions. Typically, the reference channel contains larger structures, while other channels contain smaller, potentially nested, structures. For example, the reference channel might contain cell bodies, with the second and third channels containing nuclei and sub-nuclear objects, respectively.
|
|
125
99
|
|
|
126
|
-
|
|
127
|
-
|
|
100
|
+
<img src="https://github.com/user-attachments/assets/2f9022a0-7b88-4588-a448-250f07a634d7" alt="ROI Colocalization Widget" style="width:75%; height:auto;">
|
|
128
101
|
|
|
129
102
|
## Contributing
|
|
130
103
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "napari-tmidas"
|
|
3
3
|
dynamic = ["version"]
|
|
4
|
-
description = "A plugin for batch processing of confocal microscopy images"
|
|
4
|
+
description = "A plugin for batch processing of confocal and whole-slide microscopy images of biological tissues"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = {file = "LICENSE"}
|
|
7
7
|
authors = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: napari-tmidas
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: A plugin for batch processing of confocal microscopy images
|
|
3
|
+
Version: 0.1.9
|
|
4
|
+
Summary: A plugin for batch processing of confocal and whole-slide microscopy images of biological tissues
|
|
5
5
|
Author: Marco Meer
|
|
6
6
|
Author-email: marco.meer@pm.me
|
|
7
7
|
License:
|
|
@@ -83,42 +83,14 @@ Dynamic: license-file
|
|
|
83
83
|
[](https://github.com/macromeer/napari-tmidas/actions)
|
|
84
84
|
[](https://napari-hub.org/plugins/napari-tmidas)
|
|
85
85
|
<!-- [](https://codecov.io/gh/macromeer/napari-tmidas) -->
|
|
86
|
-
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of microscopy images. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
87
|
-
|
|
88
|
-
## Feature Overview
|
|
89
|
-
|
|
90
|
-
1. **Image Processing**
|
|
91
|
-
- Process image folders with:
|
|
92
|
-
- Gamma correction & histogram equalization
|
|
93
|
-
- Z-projection and channel splitting
|
|
94
|
-
- Gaussian & median filters
|
|
95
|
-
- Thresholding (Otsu/manual)
|
|
96
|
-
- Label cleaning & binary conversion
|
|
97
|
-
- RGB to labels conversion
|
|
98
|
-
- Cellpose 3.0 automated segmentation
|
|
99
|
-
- File compression (Zstandard)
|
|
100
|
-
|
|
101
|
-
2. **Label Inspection**
|
|
102
|
-
- Review and edit label images with auto-save
|
|
103
|
-
|
|
104
|
-
3. **Microscopy Image Conversion**
|
|
105
|
-
- Convert .nd2/.lif/.ndpi/.czi/acquifer → .tif/.zarr with metadata preservation
|
|
106
|
-
|
|
107
|
-
4. **Crop Anything**
|
|
108
|
-
- Interactive ROI selection via click interface
|
|
109
|
-
|
|
110
|
-
5. **ROI Colocalization**
|
|
111
|
-
- Count colocalized labels across multiple channels
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Coming Soon
|
|
116
|
-
New features arriving April 2025
|
|
86
|
+
The `napari-tmidas` plugin consists of a growing collection of pipelines for fast batch processing of confocal and whole slide microscopy images of biological tissues. This is a WIP and based on the CLI version of [T-MIDAS](https://github.com/MercaderLabAnatomy/T-MIDAS).
|
|
117
87
|
|
|
88
|
+
## Features
|
|
89
|
+
Currently, napari-tmidas provides pipelines as widgets for batch image conversion / cropping / processing, ROI colocalization and label inspection (cf. [Usage](#usage) below).
|
|
118
90
|
|
|
119
91
|
## Installation
|
|
120
92
|
|
|
121
|
-
First install Napari in a virtual environment:
|
|
93
|
+
First, install Napari in a virtual environment:
|
|
122
94
|
|
|
123
95
|
mamba create -y -n napari-tmidas -c conda-forge python=3.11 tqdm
|
|
124
96
|
mamba activate napari-tmidas
|
|
@@ -156,16 +128,15 @@ To use the plugin, start napari in the activated virtual environment with this t
|
|
|
156
128
|
|
|
157
129
|
mamba run -n napari-tmidas napari
|
|
158
130
|
|
|
159
|
-
You can find the installed plugin
|
|
160
|
-
|
|
161
|
-

|
|
162
|
-
|
|
131
|
+
You can then find the installed plugin in the Plugins tab.
|
|
163
132
|
|
|
164
133
|
### Microscopy Image Conversion
|
|
165
134
|
|
|
166
135
|
You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conversion`. Currently, this pipeline supports the conversion of `.nd2, .lif, .ndpi, .czi` and acquifer data. After scanning a folder of your choice for microscopy image data, select a file in the first column of the table and preview and export any image data it contains.
|
|
167
136
|
|
|
168
|
-
|
|
137
|
+
|
|
138
|
+
<img src="https://github.com/user-attachments/assets/e377ca71-2f30-447d-825e-d2feebf7061b" alt="Microscopy Image Conversion Widget" style="width:75%; height:auto;">
|
|
139
|
+
|
|
169
140
|
|
|
170
141
|
### Image Processing
|
|
171
142
|
|
|
@@ -173,7 +144,7 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
173
144
|
|
|
174
145
|

|
|
175
146
|
|
|
176
|
-
2. As a result, a table appears with the found images.
|
|
147
|
+
2. As a result, a table appears with the found images. You can click on them to inspect them in the viewer.
|
|
177
148
|
|
|
178
149
|

|
|
179
150
|
|
|
@@ -182,26 +153,28 @@ You can start this pipeline via `Plugins > T-MIDAS > Batch Microscopy Image Conv
|
|
|
182
153
|

|
|
183
154
|
|
|
184
155
|
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.
|
|
156
|
+
|
|
157
|
+
<img src="https://github.com/user-attachments/assets/cfe84828-c1cc-4196-9a53-5dfb82d5bfce" alt="Image Processing Widget" style="width:75%; height:auto;">
|
|
185
158
|
|
|
186
|
-

|
|
187
159
|
|
|
188
160
|
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.
|
|
189
161
|
|
|
190
162
|
### Batch Label Inspection
|
|
191
163
|
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 > Batch Label Inspection`, which automatically saves your changes to the existing label image once you click the `Save Changes and Continue` button (bottom right).
|
|
192
164
|
|
|
193
|
-
|
|
165
|
+
<img src="https://github.com/user-attachments/assets/0bf8c6ae-4212-449d-8183-e91b23ba740e" alt="Batch Label Inspection Widget" style="width:75%; height:auto;">
|
|
166
|
+
|
|
194
167
|
|
|
195
168
|
### Crop Anything
|
|
196
169
|
This pipeline combines the Segment Anything Model (SAM) for automatic object detection with an interactive interface for selecting and cropping multiple objects from images. To launch the widget, open `Plugins > T-MIDAS > Batch Crop Anything`. Click the image below to see a video demo.
|
|
197
170
|
|
|
198
|
-
|
|
171
|
+
<img src="https://github.com/user-attachments/assets/6d72c2a2-1064-4a27-b398-a9b86fcbc443" alt="Crop Anything Widget" style="width:75%; height:auto;">
|
|
172
|
+
|
|
199
173
|
|
|
200
174
|
### ROI Colocalization
|
|
201
175
|
This pipeline quantifies colocalization between labeled regions of interest (ROIs) across multiple image channels. It determines the extent of overlap between ROIs in a reference channel and those in one or two other channels. The output is a table of colocalization counts. Optionally, the size of reference channel ROIs, as well as the total or median size of colocalizing ROIs in the other channels, can be included. Colocalization is determined using Boolean masking. The number of colocalizing instances is determined by counting unique label IDs within the overlapping regions. Typically, the reference channel contains larger structures, while other channels contain smaller, potentially nested, structures. For example, the reference channel might contain cell bodies, with the second and third channels containing nuclei and sub-nuclear objects, respectively.
|
|
202
176
|
|
|
203
|
-
|
|
204
|
-
|
|
177
|
+
<img src="https://github.com/user-attachments/assets/2f9022a0-7b88-4588-a448-250f07a634d7" alt="ROI Colocalization Widget" style="width:75%; height:auto;">
|
|
205
178
|
|
|
206
179
|
## Contributing
|
|
207
180
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/__init__.py
RENAMED
|
File without changes
|
{napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas/processing_functions/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{napari_tmidas-0.1.8.5 → napari_tmidas-0.1.9}/src/napari_tmidas.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|