forked from onuryukselen/PSI_Sigma_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·86 lines (71 loc) · 2.91 KB
/
Dockerfile
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
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM ubuntu:16.04
LABEL author="[email protected]" description="Docker image containing all requirements for the PSI-Sigma pipeline"
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH /opt/conda/bin:$PATH
RUN apt-get update --fix-missing && \
apt-get install -y wget bzip2 ca-certificates curl git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
# configure image
RUN apt-get -y update
RUN apt-get -y install software-properties-common build-essential
RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran40/'
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
#RUN apt-key adv --keyserver pgp.mit.edu --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN apt-get -y install apt-transport-https
RUN apt-get -y update
RUN apt-get -y install r-base
RUN R -e "install.packages('BiocManager')"
RUN R -e "BiocManager::install('qvalue')"
COPY environment.yml /
RUN conda env create -f /environment.yml && conda clean -a
RUN mkdir -p /project /nl /mnt /share
ENV PATH /opt/conda/envs/dolphinnext-PSI-Sigma-5.0/bin:$PATH
# Install PSI-Sigma
RUN wget https://github.com/wososa/PSI-Sigma/archive/v1.9r.tar.gz && \
tar -xzf v1.9r.tar.gz && mv PSI-Sigma-1.9r /usr/local/bin/PSI-Sigma-1.9r
ENV PATH /usr/local/bin/PSI-Sigma-1.9r:$PATH
# Install compiler and perl stuff
RUN apt-get install --yes \
build-essential \
gcc-multilib \
apt-utils \
perl \
expat \
libexpat-dev
# SET PERL5LIB
ENV PERL5LIB="/usr/local/lib/x86_64-linux-gnu/perl/5.22"
# 1. Install cpanm
RUN cpan App::cpanminus
# 2. Install GSL
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git make g++ gcc python wget libgsl0-dev
# 3. Install PDL::GSL
RUN cpanm PDL::LiteF
RUN cpanm PDL::GSL::CDF
RUN cpanm PDL::Stats
RUN cpanm Statistics::Multtest
RUN cpanm Statistics::R
# Install MEME
RUN apt-get install -y autoconf automake libtool ghostscript
RUN mkdir /opt/meme
ADD http://meme-suite.org/meme-software/5.3.3/meme-5.3.3.tar.gz /opt/meme
WORKDIR /opt/meme/
RUN tar zxvf meme-5.3.3.tar.gz && rm -fv meme-5.3.3.tar.gz
RUN cd /opt/meme/meme-5.3.3 && \
./configure --prefix=/opt --enable-build-libxml2 --enable-build-libxslt && \
make && \
make install && \
rm -rfv /opt/meme
# Install PSI-Sigma
RUN wget https://github.com/wososa/PSI-Sigma/archive/v1.9p.tar.gz && \
tar -xzf v1.9p.tar.gz && mv PSI-Sigma-1.9p /usr/local/bin/PSI-Sigma-1.9p
ENV PATH /usr/local/bin/PSI-Sigma-1.9p:$PATH
ENV PATH="/opt/bin:${PATH}"