Skip to content

Commit 40c67b9

Browse files
author
Jan Winter
committed
no message
1 parent aa1ab6a commit 40c67b9

File tree

1 file changed

+26
-33
lines changed

1 file changed

+26
-33
lines changed

docker/Dockerfile

+26-33
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ FROM rocker/r-ver:3.4.3
22

33
MAINTAINER Jan Winter "[email protected]"
44

5-
#### things we need for the crispranalyzer package
6-
#### and for the crispr reannotator
7-
#### and another deb pkgs we later need for the R libraries to compile or run
5+
#### LINUX DEPENDENCIES
86
RUN apt-get update && apt-get install -y \
97
wget \
108
sudo \
@@ -26,37 +24,39 @@ RUN apt-get update && apt-get install -y \
2624
htop \
2725
ghostscript \
2826
nginx \
29-
libtbb2
27+
libtbb2 \
28+
libmariadbclient-dev
3029

31-
# again some more things we need to run the crispranalyzer package
30+
# Add TEX for report and R Markdown
3231
RUN apt-get update && apt-get -y --no-install-recommends \
3332
install texlive texlive-xetex
3433

3534
# install the shiny server debian package from r-studio
3635
RUN wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.5.3.838-amd64.deb -P /tmp/
37-
#COPY ./shiny-server-1.5.2.837-amd64.deb /tmp/ss.deb
3836
RUN gdebi -n /tmp/shiny-server-1.5.3.838-amd64.deb && \
3937
rm -f /tmp/shiny-server-1.5.3.838-amd64.deb
4038

4139
COPY ./shiny-server.sh /usr/bin/shiny-server.sh
4240
RUN chmod +x /usr/bin/shiny-server.sh
4341

42+
#### R PACKAGES
4443

45-
# now to the R part...
46-
47-
48-
# first we need devtools for all the installation of all further packages
44+
# First we need devtools for all the installation of all further packages
4945
RUN R -e 'install.packages("devtools", repos = "http://cloud.r-project.org/")'
5046

51-
# install all the packages we need from cran, bioconductor and github
47+
# install all the packages we need from CRAN, Bioconductor and GitHub
5248

49+
RUN R -e 'devtools::install_version("RCurl", repos = "http://cloud.r-project.org/")'
50+
RUN R -e 'devtools::install_version("XML", repos = "http://cloud.r-project.org/")'
5351
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite()'
52+
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("BiocParallel")'
53+
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("rtracklayer")'
54+
5455
# We have to retrieve thise package as it is not available anymore, but required by some packages
5556
RUN wget http://www.omegahat.net/XMLRPC/XMLRPC_0.3-0.tar.gz -P /tmp/
5657
RUN R -e 'install.packages("/tmp/XMLRPC_0.3-0.tar.gz", repos = NULL, type="source")'
58+
5759
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("RCytoscape")'
58-
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("BiocParallel")'
59-
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("rtracklayer")'
6060
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("RamiGO")'
6161
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("BiocGenerics")'
6262
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("limma")'
@@ -74,34 +74,28 @@ RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("Gviz")'
7474
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("STRINGdb")'
7575
RUN R -e 'devtools::install_version("dplyr", version = "0.7.4", repos = "http://cloud.r-project.org/")'
7676
RUN R -e 'devtools::install_github("jyyu/ScreenBEAM", ref = "d6204b3")'
77-
#RUN R -e 'devtools::install_version("readr", version = "1.1.1", repos = "http://cloud.r-project.org/")'
7877
RUN R -e 'devtools::install_version("shinydashboard", version = "0.5.3", repos = "http://cloud.r-project.org/")'
7978
RUN R -e 'devtools::install_version("jsonlite", version = "1.1", repos = "http://cloud.r-project.org/")'
8079
RUN R -e 'devtools::install_version("shinyBS", version = "0.61", repos = "http://cloud.r-project.org/")'
8180
RUN R -e 'devtools::install_version("highcharter", version = "0.5.0", repos = "http://cloud.r-project.org/")'
82-
#RUN R -e 'devtools::install_github("jbkunst/highcharter", ref = "cc5f1e0157c50fc67233bc1bad6c3ad906d418c8")'
8381
RUN R -e 'devtools::install_version("seqinr", version = "3.3-6", repos = "http://cloud.r-project.org/")'
8482
RUN R -e 'devtools::install_version("openxlsx", version = "4.0.17", repos = "http://cloud.r-project.org/")'
85-
#RUN R -e 'devtools::install_github("awalker89/openxlsx", ref = "6d0fed9")'
8683
RUN R -e 'devtools::install_version("caTools", version = "1.17.1", repos = "http://cloud.r-project.org/")'
8784
RUN R -e 'devtools::install_version("reshape2", version = "1.4.2", repos = "http://cloud.r-project.org/")'
8885
RUN R -e 'devtools::install_version("MESS", version = "0.4-3", repos = "http://cloud.r-project.org/")'
8986
RUN R -e 'devtools::install_version("igraph", version = "1.0.1", repos = "http://cloud.r-project.org/")'
9087
RUN R -e 'devtools::install_version("data.table", version = "1.10.4", repos = "http://cloud.r-project.org/")'
91-
RUN R -e 'devtools::install_github("jimhester/gmailr", ref = "59dac01")'
88+
RUN R -e 'devtools::install_github("jimhester/gmailr", ref = "d5ee3c2")' #OLD d5ee3c2 # new 59dac01
9289
RUN R -e 'devtools::install_version("d3heatmap", version = "0.6.1.1", repos = "http://cloud.r-project.org/")'
9390
RUN R -e 'devtools::install_version("DEoptim", version = "2.2-3", repos = "http://cloud.r-project.org/")'
9491
RUN R -e 'devtools::install_version("httr", version = "1.3.1", repos = "http://cloud.r-project.org/")'
9592
RUN R -e 'devtools::install_version("sgRSEA", version = "0.1", repos = "http://cloud.r-project.org/")'
96-
#RUN R -e 'devtools::install_version("plyr", version = "1.8.4", repos = "http://cloud.r-project.org/")'
9793
RUN R -e 'devtools::install_version("VennDiagram", version = "1.6.17", repos = "http://cloud.r-project.org/")'
9894
RUN R -e 'devtools::install_version("tidyverse", version = "1.2.1", repos = "http://cloud.r-project.org/")'
9995
RUN R -e 'devtools::install_version("htmltools", version = "0.3.6", repos = "http://cloud.r-project.org/")'
10096
RUN R -e 'devtools::install_version("DT", version = "0.2", repos = "http://cloud.r-project.org/")'
101-
#RUN R -e 'devtools::install_version("tidyr", version = "0.6.3", repos = "http://cloud.r-project.org/")'
10297
RUN R -e 'devtools::install_version("sm", version = "2.2-5.4", repos = "http://cloud.r-project.org/")'
10398
RUN R -e 'devtools::install_version("shinyjs", version = "0.9.1", repos = "http://cloud.r-project.org/")'
104-
#RUN R -e 'devtools::install_version("ggplot2", version = "2.2.1", repos = "http://cloud.r-project.org/")'
10599
RUN R -e 'devtools::install_version("markdown", repos = "http://cloud.r-project.org/")'
106100
RUN R -e 'devtools::install_version("knitr", version = "1.16", repos = "http://cloud.r-project.org/")'
107101
RUN R -e 'devtools::install_version("shiny", version = "1.0.5", repos = "http://cloud.r-project.org/")'
@@ -114,8 +108,7 @@ RUN R -e 'devtools::install_version("shinyWidgets", repos = "http://cloud.r-proj
114108
# cleaning up downloaded deb packages for keeping clean our docker image
115109
RUN apt-get -qq clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
116110

117-
# now install the reannotate-crispr PERL package
118-
# for CPAN to auto say yes to every question
111+
# now install the reannotate-crispr PERL package, which is based on the CRISPR LIBRARY DESIGNER
119112

120113
ENV PERL_MM_USE_DEFAULT=1
121114
RUN perl -MCPAN -e 'CPAN::Shell->install("Bundle::CPAN")'
@@ -138,30 +131,29 @@ RUN perl -MCPAN -e 'CPAN::Shell->install("Getopt::Long")'
138131
RUN perl -MCPAN -e 'CPAN::Shell->install("File::Grep")'
139132
RUN perl -MCPAN -e 'CPAN::Shell->install("Text::Wrap")'
140133
RUN perl -MCPAN -e 'CPAN::Shell->install("Unix::Processors")'
134+
141135
RUN git clone https://github.com/boutroslab/Supplemental-Material.git /tmp/Supplemental-Material
142136
RUN cp -r /tmp/Supplemental-Material/Rauscher\&Heigwer_2016/crispr-reannotation /opt/
143137
RUN chmod +x /opt/crispr-reannotation/reannotate_crispr.pl
144138
env PATH /opt/crispr-reannotation:$PATH
145139
RUN rm -rf /tmp/Supplemental-Material
146-
# install intervaltree...another dependency for the crispr reannotator
140+
141+
# install intervaltree...another dependency for reannotate-crispr
147142
RUN cd /opt/crispr-reannotation/depends/Set-IntervalTree-0.10-OD; perl Makefile.PL; make; make test && make install
148143

149144
# Install Python NumPy and SciPy required for BAGEL
150145
RUN apt-get update && apt-get install -y python-numpy python-scipy python-sympy
151146

152-
## Install Software packages and download them
147+
## Install Software packages, Download and Install them
153148

154-
# install software package bowtie2 which has a difficult license and therefore cannot be packaged or shipped in a docker image
155-
# TODO: check if this can be used in open source packages at all
149+
# Bowtie 2
156150
RUN wget http://www.dkfz.de/signaling/crispranalyzer/bowtie2-2.2.9-linux-x86_64.zip -P /tmp/
157-
#COPY ./bowtie2-2.3.2-linux-x86_64.zip /tmp/
158151
RUN unzip /tmp/bowtie2-2.2.9-linux-x86_64.zip -d /opt
159152
ENV PATH=/opt/bowtie2-2.2.9:$PATH
160153
RUN echo 'export PATH=/opt/bowtie2-2.2.9/:$PATH' >> /etc/profile
161154

162-
# install bowtie
155+
# Bowtie 1
163156
RUN wget http://www.dkfz.de/signaling/crispranalyzer/bowtie-1.2.1.1-linux-x86_64.zip -P /tmp/
164-
#COPY ./bowtie-1.2-linux-legacy-x86_64.zip /tmp/
165157
RUN unzip /tmp/bowtie-1.2.1.1-linux-x86_64.zip -d /opt
166158
ENV PATH=/opt/bowtie-1.2.1.1/:$PATH
167159
RUN echo 'export PATH=/opt/bowtie-1.2.1.1/:$PATH' >> /etc/profile
@@ -173,9 +165,10 @@ RUN wget http://www.dkfz.de/signaling/crispranalyzer/mageck-0.5.5.tar.gz -P /tmp
173165
RUN cd /tmp/; tar xvf ./mageck-0.5.5.tar.gz; cd /tmp/mageck-0.5.5; python setup.py install
174166
RUN rm -rf /tmp/mageck-0.5.5 /tmp/mageck-0.5.5.tar.gz
175167

168+
### RUST-based FASTQ Extraction and SAM Extraction
169+
# PERL-based backup variants are included in CRISPRAnalyzeR source
176170

177-
# INSTALL RUST-based FASTQ-Extraction and SAM-Extraction
178-
# install RUST compiler
171+
# Install RUST compiler
179172
RUN \
180173
curl https://sh.rustup.rs > /tmp/sh.rustup.rs && \
181174
chmod +x /tmp/sh.rustup.rs && \
@@ -184,7 +177,7 @@ RUN \
184177

185178
ENV PATH=/root/.cargo/bin:$PATH
186179

187-
# compile CRISPRAnalyzer mapper and extractor
180+
# compile CRISPRAnalyzer mapper and extractor from source
188181
RUN \
189182
git clone https://github.com/OliPelz/fastq_extractor_proof_of_principle.git \
190183
/tmp/crispranalyzer-rust-tools
@@ -208,7 +201,7 @@ RUN \
208201
ENV PATH=/opt/crispranalyzer-tools:$PATH
209202
RUN echo 'export PATH=/opt/crispranalyzer-tools/:$PATH' >> /etc/profile
210203

211-
##### end of RUST CODE
204+
### CRISPRAnalyzeR FROM SOURCE
212205

213206
## Now we add CRISPRAnalyzeR code directly from Github Repository
214207
ARG CACHEBUST=1

0 commit comments

Comments
 (0)