-
Notifications
You must be signed in to change notification settings - Fork 4
/
Singularity.methylation450KPipeline_v1.0
72 lines (58 loc) · 2.16 KB
/
Singularity.methylation450KPipeline_v1.0
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
64
65
66
67
68
69
70
71
72
Bootstrap: docker
From: centos:6.6
%labels
MAINTAINER Natacha Beck <[email protected]>
%files
. /methylation450KPipeline
%post
# Install prerequisite
yum update -y
# Install basic packages
yum install -y gcc \
perl \
make \
autoconf \
automake \
gcc-gfortran \
compat-gcc-34-g77.x86_64 \
wget \
tar \
gcc-c++ \
readline-devel \
libXt-devel \
java-1.8.0-openjdk-devel \
which \
git \
libcurl libcurl-devel \
openssl-devel \
libxml2-devel \
libpng-devel \
mesa-libGLU-devel.x86_64 \
texlive-latex \
pango \
pango-devel \
libX11-devel \
libxt-dev
yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
# Install rstudio
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.896-x86_64.rpm
yum install -y --nogpgcheck rstudio-server-rhel-0.99.896-x86_64.rpm
ln -s /usr/lib/rstudio-server/bin/pandoc/pandoc /usr/local/bin
ln -s /usr/lib/rstudio-server/bin/pandoc/pandoc-citeproc /usr/local/bin
# Install R-3.2.0
wget http://cran.r-project.org/src/base/R-3/R-3.2.0.tar.gz; tar -zxvf R-3.2.0.tar.gz; cd R-3.2.0; ./configure; make; cp /R-3.2.0/bin/R /bin/; cp /R-3.2.0/bin/Rscript /bin/
# Install all biocLite R packages
echo 'source("http://bioconductor.org/biocLite.R"); biocLite(ask=FALSE); biocLite(c("minfi","minfiData","wateRmelon","shinyMethyl","shinyMethylData"), ask=FALSE)' > /tmp/packages_bioc.R
Rscript /tmp/packages_bioc.R
# Install all other R packages
echo 'install.packages(c("httpuv", "devtools", "matrixStats", "RColorBrewer", "shiny", "rmarkdown", "knitr", "DT"), repos= "http://cran.us.r-project.org")' > /tmp/packages.R
Rscript /tmp/packages.R
# chmod
chmod 755 /methylation450KPipeline
chmod 755 /methylation450KPipeline/methylation450kpipeline_cbrain_process.sh
%environment
PIPELINE_450K=/methylation450KPipeline
PATH=$PATH:$PIPELINE_450K
export PIPELINE_450K
%runscript
exec /bin/bash "$@"