@@ -2,9 +2,7 @@ FROM rocker/r-ver:3.4.3
2
2
3
3
MAINTAINER Jan Winter
"[email protected] "
4
4
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
8
6
RUN apt-get update && apt-get install -y \
9
7
wget \
10
8
sudo \
@@ -26,37 +24,39 @@ RUN apt-get update && apt-get install -y \
26
24
htop \
27
25
ghostscript \
28
26
nginx \
29
- libtbb2
27
+ libtbb2 \
28
+ libmariadbclient-dev
30
29
31
- # again some more things we need to run the crispranalyzer package
30
+ # Add TEX for report and R Markdown
32
31
RUN apt-get update && apt-get -y --no-install-recommends \
33
32
install texlive texlive-xetex
34
33
35
34
# install the shiny server debian package from r-studio
36
35
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
38
36
RUN gdebi -n /tmp/shiny-server-1.5.3.838-amd64.deb && \
39
37
rm -f /tmp/shiny-server-1.5.3.838-amd64.deb
40
38
41
39
COPY ./shiny-server.sh /usr/bin/shiny-server.sh
42
40
RUN chmod +x /usr/bin/shiny-server.sh
43
41
42
+ # ### R PACKAGES
44
43
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
49
45
RUN R -e 'install.packages("devtools", repos = "http://cloud.r-project.org/")'
50
46
51
- # install all the packages we need from cran, bioconductor and github
47
+ # install all the packages we need from CRAN, Bioconductor and GitHub
52
48
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/")'
53
51
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
+
54
55
# We have to retrieve thise package as it is not available anymore, but required by some packages
55
56
RUN wget http://www.omegahat.net/XMLRPC/XMLRPC_0.3-0.tar.gz -P /tmp/
56
57
RUN R -e 'install.packages("/tmp/XMLRPC_0.3-0.tar.gz", repos = NULL, type="source")'
58
+
57
59
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")'
60
60
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("RamiGO")'
61
61
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("BiocGenerics")'
62
62
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")'
74
74
RUN R -e 'source("http://bioconductor.org/biocLite.R");biocLite("STRINGdb")'
75
75
RUN R -e 'devtools::install_version("dplyr", version = "0.7.4", repos = "http://cloud.r-project.org/")'
76
76
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/")'
78
77
RUN R -e 'devtools::install_version("shinydashboard", version = "0.5.3", repos = "http://cloud.r-project.org/")'
79
78
RUN R -e 'devtools::install_version("jsonlite", version = "1.1", repos = "http://cloud.r-project.org/")'
80
79
RUN R -e 'devtools::install_version("shinyBS", version = "0.61", repos = "http://cloud.r-project.org/")'
81
80
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")'
83
81
RUN R -e 'devtools::install_version("seqinr", version = "3.3-6", repos = "http://cloud.r-project.org/")'
84
82
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")'
86
83
RUN R -e 'devtools::install_version("caTools", version = "1.17.1", repos = "http://cloud.r-project.org/")'
87
84
RUN R -e 'devtools::install_version("reshape2", version = "1.4.2", repos = "http://cloud.r-project.org/")'
88
85
RUN R -e 'devtools::install_version("MESS", version = "0.4-3", repos = "http://cloud.r-project.org/")'
89
86
RUN R -e 'devtools::install_version("igraph", version = "1.0.1", repos = "http://cloud.r-project.org/")'
90
87
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
92
89
RUN R -e 'devtools::install_version("d3heatmap", version = "0.6.1.1", repos = "http://cloud.r-project.org/")'
93
90
RUN R -e 'devtools::install_version("DEoptim", version = "2.2-3", repos = "http://cloud.r-project.org/")'
94
91
RUN R -e 'devtools::install_version("httr", version = "1.3.1", repos = "http://cloud.r-project.org/")'
95
92
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/")'
97
93
RUN R -e 'devtools::install_version("VennDiagram", version = "1.6.17", repos = "http://cloud.r-project.org/")'
98
94
RUN R -e 'devtools::install_version("tidyverse", version = "1.2.1", repos = "http://cloud.r-project.org/")'
99
95
RUN R -e 'devtools::install_version("htmltools", version = "0.3.6", repos = "http://cloud.r-project.org/")'
100
96
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/")'
102
97
RUN R -e 'devtools::install_version("sm", version = "2.2-5.4", repos = "http://cloud.r-project.org/")'
103
98
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/")'
105
99
RUN R -e 'devtools::install_version("markdown", repos = "http://cloud.r-project.org/")'
106
100
RUN R -e 'devtools::install_version("knitr", version = "1.16", repos = "http://cloud.r-project.org/")'
107
101
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
114
108
# cleaning up downloaded deb packages for keeping clean our docker image
115
109
RUN apt-get -qq clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
116
110
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
119
112
120
113
ENV PERL_MM_USE_DEFAULT=1
121
114
RUN perl -MCPAN -e 'CPAN::Shell->install("Bundle::CPAN")'
@@ -138,30 +131,29 @@ RUN perl -MCPAN -e 'CPAN::Shell->install("Getopt::Long")'
138
131
RUN perl -MCPAN -e 'CPAN::Shell->install("File::Grep")'
139
132
RUN perl -MCPAN -e 'CPAN::Shell->install("Text::Wrap")'
140
133
RUN perl -MCPAN -e 'CPAN::Shell->install("Unix::Processors")'
134
+
141
135
RUN git clone https://github.com/boutroslab/Supplemental-Material.git /tmp/Supplemental-Material
142
136
RUN cp -r /tmp/Supplemental-Material/Rauscher\& Heigwer_2016/crispr-reannotation /opt/
143
137
RUN chmod +x /opt/crispr-reannotation/reannotate_crispr.pl
144
138
env PATH /opt/crispr-reannotation:$PATH
145
139
RUN rm -rf /tmp/Supplemental-Material
146
- # install intervaltree...another dependency for the crispr reannotator
140
+
141
+ # install intervaltree...another dependency for reannotate-crispr
147
142
RUN cd /opt/crispr-reannotation/depends/Set-IntervalTree-0.10-OD; perl Makefile.PL; make; make test && make install
148
143
149
144
# Install Python NumPy and SciPy required for BAGEL
150
145
RUN apt-get update && apt-get install -y python-numpy python-scipy python-sympy
151
146
152
- # # Install Software packages and download them
147
+ # # Install Software packages, Download and Install them
153
148
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
156
150
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/
158
151
RUN unzip /tmp/bowtie2-2.2.9-linux-x86_64.zip -d /opt
159
152
ENV PATH=/opt/bowtie2-2.2.9:$PATH
160
153
RUN echo 'export PATH=/opt/bowtie2-2.2.9/:$PATH' >> /etc/profile
161
154
162
- # install bowtie
155
+ # Bowtie 1
163
156
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/
165
157
RUN unzip /tmp/bowtie-1.2.1.1-linux-x86_64.zip -d /opt
166
158
ENV PATH=/opt/bowtie-1.2.1.1/:$PATH
167
159
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
173
165
RUN cd /tmp/; tar xvf ./mageck-0.5.5.tar.gz; cd /tmp/mageck-0.5.5; python setup.py install
174
166
RUN rm -rf /tmp/mageck-0.5.5 /tmp/mageck-0.5.5.tar.gz
175
167
168
+ # ## RUST-based FASTQ Extraction and SAM Extraction
169
+ # PERL-based backup variants are included in CRISPRAnalyzeR source
176
170
177
- # INSTALL RUST-based FASTQ-Extraction and SAM-Extraction
178
- # install RUST compiler
171
+ # Install RUST compiler
179
172
RUN \
180
173
curl https://sh.rustup.rs > /tmp/sh.rustup.rs && \
181
174
chmod +x /tmp/sh.rustup.rs && \
@@ -184,7 +177,7 @@ RUN \
184
177
185
178
ENV PATH=/root/.cargo/bin:$PATH
186
179
187
- # compile CRISPRAnalyzer mapper and extractor
180
+ # compile CRISPRAnalyzer mapper and extractor from source
188
181
RUN \
189
182
git clone https://github.com/OliPelz/fastq_extractor_proof_of_principle.git \
190
183
/tmp/crispranalyzer-rust-tools
@@ -208,7 +201,7 @@ RUN \
208
201
ENV PATH=/opt/crispranalyzer-tools:$PATH
209
202
RUN echo 'export PATH=/opt/crispranalyzer-tools/:$PATH' >> /etc/profile
210
203
211
- # #### end of RUST CODE
204
+ # ## CRISPRAnalyzeR FROM SOURCE
212
205
213
206
# # Now we add CRISPRAnalyzeR code directly from Github Repository
214
207
ARG CACHEBUST=1
0 commit comments