-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathANDA.sh
25 lines (20 loc) · 820 Bytes
/
ANDA.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
#!/bin/bash
scripts_dir=$(pwd) # Directory with scripts
dir_name=$(awk 'FNR == 1 {print}' ${scripts_dir}/pipeline_parameters.txt)
imagej_path=$(awk 'FNR == 2 {print}' ${scripts_dir}/pipeline_parameters.txt)
outlines_=$(awk 'FNR == 4 {print}' ${scripts_dir}/pipeline_parameters.txt)
cd ${dir_name}
ls | grep tif > file_names.txt # Write image file names to list
cd ..
dirs_len=${#dirs_[@]}
# Make directories to store results and/or outlines
mkdir ${dir_name}_results_cells
mkdir ${dir_name}_results_neurites
mkdir ${dir_name}_results_attachments
if [[ ${outlines} == "save_outlines" ]]; then
mkdir ${dir_name}_outlines_cells
mkdir ${dir_name}_outlines_neurites
mkdir ${dir_name}_outlines_attachments
fi
${imagej_path}/ImageJ-linux64 --ij2 --headless --run ${scripts_dir}/cell_metrics.py
python3 data_sort.py