small-fish-gui 1.3.0__py3-none-any.whl → 1.3.2__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 -3
- small_fish_gui/pipeline/detection.py +6 -4
- {small_fish_gui-1.3.0.dist-info → small_fish_gui-1.3.2.dist-info}/METADATA +1 -1
- {small_fish_gui-1.3.0.dist-info → small_fish_gui-1.3.2.dist-info}/RECORD +7 -7
- {small_fish_gui-1.3.0.dist-info → small_fish_gui-1.3.2.dist-info}/WHEEL +0 -0
- {small_fish_gui-1.3.0.dist-info → small_fish_gui-1.3.2.dist-info}/licenses/LICENSE +0 -0
small_fish_gui/__init__.py
CHANGED
|
@@ -173,14 +173,15 @@ def show_segmentation(
|
|
|
173
173
|
|
|
174
174
|
#Adding labels
|
|
175
175
|
if type(cyto_image) != type(None) : Viewer.add_image(cyto_image, name= "cytoplasm signal", blending= 'additive', colormap='red', contrast_limits=[cyto_image.min(), cyto_image.max()])
|
|
176
|
-
if type(cyto_label) != type(None) : Viewer.add_labels(cyto_label, opacity= 0.4, blending= 'additive')
|
|
176
|
+
if type(cyto_label) != type(None) and not np.array_equal(cyto_label, nuc_label): Viewer.add_labels(cyto_label, opacity= 0.4, blending= 'additive')
|
|
177
177
|
|
|
178
178
|
#Launch Napari
|
|
179
179
|
Viewer.show(block=False)
|
|
180
180
|
napari.run()
|
|
181
181
|
|
|
182
182
|
new_nuc_label = Viewer.layers[1].data
|
|
183
|
-
if type(cyto_label) != type(None) : new_cyto_label = Viewer.layers[3].data
|
|
183
|
+
if type(cyto_label) != type(None) and not np.array_equal(cyto_label, nuc_label) : new_cyto_label = Viewer.layers[3].data
|
|
184
|
+
else : new_cyto_label = new_nuc_label
|
|
184
185
|
|
|
185
186
|
return new_nuc_label, new_cyto_label
|
|
186
187
|
|
|
@@ -197,7 +198,6 @@ def threshold_selection(
|
|
|
197
198
|
To view code for spot selection please have a look at magicgui instance created with `detection._create_threshold_slider` which is then passed to this napari wrapper as 'threshold_slider' argument.
|
|
198
199
|
"""
|
|
199
200
|
|
|
200
|
-
|
|
201
201
|
Viewer = napari.Viewer(title= "Small fish - Threshold selector", ndisplay=2, show=True)
|
|
202
202
|
Viewer.add_image(
|
|
203
203
|
data= image,
|
|
@@ -746,15 +746,16 @@ def _create_threshold_slider(
|
|
|
746
746
|
logfiltered_image : np.ndarray,
|
|
747
747
|
local_maxima : np.ndarray,
|
|
748
748
|
default : int,
|
|
749
|
-
|
|
750
|
-
|
|
749
|
+
min_value : int,
|
|
750
|
+
max_value : int,
|
|
751
751
|
voxel_size
|
|
752
752
|
) :
|
|
753
753
|
|
|
754
754
|
if isinstance(default, float) : default = round(default)
|
|
755
|
+
min_value = max(min_value,25) #Security to avoid user put too low threshold and crashes Napari if out of memory.
|
|
755
756
|
|
|
756
757
|
@magicgui(
|
|
757
|
-
threshold={'widget_type' : 'Slider', 'value' : default, 'min' :
|
|
758
|
+
threshold={'widget_type' : 'Slider', 'value' : default, 'min' : min_value, 'max' : max_value},
|
|
758
759
|
auto_call=True
|
|
759
760
|
)
|
|
760
761
|
def threshold_slider(threshold: int) -> LayerDataTuple:
|
|
@@ -763,8 +764,9 @@ def _create_threshold_slider(
|
|
|
763
764
|
mask_local_max=local_maxima,
|
|
764
765
|
threshold=threshold
|
|
765
766
|
)[0]
|
|
767
|
+
|
|
766
768
|
layer_args = {
|
|
767
|
-
'size':
|
|
769
|
+
'size': 5,
|
|
768
770
|
'scale' : voxel_size,
|
|
769
771
|
'face_color' : 'transparent',
|
|
770
772
|
'edge_color' : 'blue',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: small_fish_gui
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
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=vkwvswdFQp7_sDx7QOu5MxeKGSCJMZHIKohFa9CmaTI,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=z5WEOlOKP-vhdawjPcfUAv3scGCilGu0UCHuSf6GCQY,9252
|
|
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=OmdIm31rtkBADwnGOTjB2EHWMLAfKer7bOXbhYPqUV8,31920
|
|
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.2.dist-info/METADATA,sha256=BDjB5-pGaoIFhh9ujjgQCAZgKn24l6rfMEYQRuocHQk,2567
|
|
36
|
+
small_fish_gui-1.3.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
37
|
+
small_fish_gui-1.3.2.dist-info/licenses/LICENSE,sha256=-iFy8VGBYs5VsHglKpk4D-hxqQ2jMJaqmfq_ulIzDks,1303
|
|
38
|
+
small_fish_gui-1.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|