forked from INSaFLU/INSaFLU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_soft_medaka.sh
executable file
·51 lines (44 loc) · 1.08 KB
/
install_soft_medaka.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
#!/bin/bash
set -e
cd /software
pip3 install virtualenv
virtualenv medaka --python=python3 --prompt "(medaka 1.2.1) "
. medaka/bin/activate
pip3 install medaka==1.2.1
cd medaka
#Install minimap
# cd
mkdir -p extra_software
cd extra_software
git clone https://github.com/lh3/minimap2.git
cd minimap2/
make
#Install HTSLIB
cd ..
wget https://github.com/samtools/htslib/releases/download/1.9/htslib-1.9.tar.bz2
tar -vxjf htslib-1.9.tar.bz2
cd htslib-1.9
make
cd ..
rm htslib-1.9.tar.bz2
#Install SAMTOOLS
wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2
tar -vxjf samtools-1.9.tar.bz2
cd samtools-1.9
make
cd ..
rm samtools-1.9.tar.bz2
#Install BCFTools
wget https://github.com/samtools/bcftools/releases/download/1.9/bcftools-1.9.tar.bz2
tar -vxjf bcftools-1.9.tar.bz2
cd bcftools-1.9
make
cd ..
rm bcftools-1.9.tar.bz2
### links
cd ../bin
ln -s ../extra_software/minimap2/minimap2 .
ln -s ../extra_software/htslib-1.9/bgzip .
ln -s ../extra_software/htslib-1.9/tabix .
ln -s ../extra_software/samtools-1.9/samtools .
ln -s ../extra_software/bcftools-1.9/bcftools .