spacr 0.2.0__tar.gz → 0.2.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 (76) hide show
  1. {spacr-0.2.0/spacr.egg-info → spacr-0.2.1}/PKG-INFO +1 -1
  2. {spacr-0.2.0 → spacr-0.2.1}/setup.py +1 -1
  3. {spacr-0.2.0 → spacr-0.2.1}/spacr/gui.py +2 -2
  4. {spacr-0.2.0 → spacr-0.2.1}/spacr/gui_elements.py +7 -5
  5. {spacr-0.2.0 → spacr-0.2.1/spacr.egg-info}/PKG-INFO +1 -1
  6. {spacr-0.2.0 → spacr-0.2.1}/LICENSE +0 -0
  7. {spacr-0.2.0 → spacr-0.2.1}/MANIFEST.in +0 -0
  8. {spacr-0.2.0 → spacr-0.2.1}/README.rst +0 -0
  9. {spacr-0.2.0 → spacr-0.2.1}/setup.cfg +0 -0
  10. {spacr-0.2.0 → spacr-0.2.1}/spacr/__init__.py +0 -0
  11. {spacr-0.2.0 → spacr-0.2.1}/spacr/__main__.py +0 -0
  12. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_annotate.py +0 -0
  13. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_classify.py +0 -0
  14. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_make_masks.py +0 -0
  15. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_mask.py +0 -0
  16. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_measure.py +0 -0
  17. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_sequencing.py +0 -0
  18. {spacr-0.2.0 → spacr-0.2.1}/spacr/app_umap.py +0 -0
  19. {spacr-0.2.0 → spacr-0.2.1}/spacr/chris.py +0 -0
  20. {spacr-0.2.0 → spacr-0.2.1}/spacr/core.py +0 -0
  21. {spacr-0.2.0 → spacr-0.2.1}/spacr/deep_spacr.py +0 -0
  22. {spacr-0.2.0 → spacr-0.2.1}/spacr/graph_learning.py +0 -0
  23. {spacr-0.2.0 → spacr-0.2.1}/spacr/gui_core.py +0 -0
  24. {spacr-0.2.0 → spacr-0.2.1}/spacr/gui_utils.py +0 -0
  25. {spacr-0.2.0 → spacr-0.2.1}/spacr/io.py +0 -0
  26. {spacr-0.2.0 → spacr-0.2.1}/spacr/logger.py +0 -0
  27. {spacr-0.2.0 → spacr-0.2.1}/spacr/measure.py +0 -0
  28. {spacr-0.2.0 → spacr-0.2.1}/spacr/plot.py +0 -0
  29. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/abort.png +0 -0
  30. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/annotate.png +0 -0
  31. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/cellpose_masks.png +0 -0
  32. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/classify.png +0 -0
  33. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/default.png +0 -0
  34. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/download.png +0 -0
  35. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/logo_spacr.png +0 -0
  36. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/make_masks.png +0 -0
  37. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/map_barcodes.png +0 -0
  38. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/mask.png +0 -0
  39. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/measure.png +0 -0
  40. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/regression.png +0 -0
  41. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/run.png +0 -0
  42. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/sequencing.png +0 -0
  43. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/settings.png +0 -0
  44. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/train_cellpose.png +0 -0
  45. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/icons/umap.png +0 -0
  46. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model +0 -0
  47. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/models/cp/toxo_plaque_cyto_e25000_X1120_Y1120.CP_model_settings.csv +0 -0
  48. {spacr-0.2.0 → spacr-0.2.1}/spacr/resources/models/cp/toxo_pv_lumen.CP_model +0 -0
  49. {spacr-0.2.0 → spacr-0.2.1}/spacr/sequencing.py +0 -0
  50. {spacr-0.2.0 → spacr-0.2.1}/spacr/settings.py +0 -0
  51. {spacr-0.2.0 → spacr-0.2.1}/spacr/sim.py +0 -0
  52. {spacr-0.2.0 → spacr-0.2.1}/spacr/sim_app.py +0 -0
  53. {spacr-0.2.0 → spacr-0.2.1}/spacr/timelapse.py +0 -0
  54. {spacr-0.2.0 → spacr-0.2.1}/spacr/utils.py +0 -0
  55. {spacr-0.2.0 → spacr-0.2.1}/spacr/version.py +0 -0
  56. {spacr-0.2.0 → spacr-0.2.1}/spacr.egg-info/SOURCES.txt +0 -0
  57. {spacr-0.2.0 → spacr-0.2.1}/spacr.egg-info/dependency_links.txt +0 -0
  58. {spacr-0.2.0 → spacr-0.2.1}/spacr.egg-info/entry_points.txt +0 -0
  59. {spacr-0.2.0 → spacr-0.2.1}/spacr.egg-info/requires.txt +0 -0
  60. {spacr-0.2.0 → spacr-0.2.1}/spacr.egg-info/top_level.txt +0 -0
  61. {spacr-0.2.0 → spacr-0.2.1}/tests/test_annotate_app.py +0 -0
  62. {spacr-0.2.0 → spacr-0.2.1}/tests/test_core.py +0 -0
  63. {spacr-0.2.0 → spacr-0.2.1}/tests/test_gui_classify_app.py +0 -0
  64. {spacr-0.2.0 → spacr-0.2.1}/tests/test_gui_mask_app.py +0 -0
  65. {spacr-0.2.0 → spacr-0.2.1}/tests/test_gui_measure_app.py +0 -0
  66. {spacr-0.2.0 → spacr-0.2.1}/tests/test_gui_sim_app.py +0 -0
  67. {spacr-0.2.0 → spacr-0.2.1}/tests/test_gui_utils.py +0 -0
  68. {spacr-0.2.0 → spacr-0.2.1}/tests/test_io.py +0 -0
  69. {spacr-0.2.0 → spacr-0.2.1}/tests/test_mask_app.py +0 -0
  70. {spacr-0.2.0 → spacr-0.2.1}/tests/test_measure.py +0 -0
  71. {spacr-0.2.0 → spacr-0.2.1}/tests/test_plot.py +0 -0
  72. {spacr-0.2.0 → spacr-0.2.1}/tests/test_sim.py +0 -0
  73. {spacr-0.2.0 → spacr-0.2.1}/tests/test_timelapse.py +0 -0
  74. {spacr-0.2.0 → spacr-0.2.1}/tests/test_train.py +0 -0
  75. {spacr-0.2.0 → spacr-0.2.1}/tests/test_umap.py +0 -0
  76. {spacr-0.2.0 → spacr-0.2.1}/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.1
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.1",
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
@@ -1606,9 +1606,7 @@ class AnnotateApp:
1606
1606
  print(f'Quit application')
1607
1607
 
1608
1608
  def create_menu_bar(root):
1609
- from .gui_utils import load_app
1610
- from .gui_core import initiate_root
1611
-
1609
+ from .gui import initiate_root
1612
1610
  gui_apps = {
1613
1611
  "Mask": (lambda frame: initiate_root(frame, 'mask'), "Generate cellpose masks for cells, nuclei and pathogen images."),
1614
1612
  "Measure": (lambda frame: initiate_root(frame, 'measure'), "Measure single object intensity and morphological feature. Crop and save single object image"),
@@ -1627,19 +1625,23 @@ def create_menu_bar(root):
1627
1625
  }
1628
1626
 
1629
1627
  def load_app_wrapper(app_name, app_func):
1630
- load_app(root, app_name, app_func)
1628
+ root.load_app(app_name, app_func)
1631
1629
 
1632
1630
  # Create the menu bar
1633
1631
  menu_bar = tk.Menu(root, bg="#008080", fg="white")
1632
+
1634
1633
  # Create a "SpaCr Applications" menu
1635
1634
  app_menu = tk.Menu(menu_bar, tearoff=0, bg="#008080", fg="white")
1636
1635
  menu_bar.add_cascade(label="SpaCr Applications", menu=app_menu)
1636
+
1637
1637
  # Add options to the "SpaCr Applications" menu
1638
1638
  for app_name, app_data in gui_apps.items():
1639
1639
  app_func, app_desc = app_data
1640
1640
  app_menu.add_command(label=app_name, command=lambda app_name=app_name, app_func=app_func: load_app_wrapper(app_name, app_func))
1641
+
1641
1642
  # Add a separator and an exit option
1642
1643
  app_menu.add_separator()
1643
1644
  app_menu.add_command(label="Exit", command=root.quit)
1645
+
1644
1646
  # Configure the menu for the root window
1645
- root.config(menu=menu_bar)
1647
+ 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.1
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