-
Notifications
You must be signed in to change notification settings - Fork 12
/
INSTALL.sh
56 lines (46 loc) · 1.03 KB
/
INSTALL.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
#!/bin/bash
OPTIND=1
config_args=""
threads="1"
htslib_folder="./dysgu/htslib"
while getopts "h?j:l:" opt; do
case "$opt" in
h|\?)
echo "Options: -j number of build threads; -l path to external htslib folder"
exit 0
;;
j) threads=$OPTARG
;;
l) htslib_folder=$OPTARG
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
echo "Build threads:" $threads
echo "htslib_folder:" $htslib_folder
echo "Extra configure args:" $@
cd dysgu
wget https://github.com/samtools/htslib/releases/download/1.18/htslib-1.18.tar.bz2
tar -xvf htslib-1.18.tar.bz2 && rm htslib-1.18.tar.bz2 && mv htslib-1.18 htslib
cd ../
if [[ $htslib_folder == "./dysgu/htslib" ]]
then
echo "Building htslib"
cd ./dysgu/htslib
autoreconf -i
./configure
# autoheader
# autoconf
# ./configure $@
make -j$threads
cd ../../
fi
echo "Installing dependencies"
pip3 --version
pip3 install -r requirements.txt
echo "Installing dysgu"
python3 --version
python3 setup.py install
dysgu --version
echo "Done"