-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·168 lines (149 loc) · 3.56 KB
/
setup.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#!/bin/bash
runs="runs"
results="results"
data="data"
software="software"
echo -n "Detecting supported SIMD instruction set... "
simd=""
if grep -q avx2 /proc/cpuinfo; then
simd="AVX2"
elif grep -q avx /proc/cpuinfo; then
simd="AVX"
elif grep -q sse /proc/cpuinfo; then
simd="SSE"
fi
echo "$simd"
echo -n "Detecting number of (physical) CPU cores... "
ncores=$(lscpu --parse=Core,Socket | grep --invert-match "^#" | sort --unique | wc --lines)
echo "$ncores"
echo "Cloning software..."
mkdir -p $software
cd $software
install_raxmlng() {
git clone --recursive https://github.com/amkozlov/raxml-ng.git
echo "Installing raxml-ng..."
cd raxml-ng
git checkout addc2a8b6ec0215daf77b2a22b43b400b8c2103d
git submodule update --recursive
mkdir -p build && cd build
cmake -DUSE_MPI=ON ..
make -j
cd ../..
}
install_raxml() {
git clone https://github.com/stamatak/standard-RAxML.git
echo "Installing raxml..."
cd standard-RAxML/
make -j "$ncores" -f "Makefile.$simd.PTHREADS.gcc"
mv "raxmlHPC-PTHREADS-$simd" "raxml"
cd ..
}
install_modeltest() {
git clone --recursive --branch dev https://github.com/ddarriba/modeltest.git
echo "Installing modeltest..."
cd modeltest
mkdir -p build && cd build
cmake -DUSE_MPI=ON ..
make -j
cd ../..
}
install_pargenes() {
git clone --recursive https://github.com/BenoitMorel/ParGenes.git
echo "Installing pargenes..."
cd ParGenes
./install.sh 40
cd ..
}
install_mptp() {
git clone --recursive https://github.com/Pas-Kapli/mptp.git
echo "Installing mptp..."
cd mptp
./autogen.sh
./configure
make
cd ..
}
install_epa() {
git clone --recursive https://github.com/Pbdas/epa-ng.git
echo "Installing epa-ng..."
cd epa-ng
git checkout tags/v0.3.7
make -j
cd ..
}
install_papara() {
echo "Installing papara..."
mkdir papara
cd papara
wget https://cme.h-its.org/exelixis/resource/download/software/papara_nt-2.5-static_x86_64.tar.gz
tar xzf papara_nt-2.5-static_x86_64.tar.gz
ln -s papara_static_x86_64 papara
cd -
}
install_genesis() {
git clone --recursive https://github.com/lczech/genesis.git
cd genesis
git checkout e71a89704a87634ea84c1d15e80bafac234e0824
echo "Installing genesis..."
cd apps
ln -s ../../../scripts/*.cpp .
cd ..
make -j 8
make update -j 8
cd ..
}
install_gappa() {
git clone --recursive https://github.com/lczech/gappa.git
echo "Installing gappa..."
cd gappa
git checkout 7398c1cdf5162fe195c9c9fafe999f15e7d5012b
git submodule update --init --recursive
make -j
cd ..
}
install_iqtree() {
echo "Installing IQtree..."
wget https://github.com/Cibiv/IQ-TREE/releases/download/v1.6.12/iqtree-1.6.12-Linux.tar.gz
tar -xzf iqtree-1.6.12-Linux.tar.gz
mv iqtree-1.6.12-Linux iqtree
rm iqtree-1.6.12-Linux.tar.gz
}
install_root_digger(){
echo "Installing RootDigger..."
git clone --recursive https://github.com/computations/root_digger.git
pushd root_digger
make mpi -j
popd
}
install_mafft() {
echo "Installing mafft..."
wget --no-check-certificate https://mafft.cbrc.jp/alignment/software/mafft-7.450-linux.tgz
tar -xzf mafft-7.450-linux.tgz
mv mafft-linux64 mafft
rm mafft-7.450-linux.tgz
}
install_hmmer() {
echo "Installing hmmer..."
wget http://eddylab.org/software/hmmer/hmmer.tar.gz
tar -xzf hmmer.tar.gz
mv hmmer-* hmmer
rm hmmer.tar.gz
cd hmmer
./configure
make -j
cd -
}
install_raxmlng
install_raxml
install_modeltest
install_pargenes
install_mptp
install_epa
install_papara
install_genesis
install_gappa
install_iqtree
install_root_digger
install_mafft
install_hmmer
echo "Finished"