forked from corbinq/apex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_dependencies.sh
More file actions
71 lines (54 loc) · 2.04 KB
/
get_dependencies.sh
File metadata and controls
71 lines (54 loc) · 2.04 KB
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
61
62
63
64
65
66
67
68
69
#!/bin/bash
# args library for processing command line arguments
git clone https://github.com/Taywee/args.git src/args
# Eigen library for linear algebra
git clone https://gitlab.com/libeigen/eigen.git src/eigen
# Spectra library for sparse, high-dimensional eigenvalue problems
#git clone https://github.com/yixuan/spectra.git src/spectra
git clone --single-branch --branch 0.9.x https://github.com/yixuan/spectra.git src/spectra
git clone https://github.com/corbinq/shrinkwrap.git src/shrinkwrap
# cd src/shrinkwrap && git reset --hard 5be49b4b62b86904191e7528040b296281fe5c26 && cd -
# Brent's algorithm
# mkdir -p BRENT && cd BRENT
# wget --no-check-certificate https://people.sc.fsu.edu/~jburkardt/cpp_src/brent/brent.hpp
# wget --no-check-certificate https://people.sc.fsu.edu/~jburkardt/cpp_src/brent/brent.cpp
# cd -
# try loading modules
if [ $(whereis module | cut -d: -f2 | wc -c) -lt 0 ]; then
module load boost
# module load htslib
fi
# boost::math library
if [ $(whereis boost | cut -d: -f2 | wc -c) -lt 0 ];
then
git clone https://github.com/boostorg/boost src/boost
echo "WARNING: Could not find boost library on system.\n"
echo " Preparing to install boost locally from source.\n"
echo "NOTE: Installing boost will take several minutes.\n"
sleep 2
cd src/boost
git submodule update --init
bash bootstrap.sh
./b2 headers
cd ../../
else
echo "Found boost installed at $(whereis boost | cut -d: -f2)"
fi
# htslib library, which we use for BCF/VCF access and indexing
tbx_loc=$(echo '#include <htslib/tbx.h>' | cpp -H -o /dev/null 2>&1 | head -n1)
# if [[ $tbx_loc == *"error"* ]]; then
# echo "Could not find htslib on system."
echo "Installing htslib locally."
git clone https://github.com/samtools/htslib.git src/htslib
cd src/htslib
git submodule update --init --recursive
autoreconf
./configure --disable-lzma --disable-bz2 --disable-libcurl
make install prefix=$PWD
cd ../../
# else
# echo "Found htslib installed on system."
# fi
# GDS format :
# git clone https://github.com/CoreArray/GDSFormat.git
# module load boost