-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingularity.def
51 lines (42 loc) · 1.04 KB
/
singularity.def
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
Bootstrap: docker
From: ubuntu:20.04
Stage: spython-base
%files
dependencies/ /GenomeVariator/
src/ /GenomeVariator/
utils/ /GenomeVariator/
%labels
author="Rodrigo Martin <[email protected]>"
%post
# Install dependencies
apt-get update && apt-get upgrade -y && DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 \
python3-pip \
git \
wget \
build-essential \
libz-dev \
libglib2.0-dev \
libbz2-dev \
liblzma-dev \
default-jre \
autoconf \
samtools \
biobambam2 \
bwa
mkdir $HOME/bin
# Python dependencies
pip install pysam variant-extractor
# Velvet
wget https://github.com/dzerbino/velvet/archive/refs/tags/v1.2.10.tar.gz && tar -xvzf v1.2.10.tar.gz
make -C velvet-1.2.10
cp velvet-1.2.10/velvetg $HOME/bin && cp velvet-1.2.10/velveth $HOME/bin
# Exonerate
git clone https://github.com/adamewing/exonerate.git
cd exonerate && autoreconf -fi && ./configure && make && make install
export PATH=$PATH:$HOME/bin
# Copy the content of the repository to the folder GenomeVariator
%runscript
exec /bin/bash "$@"
%startscript
exec /bin/bash "$@"