This repository was archived by the owner on Oct 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
38 lines (30 loc) · 1.4 KB
/
test.py
File metadata and controls
38 lines (30 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
"""
Streamlined test using the integrated cell tracking pipeline.
Data format: (timeframes, channels, height, width)
Channels: [0: pattern, 1: nuclei, 2: fluorescence_cytoplasm, 3: phase_contrast]
We'll use channels 1 (nuclei) and 2 (cytoplasm) for Cellpose segmentation.
"""
from src.cell_tracker.pipeline import analyze_timelapse_data
def main():
"""Main test function using the integrated pipeline"""
print("=== Cell Tracker Pipeline Analysis ===\n")
# Run the complete analysis using the integrated pipeline
results = analyze_timelapse_data(
data_path='data/example.npy',
output_dir='data/segmentations',
start_frame=21,
channels=None # Will use default channels from pipeline
)
print("\n=== Analysis Summary ===")
print(f"Processed {results['total_frames']} frames")
print(f"Frame range: {results['frame_range'][0]} to {results['frame_range'][1]}")
print(f"T1 edge weight range: {results['t1_weight_range'][0]:.1f} to {results['t1_weight_range'][1]:.1f}")
print(f"T1 events detected: {results['t1_events_detected']}")
if results['t1_events']:
print("\nT1 Events:")
for event in results['t1_events']:
print(f" Frame {event['frame_start']}-{event['frame_end']}: "
f"{event['event_type']} (Δ={event['weight_change']:.1f})")
if __name__ == "__main__":
main()