-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_full_pipe_with_sam.sh
54 lines (40 loc) · 1.2 KB
/
run_full_pipe_with_sam.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# this is a gold standard reproducible pipeline for the analysis of Live-Cell timelapse imaging data
############################################
# Download and pre-process the data
############################################
# echo "Starting the data download and pre-processing..."
# Download the data
# TODO: Add the link to the data once it is available
# pre-process the data
#cd 1.pre_process_data/
#source run_preprocessing.sh
#cd ../
# run illumination correction
cd 2.cellprofiler_ic_processing
source run_ic_HPC.sh
cd ../
echo "Data download and pre-processing complete"
############################################
# CellProfiler analysis
############################################
# echo "Starting the CellProfiler analysis..."
# run SAM2
cd 3b.run_sam
mamba activate sam2_env
source run_sam2.sh
cd ../
mamba deactivate
# extract the features
mamba activate cellprofiler_timelapse_env
cd 4.cellprofiler_analysis
jupyter nbconvert --to python --output-dir=scripts/ notebooks/*.ipynb
cd scripts/
python run_cellprofiler_pipe_with_sam_outputs.py
cd ../
# process the features
cd 5.process_CP_features/
source processing_features.sh
cd ../
mamba deactivate
echo "CellProfiler analysis complete"