-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerateLogos.sh
More file actions
49 lines (39 loc) · 1.78 KB
/
generateLogos.sh
File metadata and controls
49 lines (39 loc) · 1.78 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
39
40
41
42
43
44
45
46
#!/bin/bash
# this script will run tsfm on all the genomes
# for each genomes it will make a folder in each folder will make three folders: KLD,ID,Func, bubble_Table
folderpath=$(pwd) #"/home/fatemeh/Leishmania_2019/Leishmania_2019/Results/tsfminput_final/input3/"
tsfmpath="/home/fatemeh/Leishmania_Aug2018/phyloclassification/tsfm-master/tsfm"
folders=$(ls -l $folderpath | grep "^d" | awk -F" " '{print $9}')
# creating function logos
#for name1 in $folders; do
#if [ $name1 != "Logos" ]
#then
#printf "***************$name1***************"
# mkdir -p "$folderpath/Logos/$name1/KLD"
# mkdir -p "$folderpath/Logos/$name1/ID"
# mkdir -p "$folderpath/Logos/$name1/Func"
# mkdir -p "$folderpath/Logos/$name1/Bubble"
#run tsfm to make the logos
#name2=${name1%".v5"}
#name3="$name2.sites72.v5"
#printf "$name3"
#python3 "$tsfmpath/tsfm.py" -c "$folderpath/tsfm_finalinput_HomoC_structfile.txt" --logo "$folderpath/$name1/$name3"
#mv -- *.eps "$folderpath/Logos/$name1/Func"
#fi
#done
# creating ID, KLD, and tables for the bubble plots
for name1 in $folders; do
if [ $name1 != "Logos" ]
then
printf "***************$name***************"
name2=${name1%".v5"}
name3="$name2.sites72.v5"
python3 "$tsfmpath/tsfm.py" -c "$folderpath/tsfm_finalinput_HomoC_structfile.txt" --idlogo "$folderpath/$name1/$name3" "$folderpath/HOMO.v5/HOMO.sites72.v5"
mv -- *.eps "$folderpath/Logos/$name1/ID"
#python3 "$tsfmpath/tsfm.py" -c "$folderpath/tsfm_finalinput_HomoC_structfile.txt" --kldlogo "$folderpath/$name1/$name3" "$folderpath/HOMO.v5/HOMO.sites72.v5"
#mv -- *.eps "$folderpath/Logos/$name1/KLD"
python3 "$tsfmpath/tsfm.py" -c "$folderpath/tsfm_finalinput_HomoC_structfile.txt" --bt "$folderpath/$name1/$name3" "$folderpath/HOMO.v5/HOMO.sites72.v5"
rm -- *.eps
mv *_Table.txt "$folderpath/Logos/$name1/Bubble"
fi
done