forked from kehrlab/PopIns2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·60 lines (52 loc) · 1.22 KB
/
build.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
57
58
59
60
#!/usr/bin/env bash
set -xe
BIN_FOLDER=$(mktemp -d)
PATH=$BIN_FOLDER:$PATH
NPROC=$(nproc)
ARCH=$(echo $(uname -m) | tr '_' '-')
# Bifrost
git clone https://github.com/pmelsted/bifrost.git
pushd bifrost
# reset to commit prior to new color format
git checkout 9e6f948ce2c27de32bc687502e777aebc9eab53d
mkdir build && cd build
cmake .. -DMAX_KMER_SIZE=64
sed -i 's/MAX_KMER_SIZE \"32\" CACHE/MAX_KMER_SIZE \"64\" CACHE/g' ../CMakeLists.txt
make -j$NPROC
sudo make install
file /usr/local/bin/Bifrost | grep $ARCH
popd
# Bwa
git clone --recursive https://github.com/lh3/bwa.git
pushd bwa
make -j$NPROC
cp bwa $BIN_FOLDER/
file $BIN_FOLDER/bwa | grep $ARCH
popd
# Samtools
## Htslib
git clone --recursive https://github.com/samtools/htslib.git
pushd htslib
autoreconf -i
./configure
make -j$NPROC
popd
## Samtools
git clone --recursive https://github.com/samtools/samtools.git
pushd samtools
make -j$NPROC
cp samtools $BIN_FOLDER/
file $BIN_FOLDER/samtools | grep $ARCH
popd
# Sickle
git clone --recursive https://github.com/najoshi/sickle.git
pushd sickle
make -j$NPROC
cp sickle $BIN_FOLDER/
file $BIN_FOLDER/sickle | grep $ARCH
popd
# PopIns2
git config --global --add safe.directory .
mkdir -p build
make -j$NPROC
file popins2 | grep $ARCH