small-fish-gui 1.3.0__tar.gz → 1.3.1__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 (38) hide show
  1. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/PKG-INFO +1 -1
  2. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/pyproject.toml +1 -1
  3. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/__init__.py +1 -1
  4. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_napari_wrapper.py +4 -2
  5. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/detection.py +3 -1
  6. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/LICENSE +0 -0
  7. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/README.md +0 -0
  8. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/.github/workflows/python-publish.yml +0 -0
  9. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/LICENSE +0 -0
  10. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/README.md +0 -0
  11. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/Segmentation example.jpg +0 -0
  12. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/__main__.py +0 -0
  13. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/__init__.py +0 -0
  14. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/animation.py +0 -0
  15. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/general_help_screenshot.png +0 -0
  16. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/help_module.py +0 -0
  17. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/layout.py +0 -0
  18. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/mapping_help_screenshot.png +0 -0
  19. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/prompts.py +0 -0
  20. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/segmentation_help_screenshot.png +0 -0
  21. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/gui/test.py +0 -0
  22. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/interface/__init__.py +0 -0
  23. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/interface/image.py +0 -0
  24. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/interface/output.py +0 -0
  25. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/interface/parameters.py +0 -0
  26. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/interface/testing.py +0 -0
  27. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/napari_detection_example.png +0 -0
  28. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_colocalisation.py +0 -0
  29. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_custom_errors.py +0 -0
  30. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_preprocess.py +0 -0
  31. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_segmentation.py +0 -0
  32. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/_signaltonoise.py +0 -0
  33. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/actions.py +0 -0
  34. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/main.py +0 -0
  35. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/spots.py +0 -0
  36. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/pipeline/test.py +0 -0
  37. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/requirements.txt +0 -0
  38. {small_fish_gui-1.3.0 → small_fish_gui-1.3.1}/src/small_fish_gui/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: small_fish_gui
3
- Version: 1.3.0
3
+ Version: 1.3.1
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "small_fish_gui"
7
- version = "1.3.0"
7
+ version = "1.3.1"
8
8
  authors = [
9
9
  { name="Slimani Floric", email="floric.slimani@live.com" },
10
10
  ]
@@ -38,4 +38,4 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
38
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
39
 
40
40
  """
41
- __version__ = "1.3.0"
41
+ __version__ = "1.3.1"
@@ -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,6 +198,7 @@ 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
 
201
+ print(voxel_size)
200
202
 
201
203
  Viewer = napari.Viewer(title= "Small fish - Threshold selector", ndisplay=2, show=True)
202
204
  Viewer.add_image(
@@ -763,8 +763,10 @@ def _create_threshold_slider(
763
763
  mask_local_max=local_maxima,
764
764
  threshold=threshold
765
765
  )[0]
766
+
767
+ print(voxel_size)
766
768
  layer_args = {
767
- 'size': 7,
769
+ 'size': 5,
768
770
  'scale' : voxel_size,
769
771
  'face_color' : 'transparent',
770
772
  'edge_color' : 'blue',
File without changes
File without changes