small-fish-gui 1.3.2__py3-none-any.whl → 1.3.4__py3-none-any.whl
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.
- small_fish_gui/__init__.py +1 -1
- small_fish_gui/pipeline/_napari_wrapper.py +3 -2
- small_fish_gui/pipeline/detection.py +6 -5
- {small_fish_gui-1.3.2.dist-info → small_fish_gui-1.3.4.dist-info}/METADATA +1 -1
- {small_fish_gui-1.3.2.dist-info → small_fish_gui-1.3.4.dist-info}/RECORD +7 -7
- {small_fish_gui-1.3.2.dist-info → small_fish_gui-1.3.4.dist-info}/WHEEL +0 -0
- {small_fish_gui-1.3.2.dist-info → small_fish_gui-1.3.4.dist-info}/licenses/LICENSE +0 -0
small_fish_gui/__init__.py
CHANGED
|
@@ -199,19 +199,20 @@ def threshold_selection(
|
|
|
199
199
|
"""
|
|
200
200
|
|
|
201
201
|
Viewer = napari.Viewer(title= "Small fish - Threshold selector", ndisplay=2, show=True)
|
|
202
|
+
scale = compute_anisotropy_coef(voxel_size)
|
|
202
203
|
Viewer.add_image(
|
|
203
204
|
data= image,
|
|
204
205
|
contrast_limits= [image.min(), image.max()],
|
|
205
206
|
name= "raw signal",
|
|
206
207
|
colormap= 'green',
|
|
207
|
-
scale=
|
|
208
|
+
scale= scale,
|
|
208
209
|
blending= 'additive'
|
|
209
210
|
)
|
|
210
211
|
Viewer.add_image(
|
|
211
212
|
data= filtered_image,
|
|
212
213
|
contrast_limits= [filtered_image.min(), filtered_image.max()],
|
|
213
214
|
colormap= 'gray',
|
|
214
|
-
scale=
|
|
215
|
+
scale=scale,
|
|
215
216
|
blending='additive'
|
|
216
217
|
)
|
|
217
218
|
|
|
@@ -327,8 +327,8 @@ def _launch_detection(image, image_input_values: dict) :
|
|
|
327
327
|
logfiltered_image=filtered_image,
|
|
328
328
|
local_maxima=local_maxima,
|
|
329
329
|
default=threshold,
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
min_value=filtered_image[local_maxima].min(),
|
|
331
|
+
max_value=filtered_image[local_maxima].max(),
|
|
332
332
|
voxel_size=voxel_size
|
|
333
333
|
)
|
|
334
334
|
|
|
@@ -752,11 +752,12 @@ def _create_threshold_slider(
|
|
|
752
752
|
) :
|
|
753
753
|
|
|
754
754
|
if isinstance(default, float) : default = round(default)
|
|
755
|
-
min_value = max(min_value,
|
|
755
|
+
min_value = max(min_value,15) #Security to avoid user put too low threshold and crashes Napari if out of memory.
|
|
756
756
|
|
|
757
757
|
@magicgui(
|
|
758
|
-
threshold={'widget_type' : 'Slider', 'value' : default, 'min' : min_value, 'max' : max_value},
|
|
759
|
-
auto_call=
|
|
758
|
+
threshold={'widget_type' : 'Slider', 'value' : default, 'min' : min_value, 'max' : max_value, 'tracking' : True,},
|
|
759
|
+
auto_call=False,
|
|
760
|
+
call_button= "Apply"
|
|
760
761
|
)
|
|
761
762
|
def threshold_slider(threshold: int) -> LayerDataTuple:
|
|
762
763
|
spots = detection.spots_thresholding(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: small_fish_gui
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: Small Fish is a python application for the analysis of smFish images. It provides a ready to use graphical interface to combine famous python packages for cell analysis without any need for coding.
|
|
5
5
|
Project-URL: Homepage, https://github.com/2Echoes/small_fish
|
|
6
6
|
Project-URL: Issues, https://github.com/2Echoes/small_fish/issues
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
small_fish_gui/LICENSE,sha256=-iFy8VGBYs5VsHglKpk4D-hxqQ2jMJaqmfq_ulIzDks,1303
|
|
2
2
|
small_fish_gui/README.md,sha256=2c_homYDJXX6VsBiEs5obhBh3HpcTSMdyjLo-35WzE4,4062
|
|
3
3
|
small_fish_gui/Segmentation example.jpg,sha256=opfiSbjmfF6z8kBs08sg_FNR2Om0AcMPU5sSwSLHdoQ,215038
|
|
4
|
-
small_fish_gui/__init__.py,sha256=
|
|
4
|
+
small_fish_gui/__init__.py,sha256=KVhqTYGlC9toeQXTEcEWF5cevZ7sRbIEDHZ8ZM98XOk,1941
|
|
5
5
|
small_fish_gui/__main__.py,sha256=EzSCoJ7jpSdK-QbzUwQLGZeQWjybNeq8VnCBucA8MZw,1372
|
|
6
6
|
small_fish_gui/napari_detection_example.png,sha256=l5EZlrbXemLiGqb5inSVsD6Kko1Opz528-go-fBfrw8,977350
|
|
7
7
|
small_fish_gui/requirements.txt,sha256=9OMfUAnLdHevq6w_fVoDmVmkSMJeFofkOK_86_fu9C0,321
|
|
@@ -23,16 +23,16 @@ small_fish_gui/interface/parameters.py,sha256=lUugD-4W2TZyJF3TH1q70TlktEYhhPtcPC
|
|
|
23
23
|
small_fish_gui/interface/testing.py,sha256=MY5-GcPOUHagcrwR8A7QOjAmjZIDVC8Wz3NibLe3KQw,321
|
|
24
24
|
small_fish_gui/pipeline/_colocalisation.py,sha256=peBw2Qz5m6wSejDkDz240UgvWl8ohNelrnmEgznbEsw,9635
|
|
25
25
|
small_fish_gui/pipeline/_custom_errors.py,sha256=tQ-AUhgzIFpK30AZiQQrtHCHyGVRDdAoIjzL0Fk-1pA,43
|
|
26
|
-
small_fish_gui/pipeline/_napari_wrapper.py,sha256=
|
|
26
|
+
small_fish_gui/pipeline/_napari_wrapper.py,sha256=_FkkY7IBKn1QgNvyea-x6XPjw_AwsLEVzdRKzg65oCE,9290
|
|
27
27
|
small_fish_gui/pipeline/_preprocess.py,sha256=szNoav19Xo3USmiUTjcFgkMn9QK53ZOydbLV5aMFLws,10676
|
|
28
28
|
small_fish_gui/pipeline/_segmentation.py,sha256=M2bQzgzw7Zt_DBeM3qvI0V4Pn0HFLwj0l8yV8M5aToo,12977
|
|
29
29
|
small_fish_gui/pipeline/_signaltonoise.py,sha256=7A9t7xu7zghI6cr201Ldm-LjJ5NOuP56VSeJ8KIzcUo,8497
|
|
30
30
|
small_fish_gui/pipeline/actions.py,sha256=EIGIOlwJ_DADX1NcLWwrTP_AidDX-4f4ggZV0gkIb58,7988
|
|
31
|
-
small_fish_gui/pipeline/detection.py,sha256=
|
|
31
|
+
small_fish_gui/pipeline/detection.py,sha256=MLc8Z1xniuAghn3D0LPmH64jVRobhLj05HW0nI7BDmw,31983
|
|
32
32
|
small_fish_gui/pipeline/main.py,sha256=AAW-zK3b7Ece9cdHn9y6QG8lTa1HXG-8JtnvJ3m0HwA,3149
|
|
33
33
|
small_fish_gui/pipeline/spots.py,sha256=yHvqf1eD25UltELpzcouYXhLkxiXI_mOL1ANSzXK5pw,1907
|
|
34
34
|
small_fish_gui/pipeline/test.py,sha256=w4ZMGDmUDXxVgWTlZ2TKw19W8q5gcE9gLMKe0SWnRrw,2827
|
|
35
|
-
small_fish_gui-1.3.
|
|
36
|
-
small_fish_gui-1.3.
|
|
37
|
-
small_fish_gui-1.3.
|
|
38
|
-
small_fish_gui-1.3.
|
|
35
|
+
small_fish_gui-1.3.4.dist-info/METADATA,sha256=j18MEZEpw6WbHgnNUfWlsBLuTTlh6fUwCZ43ztNH2eE,2567
|
|
36
|
+
small_fish_gui-1.3.4.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
37
|
+
small_fish_gui-1.3.4.dist-info/licenses/LICENSE,sha256=-iFy8VGBYs5VsHglKpk4D-hxqQ2jMJaqmfq_ulIzDks,1303
|
|
38
|
+
small_fish_gui-1.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|