-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
75 lines (67 loc) · 2.75 KB
/
README
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
70
71
72
73
74
75
# Instructions to build patched CAPS2 on Debian/Ubuntu, tested on
# Ubuntu 20.04. Sources are provided in the current folder, but can be
# obtained from here:
wget http://biopp.univ-montp2.fr/repos/sources/bpp-utils-1.5.0.tar.gz
wget http://biopp.univ-montp2.fr/repos/sources/bpp-numcalc-1.8.0.tar.gz
wget http://biopp.univ-montp2.fr/repos/sources/bpp-seq-1.7.0.tar.gz
wget http://biopp.univ-montp2.fr/repos/sources/bpp-phyl-1.9.0.tar.gz
wget http://bioinf.gen.tcd.ie/~faresm/software/files/caps2_src.zip
# The BppSuite components are installed in /usr/local, so they do not
# conflict with their modern versions. You _should not_ have the modern
# ones installed at CAPS2 build time, since it may get linked to them,
# instead. Build the bppSuite components in the exact order:
# Install cmake and gsl:
sudo apt install cmake
tar xvf bpp-utils-1.5.0.tar.gz
cd bpp-utils-1.5.0
sed -i "s:file;:file.good();:g" Utils/FileTools.cpp
sed -i "s:/lib/:/lib/Bpp1.9/:g" Utils.spec
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS:STRING="-Wl,-rpath,/usr/local/lib/Bpp1.9" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
sed -i "s:/lib\b:/lib/Bpp1.9:g" Utils/cmake_install.cmake
sed -i "s:Bpp1.9/Bpp1.9:Bpp1.9:g" Utils/cmake_install.cmake
make
sudo make install
tar xvf bpp-numcalc-1.8.0.tar.gz
cd bpp-numcalc-1.8.0
export PATH="/usr/local/lib/Bpp1.9/:$PATH"
sed -i "s:/lib/:/lib/Bpp1.9/:g" NumCalc.spec
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS:STRING="-Wl,-rpath,/usr/local/lib/Bpp1.9" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
sed -i "s:/lib\b:/lib/Bpp1.9:g" NumCalc/cmake_install.cmake
sed -i "s:Bpp1.9/Bpp1.9:Bpp1.9:g" NumCalc/cmake_install.cmake
make
sudo make install
tar xvf bpp-seq-1.7.0.tar.gz
cd bpp-seq-1.7.0
export PATH="/usr/local/lib/Bpp1.9/:$PATH"
sed -i "s:/lib/:/lib/Bpp1.9/:g" Seq.spec
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS:STRING="-Wl,-rpath,/usr/local/lib/Bpp1.9" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
sed -i "s:/lib\b:/lib/Bpp1.9:g" Seq/cmake_install.cmake
sed -i "s:Bpp1.9/Bpp1.9:Bpp1.9:g" Seq/cmake_install.cmake
make
sudo make install
tar xvf bpp-phyl-1.9.0.tar.gz
cd bpp-phyl-1.9.0
patch -p1 -i ../../caps_TreeTemplateTools.patch
export PATH="/usr/local/lib/Bpp1.9/:$PATH"
sed -i "s:/lib/:/lib/Bpp1.9/:g" Phyl.spec
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS:STRING="-Wl,-rpath,/usr/local/lib/Bpp1.9" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
sed -i "s:/lib\b:/lib/Bpp1.9:g" Phyl/cmake_install.cmake
sed -i "s:Bpp1.9/Bpp1.9:Bpp1.9:g" Phyl/cmake_install.cmake
make
sudo make install
# Build CAPS2:
sudo apt install libgsl-dev
cd caps2.0_src
cp Makefile.debian .
patch -p1 -i ../caps_verbose.patch
patch -p1 -i ../02_caps_sort_input.patch
make -f Makefile.debian
sudo cp vCAPS /usr/local/bin