Skip to content

Commit 005abdd

Browse files
authored
Merge pull request #6 from zoccoler/rev1_b
Update notebooks with more descriptions and path to data in python script
2 parents f0dc1af + d86bcbd commit 005abdd

6 files changed

+316
-499
lines changed

code/phasor_plot_AZ212.ipynb

Lines changed: 39 additions & 101 deletions
Large diffs are not rendered by default.

code/phasor_plot_JJ1473.ipynb

Lines changed: 25 additions & 38 deletions
Large diffs are not rendered by default.

code/phasor_plot_analysis_batch_processing.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
"""
2+
Batch processing script for FLIM phasor plot analysis of all embryo samples.
3+
This script processes all folders in the 'embryos_data' folder, extracting phasor plots,
4+
performing segmentation, and saving results in the respective output folders.
5+
6+
Phasor-related inputs:
7+
- harmonic: 1
8+
- threshold: 15
9+
- binning: yes
10+
- binning in 3D: no
11+
- binning kernel size: 3x3
12+
- median filter: yes
13+
- number of median filter interations: 3
14+
"""
15+
116
import napari
217
import tifffile
318
import numpy as np
@@ -22,8 +37,9 @@
2237
start_time = time.time()
2338
# Inputs
2439

25-
# Main folder path (each folder contains a zarr file and an xml file)
26-
main_folder_path = Path("../embryos_data/")
40+
# Data folder path called 'embryos_data' (each folder contains a zarr file and an xml file)
41+
# placed iside the repository root directory
42+
main_folder_path = Path(__file__).parent / '..' / 'embryos_data'
2743

2844
# Additional manual metadata if xml file was not available (not the case)
2945
z_pixel_size = 0.5*1e-6 # in m
@@ -69,7 +85,7 @@
6985
store_phasor_mask = False
7086

7187
processed_samples = []
72-
88+
print(f"Starting batch processing of FLIM phasor plots in folder: {main_folder_path}")
7389
# Iterate throgh all the folders in the main folder
7490
for folder in main_folder_path.iterdir():
7591
new_sample_time = time.time()

code/phasor_plot_single_timepoint_LP307_3.ipynb

Lines changed: 55 additions & 40 deletions
Large diffs are not rendered by default.

code/phasor_plot_single_timepoint_TMR17_3.ipynb

Lines changed: 56 additions & 41 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)