-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity
45 lines (40 loc) · 1.38 KB
/
Singularity
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
Bootstrap: docker
From: ubuntu:20.04
%help
TraitRELAX pre-copiled program version ${version}
%post
export TZ=America/Los_Angeles
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt-get update
apt-get install -y build-essential
apt-get install -y tzdata
apt-get install -y cmake
apt-get install -y git
apt-get install -y wget
apt-get install -y pkg-config
apt-get install -y libgomp1
mkdir -p ./traitrelax/exec/
wget https://github.com/halabikeren/TraitRELAX/releases/download/1.0.1/traitrelax_v1.0.1.tar.gz
tar -xf traitrelax_v1.0.1.tar.gz -C ./traitrelax/
mkdir -p /traitrelax/bpp-core/build/
cd /traitrelax/bpp-core/build/
cmake -DCMAKE_INSTALL_PREFIX=/traitrelax/ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE ..
make
make install
mkdir -p /traitrelax/bpp-seq/build/
cd /traitrelax/bpp-seq/build/
cmake -DCMAKE_INSTALL_PREFIX=/traitrelax/ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE ..
make
make install
mkdir -p /traitrelax/bpp-phyl/build/
cd /traitrelax/bpp-phyl/build/
cmake -DCMAKE_INSTALL_PREFIX=/traitrelax/ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE ..
make
make install
cd /traitrelax/TraitRELAX/
cmake -DCMAKE_INSTALL_PREFIX=/traitrelax/ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE .
make
make install
%runscript
cd /traitrelax/exec
exec /traitrelax/TraitRELAX/TraitRELAX/TraitRELAX param=$@