-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-prereqs.sh
37 lines (31 loc) · 965 Bytes
/
ubuntu-prereqs.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
#!/bin/sh
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -o Dpkg::Options::='--force-confold' -f -u -y build-essential cmake python3 python3-pip samtools mafft liblzma-dev libbz2-dev zlib1g-dev
sudo -H pip3 install biopython cutadapt pysam natsort
git clone https://bitbucket.org/genomicepidemiology/kma.git
cd kma/
# because `kma index...` still does not work in newer versions...
git checkout 1.1.7
make -j$(nproc)
sudo cp kma* /usr/local/bin/
cd
rm -rf kma/
git clone https://github.com/lh3/minimap2
cd minimap2 && make -j$(nproc)
sudo mv minimap2 /usr/local/bin/
sudo chmod 755 /usr/local/bin/minimap2
cd
rm -rf minimap2/
wget https://github.com/FelixKrueger/TrimGalore/archive/0.6.1.tar.gz
tar xzvf 0.6.1.tar.gz
sudo cp TrimGalore-0.6.1/trim_galore /usr/local/bin/
rm -rf TrimGalore-0.6.1/
git clone git://github.com/pezmaster31/bamtools.git
cd bamtools/
mkdir build
cd build/
cmake ..
make
sudo make install
cd
rm -rf bamtools/