AutoMorphoTrack 2.0.1__tar.gz → 2.0.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 (36) hide show
  1. {automorphotrack-2.0.1/automorphotrack.egg-info → automorphotrack-2.0.2}/PKG-INFO +1 -1
  2. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/__init__.py +1 -1
  3. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/colocalization.py +13 -6
  4. {automorphotrack-2.0.1 → automorphotrack-2.0.2/automorphotrack.egg-info}/PKG-INFO +1 -1
  5. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/setup.py +1 -1
  6. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/LICENSE.md +0 -0
  7. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/MANIFEST.in +0 -0
  8. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/README.md +0 -0
  9. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/.___init__.py +0 -0
  10. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._colocalization.py +0 -0
  11. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._detection.py +0 -0
  12. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._lyso_count.py +0 -0
  13. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._morphology.py +0 -0
  14. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._motility.py +0 -0
  15. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._shape_features.py +0 -0
  16. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._shape_profiling.py +0 -0
  17. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._summary.py +0 -0
  18. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._tracking.py +0 -0
  19. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._tracking_overlay.py +0 -0
  20. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/._utils.py +0 -0
  21. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/detection.py +0 -0
  22. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/lyso_count.py +0 -0
  23. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/morphology.py +0 -0
  24. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/motility.py +0 -0
  25. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/shape_features.py +0 -0
  26. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/shape_profiling.py +0 -0
  27. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/summary.py +0 -0
  28. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/tracking.py +0 -0
  29. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/tracking_overlay.py +0 -0
  30. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack/utils.py +0 -0
  31. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack.egg-info/SOURCES.txt +0 -0
  32. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack.egg-info/dependency_links.txt +0 -0
  33. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack.egg-info/requires.txt +0 -0
  34. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/automorphotrack.egg-info/top_level.txt +0 -0
  35. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/pyproject.toml +0 -0
  36. {automorphotrack-2.0.1 → automorphotrack-2.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: automorphotrack
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
5
  Home-page: https://github.com/abayatibrain/AMTpackage
6
6
  Author: Armin Bayati, Ph.D.
@@ -33,7 +33,7 @@
33
33
  # )
34
34
  # ============================================================
35
35
 
36
- __version__ = "2.0.1"
36
+ __version__ = "2.0.2"
37
37
  __author__ = "Armin Bayati"
38
38
 
39
39
  # --- Utility Imports ---
@@ -77,15 +77,22 @@ def analyze_colocalization(
77
77
  mito_sum.append(mito.sum())
78
78
  lyso_sum.append(lyso.sum())
79
79
 
80
- # Visualization with bright-blue overlay
81
- mito_norm = (mito / mito.max() * 255).astype(np.uint8)
82
- lyso_norm = (lyso / lyso.max() * 255).astype(np.uint8)
80
+ # Visualization with CB-safe blue (mito) / orange (lyso) overlay
81
+ mito_norm = (mito / (mito.max() + 1e-12) * 255).astype(np.uint8)
82
+ lyso_norm = (lyso / (lyso.max() + 1e-12) * 255).astype(np.uint8)
83
83
  rgb = np.zeros((*mito.shape, 3), np.uint8)
84
- rgb[..., 0], rgb[..., 1] = mito_norm, lyso_norm
84
+ # Mito → blue (1, 115, 178)
85
+ rgb[..., 0] = (mito_norm * (1 / 255)).astype(np.uint8)
86
+ rgb[..., 1] = (mito_norm * (115 / 255)).astype(np.uint8)
87
+ rgb[..., 2] = (mito_norm * (178 / 255)).astype(np.uint8)
88
+ # Lyso → orange (222, 143, 5) added on top
89
+ rgb[..., 0] = np.clip(rgb[..., 0].astype(int) + (lyso_norm * (222 / 255)).astype(int), 0, 255).astype(np.uint8)
90
+ rgb[..., 1] = np.clip(rgb[..., 1].astype(int) + (lyso_norm * (143 / 255)).astype(int), 0, 255).astype(np.uint8)
91
+ rgb[..., 2] = np.clip(rgb[..., 2].astype(int) + (lyso_norm * (5 / 255)).astype(int), 0, 255).astype(np.uint8)
85
92
 
86
93
  mask = overlap_mask.astype(bool)
87
- bright_blue_overlay = np.full_like(rgb[mask], (0, 150, 255), dtype=np.uint8)
88
- rgb[mask] = cv2.addWeighted(rgb[mask], 1 - overlay_alpha, bright_blue_overlay, overlay_alpha, 0)
94
+ white_overlay = np.full_like(rgb[mask], (255, 255, 255), dtype=np.uint8)
95
+ rgb[mask] = cv2.addWeighted(rgb[mask], 1 - overlay_alpha, white_overlay, overlay_alpha, 0)
89
96
 
90
97
  frames_out.append(upscale_frame(rgb))
91
98
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: automorphotrack
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
5
  Home-page: https://github.com/abayatibrain/AMTpackage
6
6
  Author: Armin Bayati, Ph.D.
@@ -10,7 +10,7 @@ if os.path.exists(readme_path):
10
10
 
11
11
  setup(
12
12
  name="automorphotrack",
13
- version="2.0.1",
13
+ version="2.0.2",
14
14
  author="Armin Bayati, Ph.D.",
15
15
  author_email="a.bayati.brain@gmail.com",
16
16
  description="Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.",