Debian Codegraph @

install_dependencies.sh

raw
1 #!/usr/bin/env bash
2 set -vexu
3
4 install_root=$1
5
6 BOWTIE2_VERSION=2.3.1
7 SPADES_VERSION=3.13.1
8
9 apt-get update -qq
10 apt-get install -y software-properties-common
11 apt-add-repository universe
12 apt-get update -qq
13
14 apt-get install --no-install-recommends -y \
15 build-essential \
16 cd-hit \
17 curl \
18 git \
19 libcurl4-gnutls-dev \
20 libssl-dev \
21 libbz2-dev \
22 liblzma-dev \
23 mummer \
24 python3-dev \
25 python3-setuptools \
26 python3-pip \
27 python3-tk \
28 python3-matplotlib \
29 unzip \
30 wget \
31 zlib1g-dev
32
33 ln -s -f /usr/bin/python3 /usr/local/bin/python
34
35 if [ ! -d $install_root ]; then
36 mkdir $install_root
37 fi
38 cd $install_root
39
40 # pysam from pip because apt-get version is too old
41 python3 -m pip install pysam>=0.21.0
42
43 # --------------- bowtie2 ------------------
44 cd $install_root
45 wget -q http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/${BOWTIE2_VERSION}/bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
46 unzip -n bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
47 rm bowtie2-${BOWTIE2_VERSION}-legacy-linux-x86_64.zip
48 mv bowtie2-${BOWTIE2_VERSION}-legacy bowtie2
49
50
51 # --------------- spades -------------------
52 cd $install_root
53 wget -q https://github.com/ablab/spades/releases/download/v${SPADES_VERSION}/SPAdes-${SPADES_VERSION}-Linux.tar.gz
54 tar xf SPAdes-${SPADES_VERSION}-Linux.tar.gz
55 rm SPAdes-${SPADES_VERSION}-Linux.tar.gz
56 mv SPAdes-${SPADES_VERSION}-Linux SPAdes