spacr 0.2.0__tar.gz → 0.2.2__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 (76) hide show
  1. {spacr-0.2.0/spacr.egg-info → spacr-0.2.2}/PKG-INFO +1 -1
  2. {spacr-0.2.0 → spacr-0.2.2}/setup.py +1 -1
  3. {spacr-0.2.0 → spacr-0.2.2}/spacr/gui.py +2 -2
  4. {spacr-0.2.0 → spacr-0.2.2}/spacr/gui_elements.py +8 -7
  5. {spacr-0.2.0 → spacr-0.2.2/spacr.egg-info}/PKG-INFO +1 -1
  6. {spacr-0.2.0 → spacr-0.2.2}/LICENSE +0 -0
  7. {spacr-0.2.0 → spacr-0.2.2}/MANIFEST.in +0 -0
  8. {spacr-0.2.0 → spacr-0.2.2}/README.rst +0 -0
  9. {spacr-0.2.0 → spacr-0.2.2}/setup.cfg +0 -0
  10. {spacr-0.2.0 → spacr-0.2.2}/spacr/__init__.py +0 -0
  11. {spacr-0.2.0 → spacr-0.2.2}/spacr/__main__.py +0 -0
  12. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_annotate.py +0 -0
  13. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_classify.py +0 -0
  14. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_make_masks.py +0 -0
  15. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_mask.py +0 -0
  16. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_measure.py +0 -0
  17. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_sequencing.py +0 -0
  18. {spacr-0.2.0 → spacr-0.2.2}/spacr/app_umap.py +0 -0
  19. {spacr-0.2.0 → spacr-0.2.2}/spacr/chris.py +0 -0
  20. {spacr-0.2.0 → spacr-0.2.2}/spacr/core.py +0 -0
  21. {spacr-0.2.0 → spacr-0.2.2}/spacr/deep_spacr.py +0 -0
  22. {spacr-0.2.0 → spacr-0.2.2}/spacr/graph_learning.py +0 -0
  23. {spacr-0.2.0 → spacr-0.2.2}/spacr/gui_core.py +0 -0
  24. {spacr-0.2.0 → spacr-0.2.2}/spacr/gui_utils.py +0 -0
  25. {spacr-0.2.0 → spacr-0.2.2}/spacr/io.py +0 -0
  26. {spacr-0.2.0 → spacr-0.2.2}/spacr/logger.py +0 -0
  27. {spacr-0.2.0 → spacr-0.2.2}/spacr/measure.py +0 -0
  28. {spacr-0.2.0 → spacr-0.2.2}/spacr/plot.py +0 -0
  29. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/abort.png +0 -0
  30. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/annotate.png +0 -0
  31. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/cellpose_masks.png +0 -0
  32. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/classify.png +0 -0
  33. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/default.png +0 -0
  34. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/download.png +0 -0
  35. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/logo_spacr.png +0 -0
  36. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/make_masks.png +0 -0
  37. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/map_barcodes.png +0 -0
  38. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/mask.png +0 -0
  39. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/measure.png +0 -0
  40. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/regression.png +0 -0
  41. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/run.png +0 -0
  42. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/sequencing.png +0 -0
  43. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/settings.png +0 -0
  44. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/train_cellpose.png +0 -0
  45. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/icons/umap.png +0 -0
  46. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model +0 -0
  47. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model_settings.csv +0 -0
  48. {spacr-0.2.0 → spacr-0.2.2}/spacr/resources/models/cp/toxo_pv_lumen.CP_model +0 -0
  49. {spacr-0.2.0 → spacr-0.2.2}/spacr/sequencing.py +0 -0
  50. {spacr-0.2.0 → spacr-0.2.2}/spacr/settings.py +0 -0
  51. {spacr-0.2.0 → spacr-0.2.2}/spacr/sim.py +0 -0
  52. {spacr-0.2.0 → spacr-0.2.2}/spacr/sim_app.py +0 -0
  53. {spacr-0.2.0 → spacr-0.2.2}/spacr/timelapse.py +0 -0
  54. {spacr-0.2.0 → spacr-0.2.2}/spacr/utils.py +0 -0
  55. {spacr-0.2.0 → spacr-0.2.2}/spacr/version.py +0 -0
  56. {spacr-0.2.0 → spacr-0.2.2}/spacr.egg-info/SOURCES.txt +0 -0
  57. {spacr-0.2.0 → spacr-0.2.2}/spacr.egg-info/dependency_links.txt +0 -0
  58. {spacr-0.2.0 → spacr-0.2.2}/spacr.egg-info/entry_points.txt +0 -0
  59. {spacr-0.2.0 → spacr-0.2.2}/spacr.egg-info/requires.txt +0 -0
  60. {spacr-0.2.0 → spacr-0.2.2}/spacr.egg-info/top_level.txt +0 -0
  61. {spacr-0.2.0 → spacr-0.2.2}/tests/test_annotate_app.py +0 -0
  62. {spacr-0.2.0 → spacr-0.2.2}/tests/test_core.py +0 -0
  63. {spacr-0.2.0 → spacr-0.2.2}/tests/test_gui_classify_app.py +0 -0
  64. {spacr-0.2.0 → spacr-0.2.2}/tests/test_gui_mask_app.py +0 -0
  65. {spacr-0.2.0 → spacr-0.2.2}/tests/test_gui_measure_app.py +0 -0
  66. {spacr-0.2.0 → spacr-0.2.2}/tests/test_gui_sim_app.py +0 -0
  67. {spacr-0.2.0 → spacr-0.2.2}/tests/test_gui_utils.py +0 -0
  68. {spacr-0.2.0 → spacr-0.2.2}/tests/test_io.py +0 -0
  69. {spacr-0.2.0 → spacr-0.2.2}/tests/test_mask_app.py +0 -0
  70. {spacr-0.2.0 → spacr-0.2.2}/tests/test_measure.py +0 -0
  71. {spacr-0.2.0 → spacr-0.2.2}/tests/test_plot.py +0 -0
  72. {spacr-0.2.0 → spacr-0.2.2}/tests/test_sim.py +0 -0
  73. {spacr-0.2.0 → spacr-0.2.2}/tests/test_timelapse.py +0 -0
  74. {spacr-0.2.0 → spacr-0.2.2}/tests/test_train.py +0 -0
  75. {spacr-0.2.0 → spacr-0.2.2}/tests/test_umap.py +0 -0
  76. {spacr-0.2.0 → spacr-0.2.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spacr
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Spatial phenotype analysis of crisp screens (SpaCr)
5
5
  Home-page: https://github.com/EinarOlafsson/spacr
6
6
  Author: Einar Birnir Olafsson
@@ -50,7 +50,7 @@ dependencies = [
50
50
 
51
51
  setup(
52
52
  name="spacr",
53
- version="0.2.0",
53
+ version="0.2.2",
54
54
  author="Einar Birnir Olafsson",
55
55
  author_email="olafsson@med.umich.com",
56
56
  description="Spatial phenotype analysis of crisp screens (SpaCr)",
@@ -85,7 +85,7 @@ class MainApp(tk.Tk):
85
85
  set_dark_style(ttk.Style(), containers=[additional_buttons_frame])
86
86
 
87
87
  # Create a frame for the description below the icon grids
88
- description_frame = tk.Frame(self.content_frame, height=70) # Increased height to 70
88
+ description_frame = tk.Frame(self.content_frame, height=70)
89
89
  description_frame.pack(fill=tk.X, pady=10)
90
90
  description_frame.pack_propagate(False) # Prevent the frame from resizing based on its content
91
91
  set_dark_style(ttk.Style(), containers=[description_frame])
@@ -110,7 +110,7 @@ class MainApp(tk.Tk):
110
110
  for i, (app_name, app_data) in enumerate(self.additional_gui_apps.items()):
111
111
  app_func, app_desc = app_data
112
112
  button = spacrButton(additional_buttons_frame, text=app_name, command=lambda app_name=app_name, app_func=app_func: self.load_app(app_name, app_func), icon_name=app_name.lower(), size=75, show_text=False)
113
- button.grid(row=0, column=i, padx=5, pady=5) # Ensure all icons are in a single row
113
+ button.grid(row=0, column=i, padx=5, pady=5)
114
114
  self.additional_buttons[button] = app_desc
115
115
 
116
116
  # Update description initially
@@ -308,7 +308,7 @@ class spacrButton(tk.Frame):
308
308
  parent = self.master
309
309
  while parent:
310
310
  if hasattr(parent, 'show_description'):
311
- parent.show_description(parent.main_buttons.get(self, "No description available."))
311
+ parent.show_description(parent.main_buttons.get(self, parent.additional_buttons.get(self, "No description available.")))
312
312
  return
313
313
  parent = parent.master
314
314
 
@@ -343,7 +343,6 @@ class spacrButton(tk.Frame):
343
343
  self.canvas.itemconfig(self.button_icon, image=self.icon_photo)
344
344
  self.canvas.image = self.icon_photo # Keep a reference to avoid garbage collection
345
345
 
346
-
347
346
  class spacrSwitch(ttk.Frame):
348
347
  def __init__(self, parent, text="", variable=None, command=None, *args, **kwargs):
349
348
  super().__init__(parent, *args, **kwargs)
@@ -1606,9 +1605,7 @@ class AnnotateApp:
1606
1605
  print(f'Quit application')
1607
1606
 
1608
1607
  def create_menu_bar(root):
1609
- from .gui_utils import load_app
1610
- from .gui_core import initiate_root
1611
-
1608
+ from .gui import initiate_root
1612
1609
  gui_apps = {
1613
1610
  "Mask": (lambda frame: initiate_root(frame, 'mask'), "Generate cellpose masks for cells, nuclei and pathogen images."),
1614
1611
  "Measure": (lambda frame: initiate_root(frame, 'measure'), "Measure single object intensity and morphological feature. Crop and save single object image"),
@@ -1627,19 +1624,23 @@ def create_menu_bar(root):
1627
1624
  }
1628
1625
 
1629
1626
  def load_app_wrapper(app_name, app_func):
1630
- load_app(root, app_name, app_func)
1627
+ root.load_app(app_name, app_func)
1631
1628
 
1632
1629
  # Create the menu bar
1633
1630
  menu_bar = tk.Menu(root, bg="#008080", fg="white")
1631
+
1634
1632
  # Create a "SpaCr Applications" menu
1635
1633
  app_menu = tk.Menu(menu_bar, tearoff=0, bg="#008080", fg="white")
1636
1634
  menu_bar.add_cascade(label="SpaCr Applications", menu=app_menu)
1635
+
1637
1636
  # Add options to the "SpaCr Applications" menu
1638
1637
  for app_name, app_data in gui_apps.items():
1639
1638
  app_func, app_desc = app_data
1640
1639
  app_menu.add_command(label=app_name, command=lambda app_name=app_name, app_func=app_func: load_app_wrapper(app_name, app_func))
1640
+
1641
1641
  # Add a separator and an exit option
1642
1642
  app_menu.add_separator()
1643
1643
  app_menu.add_command(label="Exit", command=root.quit)
1644
+
1644
1645
  # Configure the menu for the root window
1645
- root.config(menu=menu_bar)
1646
+ root.config(menu=menu_bar)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spacr
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Spatial phenotype analysis of crisp screens (SpaCr)
5
5
  Home-page: https://github.com/EinarOlafsson/spacr
6
6
  Author: Einar Birnir Olafsson
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
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