-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.sh
executable file
·29 lines (25 loc) · 964 Bytes
/
plot.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
#!/bin/bash
#script to for loop through each insect species and print respective plot
#make output directory
mkdir output
# read through file and create variables
cat forlooped.txt| while read line;
do num=$(echo $line|cut -d ' ' -f 1);
species=$(echo $line| cut -d ' ' -f 2)
angle=$(echo $line | cut -d ' ' -f 3,4,5);
NO_L=$(echo $line|cut -d ' ' -f 6);
NO_R=$(echo $line|cut -d ' ' -f 7);
NO_COL=$(echo $line|cut -d ' ' -f 8,9);
#echo $NO_L $NO_R $NO_COL;
#noduli(NO) are saved differently in Catmaid, either as NO_L and NO_R or NO
if [ $NO_R = 'NO_R' ]
then
python3 plot_pymaid.py -i $num -j input/catmaid-skeletons-2022-5-25_$species.json -p \
$angle -s -V EB PB FB $NO_L $NO_R -C 0,1,0,0.1 0,1,0,0.1 0,1,0,0.05 $NO_COL \
-o output/${species}_fig
else
python3 plot_pymaid.py -i $num -j input/catmaid-skeletons-2022-5-25_$species.json -p \
$angle -s -V EB PB FB $NO_L -C 0,1,0,0.1 0,1,0,0.1 0,1,0,0.05 $NO_R \
-o output/${species}_fig;
fi;
done