-
Notifications
You must be signed in to change notification settings - Fork 0
/
kinc-recipe
49 lines (34 loc) · 1.29 KB
/
kinc-recipe
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
BootStrap: debootstrap
OSVersion: trusty
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%environment
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin:/usr/local/bin/include:/usr/local/bin/lib
export PATH=$PATH:/usr/local/bin:/usr/local/bin/include:/usr/local/bin/lib
%runscript
echo "Please run "singularity exec kinc.simg kinc" to view options"
%post
# set bind points for directories on host filesystems
mkdir /cvmfs /oasis /projects /scratch /scratch2 /scratch3 /zfs
# install libraries
echo "Installing software dependencies"
apt-get -y --force-yes install build-essential wget git cmake libblas-dev liblapack-dev libgsl0-dev
# download and extract mixmod source
wget http://www.mixmod.org/IMG/tgz/libmixmod_3.2.2_src.tgz
tar -xvf libmixmod_3.2.2_src.tgz
rm libmixmod_3.2.2_src.tgz
# build and install libmixmod
cd libmixmod_3.2.2/BUILD
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/bin
make
make install
cd
export INSTALL_PREFIX=/usr/local/bin
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$INSTALL_PREFIX/include
export LIBRARY_PATH=$LIBRARY_PATH:$INSTALL_PREFIX/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INSTALL_PREFIX/lib
echo "cloning the version1 branch of KINC and compiling"
git clone https://github.com/SystemsGenetics/KINC.git
cd KINC
make
chmod +x kinc
cp kinc /usr/local/bin