-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSingularity
More file actions
executable file
·62 lines (50 loc) · 1.45 KB
/
Singularity
File metadata and controls
executable file
·62 lines (50 loc) · 1.45 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
Bootstrap: docker
From: ubuntu:18.04
%environment
export TZ=Europe/Berlin
export PATH=/usr/local/bin:/opt/locuszoom/bin:/opt/plink:$PATH
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
%post
apt update
export TZ=Europe/Berlin
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt install -y tabix moreutils git wget zip unzip python3-pip r-base sqlite3 python-dev python-pip
# locuszoom
cd /opt
wget https://statgen.sph.umich.edu/locuszoom/download/locuszoom_1.4_srconly.tgz
tar -zxf locuszoom_1.4_srconly.tgz
rm locuszoom_1.4_srconly.tgz
mkdir locuszoom/conf
touch locuszoom/conf/m2zfast.conf
cat <<-EOF >locuszoom/conf/m2zfast.conf
METAL2ZOOM_PATH="bin/locuszoom.R"
NEWFUGUE_PATH=""
PLINK_PATH="plink"
RSCRIPT_PATH="Rscript"
TABIX_PATH="tabix"
SQLITE_DB={"b38":""}
DEFAULT_BUILD="b38"
DEFAULT_POP="EUR"
DEFAULT_SOURCE="b38"
GWAS_CATS={"b38":{}}
LD_DB={"b38":{}}
EOF
# PLINK
cd /opt
mkdir plink
cd plink
wget http://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20201019.zip
unzip plink_linux_x86_64_20201019.zip
rm plink_linux_x86_64_20201019.zip
# PeakPlotter
cd /opt
git clone https://github.com/hmgu-itg/peakplotter.git
cd peakplotter
python3 -m pip install .
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
peakplotter-data-setup
chmod -R 777 /usr/local/lib/python3.6
%runscript
exec python3 -m peakplotter "$@"