AutoMorphoTrack 2.0.0__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 (38) hide show
  1. automorphotrack-2.0.2/LICENSE.md +21 -0
  2. automorphotrack-2.0.2/PKG-INFO +133 -0
  3. automorphotrack-2.0.2/README.md +93 -0
  4. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/__init__.py +1 -1
  5. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/colocalization.py +13 -6
  6. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/detection.py +1 -1
  7. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/lyso_count.py +1 -1
  8. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/morphology.py +1 -1
  9. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/shape_features.py +1 -1
  10. automorphotrack-2.0.2/automorphotrack.egg-info/PKG-INFO +133 -0
  11. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack.egg-info/SOURCES.txt +2 -0
  12. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/setup.py +1 -1
  13. automorphotrack-2.0.0/PKG-INFO +0 -36
  14. automorphotrack-2.0.0/automorphotrack.egg-info/PKG-INFO +0 -36
  15. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/MANIFEST.in +0 -0
  16. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/.___init__.py +0 -0
  17. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._colocalization.py +0 -0
  18. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._detection.py +0 -0
  19. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._lyso_count.py +0 -0
  20. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._morphology.py +0 -0
  21. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._motility.py +0 -0
  22. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._shape_features.py +0 -0
  23. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._shape_profiling.py +0 -0
  24. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._summary.py +0 -0
  25. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._tracking.py +0 -0
  26. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._tracking_overlay.py +0 -0
  27. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/._utils.py +0 -0
  28. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/motility.py +0 -0
  29. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/shape_profiling.py +0 -0
  30. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/summary.py +0 -0
  31. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/tracking.py +0 -0
  32. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/tracking_overlay.py +0 -0
  33. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack/utils.py +0 -0
  34. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack.egg-info/dependency_links.txt +0 -0
  35. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack.egg-info/requires.txt +0 -0
  36. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/automorphotrack.egg-info/top_level.txt +0 -0
  37. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/pyproject.toml +0 -0
  38. {automorphotrack-2.0.0 → automorphotrack-2.0.2}/setup.cfg +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Armin Bayati
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: automorphotrack
3
+ Version: 2.0.2
4
+ Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
+ Home-page: https://github.com/abayatibrain/AMTpackage
6
+ Author: Armin Bayati, Ph.D.
7
+ Author-email: a.bayati.brain@gmail.com
8
+ License: MIT
9
+ Project-URL: Documentation, https://github.com/abayatibrain/AMTpackage
10
+ Project-URL: Source, https://github.com/abayatibrain/AMTpackage
11
+ Project-URL: Tracker, https://github.com/abayatibrain/AMTpackage/issues
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE.md
20
+ Requires-Dist: numpy>=1.23.0
21
+ Requires-Dist: pandas>=1.5.0
22
+ Requires-Dist: matplotlib>=3.6.0
23
+ Requires-Dist: seaborn>=0.12.0
24
+ Requires-Dist: opencv-python>=4.6.0
25
+ Requires-Dist: scikit-image>=0.19.0
26
+ Requires-Dist: scipy>=1.9.0
27
+ Requires-Dist: tifffile>=2022.8.12
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: license
35
+ Dynamic: license-file
36
+ Dynamic: project-url
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
40
+
41
+ # AutoMorphoTrack
42
+
43
+ **AutoMorphoTrack** is a modular image-analysis pipeline for automated detection, morphology classification, shape profiling, motility tracking, and colocalization analysis of mitochondria and lysosomes in multichannel fluorescence microscopy data.
44
+
45
+ Developed by **Armin Bayati, Ph.D.**
46
+
47
+ ---
48
+
49
+ ## 🧬 Overview
50
+
51
+ AutoMorphoTrack processes time-lapse `.tif` stacks (typically two-channel: mitochondria + lysosomes) and generates publication-ready visual and quantitative outputs at every step.
52
+
53
+ **Pipeline stages:**
54
+
55
+ 1. **Detection** – Organelle segmentation and outline visualization
56
+ 2. **Lysosomal Counting** – Per-frame lysosome counts and plots
57
+ 3. **Morphology Classification** – Elongated vs. punctate mitochondria
58
+ 4. **Shape Feature Extraction** – Circularity, solidity, aspect ratio, orientation
59
+ 5. **Shape Profiling** – Combined violin plots of mitochondrial and lysosomal metrics
60
+ 6. **Tracking** – Cumulative organelle trajectories (mitochondria, lysosomes, composite)
61
+ 7. **Tracking Overlay** – Tracks drawn on real-intensity images
62
+ 8. **Motility Analysis** – Velocity and displacement distributions + scatter plots
63
+ 9. **Colocalization** – Bright-blue overlap visualization with Manders and Pearson coefficients
64
+ 10. **Integrated Summary** – Correlation matrix across all extracted metrics
65
+
66
+ ---
67
+
68
+ ## 📁 Installation
69
+
70
+ ```bash
71
+ pip install automorphotrack
72
+ ```
73
+
74
+ Or clone directly:
75
+
76
+ ```bash
77
+ git clone https://github.com/abayatibrain/AutoMorphoTrack.git
78
+ cd AutoMorphoTrack
79
+ pip install -e .
80
+ ```
81
+
82
+ ---
83
+
84
+ ## 🚀 Basic Usage
85
+
86
+ ```python
87
+ from automorphotrack import *
88
+
89
+ tif_path = "Composite.tif"
90
+
91
+ detect_organelles(tif_path)
92
+ count_lysosomes_per_frame(tif_path)
93
+ classify_morphology(tif_path)
94
+ analyze_shape_features(tif_path)
95
+ profile_shape_data()
96
+ track_organelles(tif_path)
97
+ track_overlay(tif_path)
98
+ analyze_motility()
99
+ analyze_colocalization(tif_path)
100
+ summarize_integrated_data()
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 📦 Outputs
106
+
107
+ | Step | Output Type | Example Files |
108
+ |------|--------------|---------------|
109
+ | Detection | PNG + MP4 | `Mito_Frame0.png`, `Mitochondria_Detection.mp4` |
110
+ | Lysosome Count | PNG + CSV + MP4 | `Lyso_Count_Plot.png`, `Lysosome_Counts.csv` |
111
+ | Morphology | PNG + MP4 + CSV | `Morphology_Frame0_Labeled.png`, `Morphology_Labeled.mp4` |
112
+ | Shape Features | PNG + CSV | `Shape_Distributions.png`, `Mito_ShapeMetrics.csv` |
113
+ | Shape Profiling | PNG + CSV | `Shape_ViolinPlots.png`, `Combined_ShapeData.csv` |
114
+ | Tracking | PNG + MP4 + CSV | `Cumulative_Mito.png`, `Mito_Tracks.csv` |
115
+ | Tracking Overlay | PNG + MP4 | `Cumulative_Composite.png`, `Composite_CumulativeTracks.mp4` |
116
+ | Motility | PNG + CSV | `Motility_Distributions.png`, `Motility_Scatter.png` |
117
+ | Colocalization | PNG + MP4 + CSV | `Colocalization_Frame0.png`, `Colocalization.csv` |
118
+ | Summary | PNG + CSV | `Integrated_CorrelationMatrix.png`, `Integrated_Merged_Data.csv` |
119
+
120
+ ---
121
+
122
+ ## 🔧 Dependencies
123
+
124
+ - Python ≥ 3.9
125
+ - numpy, pandas, matplotlib, seaborn, opencv-python, scikit-image, scipy, tifffile
126
+
127
+ ---
128
+
129
+ ## 🧩 Citation
130
+
131
+ If you use this pipeline in your work, please cite:
132
+
133
+ > **Bayati, A. et al.** AutoMorphoTrack: Automated Organelle Tracking and Morphometric Profiling Toolkit (2025)
@@ -0,0 +1,93 @@
1
+ # AutoMorphoTrack
2
+
3
+ **AutoMorphoTrack** is a modular image-analysis pipeline for automated detection, morphology classification, shape profiling, motility tracking, and colocalization analysis of mitochondria and lysosomes in multichannel fluorescence microscopy data.
4
+
5
+ Developed by **Armin Bayati, Ph.D.**
6
+
7
+ ---
8
+
9
+ ## 🧬 Overview
10
+
11
+ AutoMorphoTrack processes time-lapse `.tif` stacks (typically two-channel: mitochondria + lysosomes) and generates publication-ready visual and quantitative outputs at every step.
12
+
13
+ **Pipeline stages:**
14
+
15
+ 1. **Detection** – Organelle segmentation and outline visualization
16
+ 2. **Lysosomal Counting** – Per-frame lysosome counts and plots
17
+ 3. **Morphology Classification** – Elongated vs. punctate mitochondria
18
+ 4. **Shape Feature Extraction** – Circularity, solidity, aspect ratio, orientation
19
+ 5. **Shape Profiling** – Combined violin plots of mitochondrial and lysosomal metrics
20
+ 6. **Tracking** – Cumulative organelle trajectories (mitochondria, lysosomes, composite)
21
+ 7. **Tracking Overlay** – Tracks drawn on real-intensity images
22
+ 8. **Motility Analysis** – Velocity and displacement distributions + scatter plots
23
+ 9. **Colocalization** – Bright-blue overlap visualization with Manders and Pearson coefficients
24
+ 10. **Integrated Summary** – Correlation matrix across all extracted metrics
25
+
26
+ ---
27
+
28
+ ## 📁 Installation
29
+
30
+ ```bash
31
+ pip install automorphotrack
32
+ ```
33
+
34
+ Or clone directly:
35
+
36
+ ```bash
37
+ git clone https://github.com/abayatibrain/AutoMorphoTrack.git
38
+ cd AutoMorphoTrack
39
+ pip install -e .
40
+ ```
41
+
42
+ ---
43
+
44
+ ## 🚀 Basic Usage
45
+
46
+ ```python
47
+ from automorphotrack import *
48
+
49
+ tif_path = "Composite.tif"
50
+
51
+ detect_organelles(tif_path)
52
+ count_lysosomes_per_frame(tif_path)
53
+ classify_morphology(tif_path)
54
+ analyze_shape_features(tif_path)
55
+ profile_shape_data()
56
+ track_organelles(tif_path)
57
+ track_overlay(tif_path)
58
+ analyze_motility()
59
+ analyze_colocalization(tif_path)
60
+ summarize_integrated_data()
61
+ ```
62
+
63
+ ---
64
+
65
+ ## 📦 Outputs
66
+
67
+ | Step | Output Type | Example Files |
68
+ |------|--------------|---------------|
69
+ | Detection | PNG + MP4 | `Mito_Frame0.png`, `Mitochondria_Detection.mp4` |
70
+ | Lysosome Count | PNG + CSV + MP4 | `Lyso_Count_Plot.png`, `Lysosome_Counts.csv` |
71
+ | Morphology | PNG + MP4 + CSV | `Morphology_Frame0_Labeled.png`, `Morphology_Labeled.mp4` |
72
+ | Shape Features | PNG + CSV | `Shape_Distributions.png`, `Mito_ShapeMetrics.csv` |
73
+ | Shape Profiling | PNG + CSV | `Shape_ViolinPlots.png`, `Combined_ShapeData.csv` |
74
+ | Tracking | PNG + MP4 + CSV | `Cumulative_Mito.png`, `Mito_Tracks.csv` |
75
+ | Tracking Overlay | PNG + MP4 | `Cumulative_Composite.png`, `Composite_CumulativeTracks.mp4` |
76
+ | Motility | PNG + CSV | `Motility_Distributions.png`, `Motility_Scatter.png` |
77
+ | Colocalization | PNG + MP4 + CSV | `Colocalization_Frame0.png`, `Colocalization.csv` |
78
+ | Summary | PNG + CSV | `Integrated_CorrelationMatrix.png`, `Integrated_Merged_Data.csv` |
79
+
80
+ ---
81
+
82
+ ## 🔧 Dependencies
83
+
84
+ - Python ≥ 3.9
85
+ - numpy, pandas, matplotlib, seaborn, opencv-python, scikit-image, scipy, tifffile
86
+
87
+ ---
88
+
89
+ ## 🧩 Citation
90
+
91
+ If you use this pipeline in your work, please cite:
92
+
93
+ > **Bayati, A. et al.** AutoMorphoTrack: Automated Organelle Tracking and Morphometric Profiling Toolkit (2025)
@@ -33,7 +33,7 @@
33
33
  # )
34
34
  # ============================================================
35
35
 
36
- __version__ = "2.0.0"
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
 
@@ -12,7 +12,7 @@ from automorphotrack.utils import ensure_dir, write_video, upscale_frame
12
12
  def detect_mask(frame, ch, thr_factor=0.8, min_size=3):
13
13
  """Threshold and clean a single channel."""
14
14
  img = frame[..., ch].astype(float)
15
- img = (img - img.min()) / (img.ptp() + 1e-12)
15
+ img = (img - img.min()) / (np.ptp(img) + 1e-12)
16
16
  thr = threshold_otsu(img) * thr_factor
17
17
  mask = clear_border(binary_opening(img > thr, footprint=disk(1)))
18
18
  mask = remove_small_objects(mask, min_size)
@@ -12,7 +12,7 @@ from automorphotrack.utils import ensure_dir, write_video, upscale_frame
12
12
  def detect_mask(frame, ch, thr_factor=0.8, min_size=2):
13
13
  """Detect lysosomes in a single channel frame."""
14
14
  img = frame[..., ch].astype(float)
15
- img = (img - img.min()) / (img.ptp() + 1e-12)
15
+ img = (img - img.min()) / (np.ptp(img) + 1e-12)
16
16
  thr = threshold_otsu(img) * thr_factor
17
17
  mask = clear_border(binary_opening(img > thr, footprint=disk(1)))
18
18
  mask = remove_small_objects(mask, min_size)
@@ -13,7 +13,7 @@ from automorphotrack.utils import ensure_dir, upscale_frame, save_high_dpi
13
13
  def detect_mask(frame, ch, thr_factor=0.8, min_size=10):
14
14
  """Threshold a channel to obtain clean mitochondrial mask."""
15
15
  img = frame[..., ch].astype(float)
16
- img = (img - img.min()) / (img.ptp() + 1e-12)
16
+ img = (img - img.min()) / (np.ptp(img) + 1e-12)
17
17
  thr = threshold_otsu(img) * thr_factor
18
18
  mask = clear_border(binary_opening(img > thr, footprint=disk(1)))
19
19
  mask = remove_small_objects(mask, min_size)
@@ -17,7 +17,7 @@ CB_LYSO = "#DE8F05" # orange
17
17
  def detect_mask(frame, ch, min_size=3, thr_factor=0.8):
18
18
  """Threshold and clean a single channel."""
19
19
  img = frame[..., ch].astype(float)
20
- img = (img - img.min()) / (img.ptp() + 1e-12)
20
+ img = (img - img.min()) / (np.ptp(img) + 1e-12)
21
21
  thr = threshold_otsu(img) * thr_factor
22
22
  mask = clear_border(binary_opening(img > thr, footprint=disk(1)))
23
23
  mask = remove_small_objects(mask, min_size)
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: automorphotrack
3
+ Version: 2.0.2
4
+ Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
+ Home-page: https://github.com/abayatibrain/AMTpackage
6
+ Author: Armin Bayati, Ph.D.
7
+ Author-email: a.bayati.brain@gmail.com
8
+ License: MIT
9
+ Project-URL: Documentation, https://github.com/abayatibrain/AMTpackage
10
+ Project-URL: Source, https://github.com/abayatibrain/AMTpackage
11
+ Project-URL: Tracker, https://github.com/abayatibrain/AMTpackage/issues
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE.md
20
+ Requires-Dist: numpy>=1.23.0
21
+ Requires-Dist: pandas>=1.5.0
22
+ Requires-Dist: matplotlib>=3.6.0
23
+ Requires-Dist: seaborn>=0.12.0
24
+ Requires-Dist: opencv-python>=4.6.0
25
+ Requires-Dist: scikit-image>=0.19.0
26
+ Requires-Dist: scipy>=1.9.0
27
+ Requires-Dist: tifffile>=2022.8.12
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: license
35
+ Dynamic: license-file
36
+ Dynamic: project-url
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
40
+
41
+ # AutoMorphoTrack
42
+
43
+ **AutoMorphoTrack** is a modular image-analysis pipeline for automated detection, morphology classification, shape profiling, motility tracking, and colocalization analysis of mitochondria and lysosomes in multichannel fluorescence microscopy data.
44
+
45
+ Developed by **Armin Bayati, Ph.D.**
46
+
47
+ ---
48
+
49
+ ## 🧬 Overview
50
+
51
+ AutoMorphoTrack processes time-lapse `.tif` stacks (typically two-channel: mitochondria + lysosomes) and generates publication-ready visual and quantitative outputs at every step.
52
+
53
+ **Pipeline stages:**
54
+
55
+ 1. **Detection** – Organelle segmentation and outline visualization
56
+ 2. **Lysosomal Counting** – Per-frame lysosome counts and plots
57
+ 3. **Morphology Classification** – Elongated vs. punctate mitochondria
58
+ 4. **Shape Feature Extraction** – Circularity, solidity, aspect ratio, orientation
59
+ 5. **Shape Profiling** – Combined violin plots of mitochondrial and lysosomal metrics
60
+ 6. **Tracking** – Cumulative organelle trajectories (mitochondria, lysosomes, composite)
61
+ 7. **Tracking Overlay** – Tracks drawn on real-intensity images
62
+ 8. **Motility Analysis** – Velocity and displacement distributions + scatter plots
63
+ 9. **Colocalization** – Bright-blue overlap visualization with Manders and Pearson coefficients
64
+ 10. **Integrated Summary** – Correlation matrix across all extracted metrics
65
+
66
+ ---
67
+
68
+ ## 📁 Installation
69
+
70
+ ```bash
71
+ pip install automorphotrack
72
+ ```
73
+
74
+ Or clone directly:
75
+
76
+ ```bash
77
+ git clone https://github.com/abayatibrain/AutoMorphoTrack.git
78
+ cd AutoMorphoTrack
79
+ pip install -e .
80
+ ```
81
+
82
+ ---
83
+
84
+ ## 🚀 Basic Usage
85
+
86
+ ```python
87
+ from automorphotrack import *
88
+
89
+ tif_path = "Composite.tif"
90
+
91
+ detect_organelles(tif_path)
92
+ count_lysosomes_per_frame(tif_path)
93
+ classify_morphology(tif_path)
94
+ analyze_shape_features(tif_path)
95
+ profile_shape_data()
96
+ track_organelles(tif_path)
97
+ track_overlay(tif_path)
98
+ analyze_motility()
99
+ analyze_colocalization(tif_path)
100
+ summarize_integrated_data()
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 📦 Outputs
106
+
107
+ | Step | Output Type | Example Files |
108
+ |------|--------------|---------------|
109
+ | Detection | PNG + MP4 | `Mito_Frame0.png`, `Mitochondria_Detection.mp4` |
110
+ | Lysosome Count | PNG + CSV + MP4 | `Lyso_Count_Plot.png`, `Lysosome_Counts.csv` |
111
+ | Morphology | PNG + MP4 + CSV | `Morphology_Frame0_Labeled.png`, `Morphology_Labeled.mp4` |
112
+ | Shape Features | PNG + CSV | `Shape_Distributions.png`, `Mito_ShapeMetrics.csv` |
113
+ | Shape Profiling | PNG + CSV | `Shape_ViolinPlots.png`, `Combined_ShapeData.csv` |
114
+ | Tracking | PNG + MP4 + CSV | `Cumulative_Mito.png`, `Mito_Tracks.csv` |
115
+ | Tracking Overlay | PNG + MP4 | `Cumulative_Composite.png`, `Composite_CumulativeTracks.mp4` |
116
+ | Motility | PNG + CSV | `Motility_Distributions.png`, `Motility_Scatter.png` |
117
+ | Colocalization | PNG + MP4 + CSV | `Colocalization_Frame0.png`, `Colocalization.csv` |
118
+ | Summary | PNG + CSV | `Integrated_CorrelationMatrix.png`, `Integrated_Merged_Data.csv` |
119
+
120
+ ---
121
+
122
+ ## 🔧 Dependencies
123
+
124
+ - Python ≥ 3.9
125
+ - numpy, pandas, matplotlib, seaborn, opencv-python, scikit-image, scipy, tifffile
126
+
127
+ ---
128
+
129
+ ## 🧩 Citation
130
+
131
+ If you use this pipeline in your work, please cite:
132
+
133
+ > **Bayati, A. et al.** AutoMorphoTrack: Automated Organelle Tracking and Morphometric Profiling Toolkit (2025)
@@ -1,4 +1,6 @@
1
+ LICENSE.md
1
2
  MANIFEST.in
3
+ README.md
2
4
  pyproject.toml
3
5
  setup.py
4
6
  automorphotrack/.___init__.py
@@ -10,7 +10,7 @@ if os.path.exists(readme_path):
10
10
 
11
11
  setup(
12
12
  name="automorphotrack",
13
- version="2.0.0",
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.",
@@ -1,36 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: automorphotrack
3
- Version: 2.0.0
4
- Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
- Home-page: https://github.com/abayatibrain/AMTpackage
6
- Author: Armin Bayati, Ph.D.
7
- Author-email: a.bayati.brain@gmail.com
8
- License: MIT
9
- Project-URL: Documentation, https://github.com/abayatibrain/AMTpackage
10
- Project-URL: Source, https://github.com/abayatibrain/AMTpackage
11
- Project-URL: Tracker, https://github.com/abayatibrain/AMTpackage/issues
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: License :: OSI Approved :: MIT License
14
- Classifier: Operating System :: OS Independent
15
- Classifier: Intended Audience :: Science/Research
16
- Classifier: Topic :: Scientific/Engineering :: Image Processing
17
- Requires-Python: >=3.9
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: numpy>=1.23.0
20
- Requires-Dist: pandas>=1.5.0
21
- Requires-Dist: matplotlib>=3.6.0
22
- Requires-Dist: seaborn>=0.12.0
23
- Requires-Dist: opencv-python>=4.6.0
24
- Requires-Dist: scikit-image>=0.19.0
25
- Requires-Dist: scipy>=1.9.0
26
- Requires-Dist: tifffile>=2022.8.12
27
- Dynamic: author
28
- Dynamic: author-email
29
- Dynamic: classifier
30
- Dynamic: description-content-type
31
- Dynamic: home-page
32
- Dynamic: license
33
- Dynamic: project-url
34
- Dynamic: requires-dist
35
- Dynamic: requires-python
36
- Dynamic: summary
@@ -1,36 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: automorphotrack
3
- Version: 2.0.0
4
- Summary: Automated pipeline for mitochondrial and lysosomal detection, tracking, morphology, and colocalization analysis in microscopy images.
5
- Home-page: https://github.com/abayatibrain/AMTpackage
6
- Author: Armin Bayati, Ph.D.
7
- Author-email: a.bayati.brain@gmail.com
8
- License: MIT
9
- Project-URL: Documentation, https://github.com/abayatibrain/AMTpackage
10
- Project-URL: Source, https://github.com/abayatibrain/AMTpackage
11
- Project-URL: Tracker, https://github.com/abayatibrain/AMTpackage/issues
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: License :: OSI Approved :: MIT License
14
- Classifier: Operating System :: OS Independent
15
- Classifier: Intended Audience :: Science/Research
16
- Classifier: Topic :: Scientific/Engineering :: Image Processing
17
- Requires-Python: >=3.9
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: numpy>=1.23.0
20
- Requires-Dist: pandas>=1.5.0
21
- Requires-Dist: matplotlib>=3.6.0
22
- Requires-Dist: seaborn>=0.12.0
23
- Requires-Dist: opencv-python>=4.6.0
24
- Requires-Dist: scikit-image>=0.19.0
25
- Requires-Dist: scipy>=1.9.0
26
- Requires-Dist: tifffile>=2022.8.12
27
- Dynamic: author
28
- Dynamic: author-email
29
- Dynamic: classifier
30
- Dynamic: description-content-type
31
- Dynamic: home-page
32
- Dynamic: license
33
- Dynamic: project-url
34
- Dynamic: requires-dist
35
- Dynamic: requires-python
36
- Dynamic: summary