-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGP3_singularity_recipe
executable file
·63 lines (58 loc) · 1.48 KB
/
GP3_singularity_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Bootstrap: debootstrap
OSVersion: xenial
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
Include: apt
%help
This container is built to run the GP3 repo located on github
%setup
cp run_GWAS_analysis_pipeline.py $SINGULARITY_ROOTFS
cp run_GWAS_analysis_pipeline.py.json $SINGULARITY_ROOTFS
echo $SINGULARITY_ROOTFS
ls $SINGULARITY_ROOTFS
%files
LICENSE
PCA_indi.R /mnt
PCA_TGP.R /mnt
run_GWAS_analysis_pipeline.py mnt
GENESIS_setup_ANALYSIS_PIPELINE.R /mnt
sample_sheet_template.xlsx /mnt
summary_stats.py /mnt
TGP_Sub_and_SuperPopulation_info.txt /mnt
king /mnt
plink /mnt
run_GWAS_analysis_pipeline.py.json mnt
%runscript
echo "chunkypipes framework is ready!"
cd /mnt
exec /usr/local/bin/chunky "$@"
%post
echo "Installing all container dependencies!"
apt-get -y update
apt-get -y install software-properties-common
apt-add-repository universe
apt-get -y update
apt-get -y install python
apt-get -y install python-pip
echo "verifiying pip install"
pip -V
pip install chunkypipes
pip install pandas
pip install numpy
pip install matplotlib
pip install fpdf
pip install Pillow
pip install pypdf2
pip install statistics
pip install xlrd
apt-get -y install r-base
/usr/local/bin/chunky init /mnt
mv run_GWAS_analysis_pipeline.py /mnt/.chunky/pipelines
mv run_GWAS_analysis_pipeline.py.json /mnt/.chunky/configs
cd /mnt
ls
chmod a+rwx /mnt
chmod -R a+rwx /mnt/.chunky
%environment
CHUNKY_HOME=/mnt
export CHUNKY_HOME
export PYTHONPATH="${PYTHONPATH}:/mnt/"