forked from sanger-pathogens/ariba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_dependencies.sh
executable file
·56 lines (46 loc) · 1.35 KB
/
install_dependencies.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
#!/usr/bin/env bash
set -vexu
install_root=$1
BOWTIE2_VERSION=2.3.1
SPADES_VERSION=3.13.1
apt-get update -qq
apt-get install -y software-properties-common
apt-add-repository universe
apt-get update -qq
apt-get install --no-install-recommends -y \
build-essential \
cd-hit \
curl \
git \
libcurl4-gnutls-dev \
libssl-dev \
libbz2-dev \
liblzma-dev \
mummer \
python3-dev \
python3-setuptools \
python3-pip \
python3-tk \
python3-matplotlib \
unzip \
wget \
zlib1g-dev
ln -s -f /usr/bin/python3 /usr/local/bin/python
if [ ! -d $install_root ]; then
mkdir $install_root
fi
cd $install_root
# pysam from pip because apt-get version is too old
python3 -m pip install pysam>=0.21.0
# --------------- bowtie2 ------------------
cd $install_root
wget -q http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/${BOWTIE2_VERSION}/bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
unzip -n bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
rm bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
mv bowtie2-${BOWTIE2_VERSION}-legacy bowtie2
# --------------- spades -------------------
cd $install_root
wget -q https://github.com/ablab/spades/releases/download/v${SPADES_VERSION}/SPAdes-${SPADES_VERSION}-Linux.tar.gz
tar xf SPAdes-${SPADES_VERSION}-Linux.tar.gz
rm SPAdes-${SPADES_VERSION}-Linux.tar.gz
mv SPAdes-${SPADES_VERSION}-Linux SPAdes