small-fish-gui 1.8.0__tar.gz → 1.8.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 (50) hide show
  1. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/PKG-INFO +1 -1
  2. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/pyproject.toml +1 -1
  3. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/__init__.py +1 -1
  4. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/pipeline.py +4 -1
  5. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/prompt.py +10 -10
  6. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/layout.py +7 -11
  7. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/hints.py +1 -1
  8. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/LICENSE +0 -0
  9. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/README.md +0 -0
  10. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/.github/workflows/python-publish.yml +0 -0
  11. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/.readthedocs.yaml +0 -0
  12. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/LICENSE +0 -0
  13. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/README.md +0 -0
  14. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/Segmentation example.jpg +0 -0
  15. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/__main__.py +0 -0
  16. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/__init__.py +0 -0
  17. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/input.py +0 -0
  18. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/integrity.py +0 -0
  19. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/test.py +0 -0
  20. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/update.py +0 -0
  21. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/utils.py +0 -0
  22. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/batch/values.txt +0 -0
  23. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/__init__.py +0 -0
  24. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/_napari_widgets.py +0 -0
  25. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/animation.py +0 -0
  26. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/help_module.py +0 -0
  27. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/napari.py +0 -0
  28. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/prompts.py +0 -0
  29. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/screenshot/general_help_screenshot.png +0 -0
  30. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/screenshot/mapping_help_screenshot.png +0 -0
  31. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/gui/screenshot/segmentation_help_screenshot.png +0 -0
  32. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/interface/__init__.py +0 -0
  33. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/interface/image.py +0 -0
  34. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/interface/inoutput.py +0 -0
  35. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/interface/testing.py +0 -0
  36. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/napari_detection_example.png +0 -0
  37. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/__init__.py +0 -0
  38. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/_colocalisation.py +0 -0
  39. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/_custom_errors.py +0 -0
  40. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/_preprocess.py +0 -0
  41. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/_signaltonoise.py +0 -0
  42. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/actions.py +0 -0
  43. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/detection.py +0 -0
  44. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/main.py +0 -0
  45. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/segmentation.py +0 -0
  46. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/spots.py +0 -0
  47. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/test.py +0 -0
  48. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/pipeline/utils.py +0 -0
  49. {small_fish_gui-1.8.0 → small_fish_gui-1.8.1}/src/small_fish_gui/requirements.txt +0 -0
  50. {small_fish_gui-1.8.0 → small_fish_gui-1.8.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.8.0
3
+ Version: 1.8.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.8.0"
7
+ version = "1.8.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.8.0"
41
+ __version__ = "1.8.1"
@@ -137,7 +137,10 @@ def batch_pipeline(
137
137
  raise(error)
138
138
 
139
139
  if parameters['save detection'] :
140
- if parameters['do_cluster_computation'] : spots_list = [spots, clusters[:,:parameters['dim']]]
140
+ if parameters['do_cluster_computation'] :
141
+ if len(clusters) > 0 :
142
+ spots_list = [spots, clusters[:,:parameters['dim']]]
143
+ else : spots_list = [spots]
141
144
  else : spots_list = [spots]
142
145
  output_spot_tiffvisual(
143
146
  image,
@@ -45,18 +45,18 @@ def batch_promp(
45
45
  #Input tab
46
46
  input_layout = _input_parameters_layout(
47
47
  ask_for_segmentation=True,
48
- is_3D_stack_preset= preset.setdefault("3D stack" ,False),
48
+ is_3D_stack_preset= preset.setdefault("is_3D_stack" ,False),
49
49
  time_stack_preset=False,
50
- multichannel_preset=preset.setdefault("multichannel" ,False),
51
- do_dense_regions_deconvolution_preset=preset.setdefault("Dense regions deconvolution" ,False),
50
+ multichannel_preset=preset.setdefault("is_multichannel" ,False),
51
+ do_dense_regions_deconvolution_preset=preset.setdefault("do_dense_regions_deconvolution" ,False),
52
52
  do_clustering_preset= preset.setdefault("do_cluster_computation", False),
53
53
  do_Napari_correction=False,
54
- do_segmentation_preset= preset.setdefault("Segmentation", False),
54
+ do_segmentation_preset= preset.setdefault("segmentation_done", False),
55
55
  )
56
56
  input_layout += [[sg.Button('Ok')]]
57
57
  input_tab = sg.Tab("Input", input_layout)
58
58
 
59
- napari_correction_elmt = get_elmt_from_key(input_tab, key='Napari correction')
59
+ napari_correction_elmt = get_elmt_from_key(input_tab, key='show_napari_corrector')
60
60
 
61
61
  #Maptab
62
62
  map_layout = _ask_channel_map_layout(
@@ -86,7 +86,7 @@ def batch_promp(
86
86
 
87
87
  apply_segmentation_button = sg.Button('apply', key='apply-segmentation')
88
88
  segmentation_layout += [[apply_segmentation_button]]
89
- seg_keys_to_hide = ['show segmentation', 'saving path', 'filename']
89
+ seg_keys_to_hide = ['show segmentation', 'saving path', 'filename', 'other_nucleus_image']
90
90
  segmentation_tab = sg.Tab("Segmentation", segmentation_layout, visible=False)
91
91
 
92
92
  #Detection tab
@@ -228,10 +228,10 @@ def batch_promp(
228
228
  print("Welcome to small fish batch analysis. Please start by loading some files and setting parameters.")
229
229
 
230
230
  batch_folder = values.get('Batch_folder')
231
- is_multichanel = values.get('multichannel')
232
- is_3D = values.get('3D stack')
233
- do_segmentation = values.get('Segmentation')
234
- do_dense_regions_deconvolution = values.get('Dense regions deconvolution')
231
+ is_multichanel = values.get('is_multichannel')
232
+ is_3D = values.get('is_3D_stack')
233
+ do_segmentation = values.get('do_segmentation')
234
+ do_dense_regions_deconvolution = values.get('do_dense_regions_deconvolution')
235
235
  do_clustering = values.get('do_cluster_computation')
236
236
 
237
237
  if type(batch_folder) != type(None) and event == 'Load':
@@ -227,18 +227,14 @@ def _input_parameters_layout(
227
227
 
228
228
  ) :
229
229
  layout_image_path = path_layout(['image path'], header= "Image")
230
- layout_image_path += bool_layout(['is_3D_stack', 'is_multichannel'], preset= [is_3D_stack_preset, time_stack_preset, multichannel_preset])
230
+ layout_image_path += bool_layout(['3D stack', 'Multichannel stack'], keys=['is_3D_stack', 'is_multichannel'], preset= [is_3D_stack_preset, multichannel_preset])
231
231
 
232
- if ask_for_segmentation :
233
- layout_image_path += bool_layout(
234
- ['do_dense_regions_deconvolution', 'do_cluster_computation', 'Segmentation', 'show_napari_corrector'],
235
- preset= [do_dense_regions_deconvolution_preset, do_clustering_preset, do_segmentation_preset, do_Napari_correction],
236
- header= "Pipeline settings")
237
- else :
238
- layout_image_path += bool_layout(
239
- ['do_dense_regions_deconvolution', 'do_cluster_computation', 'show_napari_corrector'],
240
- preset= [do_dense_regions_deconvolution_preset, do_clustering_preset, do_Napari_correction],
241
- header= "Pipeline settings")
232
+ layout_image_path += bool_layout(
233
+ ['Dense regions deconvolution', 'Compute clusters', 'Cell segmentation', 'Open Napari corrector'],
234
+ keys= ['do_dense_regions_deconvolution', 'do_cluster_computation', 'do_segmentation', 'show_napari_corrector'],
235
+ preset= [do_dense_regions_deconvolution_preset, do_clustering_preset, do_segmentation_preset, do_Napari_correction],
236
+ header= "Pipeline settings")
237
+
242
238
 
243
239
  return layout_image_path
244
240
 
@@ -8,7 +8,6 @@ class pipeline_parameters(TypedDict) :
8
8
  """
9
9
  At run time is a regular dict instance, this class is used for keys hinting
10
10
  """
11
- is_3D_stack : bool
12
11
  alpha : float
13
12
  beta : float
14
13
  channel_to_compute : int
@@ -31,6 +30,7 @@ class pipeline_parameters(TypedDict) :
31
30
  minimum_distance_x : float
32
31
  minimum_distance_y : float
33
32
  minimum_distance_z : float
33
+ is_3D_stack : bool
34
34
  is_multichannel : bool
35
35
  show_napari_corrector : bool
36
36
  nucleus_channel_signal : int
File without changes
File without changes