-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase_check.sh
executable file
·86 lines (76 loc) · 2.33 KB
/
base_check.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
#!/bin/bash
echo "Installing base dependencies for SSUnique..."
# SOFTWARE:
# FastTree - http://www.microbesonline.org/fasttree/FastTree
# infernal - http://eddylab.org/infernal/infernal-1.1.1.tar.gz
# ssualign - http://eddylab.org/software/ssu-align/ssu-align-0.1.1.tar.gz
# base R - sudo apt-get install r-base r-base-dev
# HMMER: - http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz
mkdir -p downloads
cd downloads
# Installing FastTree
echo "Installing FastTree"
if hash FastTree 2>/dev/null; then
echo "FastTree already installed"
else
echo "Installing from http://www.microbesonline.org/fasttree/FastTree"
wget "http://www.microbesonline.org/fasttree/FastTree"
cp FastTree /usr/local/bin/
chmod a+x /usr/local/bin/FastTree
rm FastTree
fi
# Installing Infernal
echo "Installing Infernal"
if hash cmalign 2>/dev/null; then
echo "Infernal already installed"
else
echo "Installing from http://eddylab.org/infernal/infernal-1.1.1.tar.gz"
wget "http://eddylab.org/infernal/infernal-1.1.1.tar.gz"
tar -xf infernal-1.1.1.tar.gz
cd infernal-1.1.1
./configure
make
make install
cd ..
fi
# Installing ssu-align
echo "Installing ssu-align"
if hash ssu-align 2>/dev/null; then
echo "ssu-align already installed"
else
echo "Installing from http://eddylab.org/software/ssu-align/ssu-align-0.1.1.tar.gz"
wget "http://eddylab.org/software/ssu-align/ssu-align-0.1.1.tar.gz"
tar -xf ssu-align-0.1.1.tar.gz
cd ssu-align-0.1.1
./configure
make
make install
export PATH="$PATH:/usr/local/bin"
export MANPATH="$MANPATH:/usr/local/share/man"
export SSUALIGNDIR="/usr/local/share/ssu-align-0.1.1"
cd ..
fi
# Installing HMMER
echo "Installing HMMER"
if hash hmmbuild 2>/dev/null; then
echo "HMMER already installled"
else
echo "Installing from http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz"
wget "http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz"
tar -xf hmmer-3.1b2-linux-intel-x86_64.tar.gz
cd hmmer-3.1b2-linux-intel-x86_64
./configure
make
make install
cd ..
fi
# Installing R
echo "Installing base R"
if has R 2>/dev/null; then
echo "R already installed"
else
echo "Installing R"
sudo apt-get install r-base r-base-dev
fi
cd ..
rm -rf downloads