You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN R -e 'install.packages("devtools", repos="https://stat.ethz.ch/CRAN/")'
56
-
RUN R -e 'install.packages("dplyr", repos="https://stat.ethz.ch/CRAN/")'
57
-
RUN R -e 'install.packages("seqinr", repos="https://stat.ethz.ch/CRAN/")'
58
-
RUN R -e 'library(devtools);install_github("tobiasgf/lulu")'
59
-
RUN R -e 'install.packages("BiocManager",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
60
-
#RUN R -e 'BiocManager::install("DECIPHER")'
61
-
#RUN R -e 'BiocManager::install("dada2")'
62
-
RUN R -e 'library(devtools);devtools::install_github("benjjneb/dada2", ref="v1.16")'
63
-
RUN R -e 'install.packages("https://www.bioconductor.org/packages/3.11/bioc/src/contrib/Archive/DECIPHER/DECIPHER_2.16.0.tar.gz", repos = NULL, type = "source")'#
59
+
ENV CXXFLAGS="-std=c++11"
64
60
65
61
66
62
# ----- Libraries deployments -----
67
63
68
64
# install app dependencies
69
65
RUN apt-get install curl -y
70
-
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
66
+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
71
67
RUN apt install nodejs -y
72
68
COPY package.json /app
73
69
RUN npm install
@@ -77,7 +73,9 @@ COPY lib/DTD /app/lib/DTD
77
73
COPY lib/pandaseq /app/lib/pandaseq
78
74
COPY lib/vsearch /app/lib/vsearch
79
75
COPY lib/casper /app/lib/casper
80
-
COPY lib/swarm /app/lib/swarm
76
+
COPY lib/swarm2 /app/lib/swarm2
77
+
COPY lib/swarm3 /app/lib/swarm3
78
+
# COPY lib/sratoolkit /app/lib/sratoolkit
81
79
82
80
# Compile DTD
83
81
RUN cd /app/lib/DTD && make && cd /app
@@ -87,13 +85,142 @@ RUN cd /app/lib/pandaseq && ./autogen.sh && ./configure && make && cd /app
87
85
RUN cd /app/lib/vsearch && ./autogen.sh && ./configure && make && cd /app
88
86
# Compile casper
89
87
RUN cd /app/lib/casper/casper_v0.8.2 && make && cd /app
90
-
# Compile swarm
91
-
RUN cd /app/lib/swarm/src && make && cd /app
88
+
# Compile swarm2
89
+
RUN cd /app/lib/swarm2/src && make && cd /app
90
+
# Compile swarm3
91
+
RUN cd /app/lib/swarm3/src && make && cd /app
92
92
93
-
# Copy Python and R scripts
93
+
# ----- R dependancies -----
94
+
95
+
COPY lib/lulu /app/lib/lulu
96
+
COPY lib/dada2 /app/lib/dada2
97
+
98
+
RUN R -e 'install.packages("dplyr", repos="https://stat.ethz.ch/CRAN/")'
99
+
RUN R -e 'install.packages("seqinr", repos="https://stat.ethz.ch/CRAN/")'
100
+
RUN R -e 'install.packages("/app/lib/lulu",repos=NULL)'
101
+
RUN R -e 'install.packages("BiocManager",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
102
+
RUN R -e 'install.packages("ggplot2",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
103
+
RUN R -e 'install.packages("reshape2",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
104
+
RUN R -e 'install.packages("RcppParallel",dependencies=TRUE)'
105
+
RUN R -e 'install.packages("IRanges",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
106
+
RUN R -e 'install.packages("XVector",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
107
+
RUN R -e 'install.packages("BiocGenerics",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
108
+
RUN R -e 'BiocManager::install("Biostrings")'
109
+
RUN R -e 'BiocManager::install("ShortRead")'
110
+
RUN R -e 'install.packages("/app/lib/dada2",repos=NULL, dependencies = TRUE)'
111
+
COPY lib/DECIPHER /app/lib/DECIPHER
112
+
RUN R -e 'install.packages("RSQLite",dependencies=TRUE,repos="https://stat.ethz.ch/CRAN/")'
113
+
RUN R -e 'install.packages("/app/lib/DECIPHER",repos=NULL, dependencies = TRUE)'
114
+
115
+
# ----- install conda dependencies ----- #
116
+
RUN apt-get install -y \
117
+
clang
118
+
119
+
# for those packages that require conda install create a new environment
120
+
# for each to avoid incompatibilities
121
+
122
+
# ----- install chopper ----- #
123
+
RUN conda create -n chopper python=3.9 -y
124
+
# RUN echo "source activate env" >> ~/.bashrc
125
+
RUN /bin/bash -c "source activate chopper && \
126
+
conda install -c conda-forge libgcc-ng -y && \
127
+
conda update -c conda-forge libgcc-ng -y && \
128
+
conda install -c conda-forge libstdcxx-ng -y && \
129
+
conda update -c conda-forge libstdcxx-ng -y && \
130
+
conda install -c conda-forge zlib -y && \
131
+
conda update -c conda-forge zlib -y && \
132
+
conda install -c bioconda chopper=0.8.0 -y "
133
+
134
+
# ----- install msi ----- #
135
+
COPY lib/msi /app/lib/msi
136
+
RUN conda create -n msi python=3.9 -y
137
+
RUN /bin/bash -c "source activate msi && \
138
+
apt-get update && \
139
+
apt-get install emboss -y && \
140
+
apt-get install time -y && \
141
+
conda install cmake -y && \
142
+
conda install -c conda-forge git -y && \
143
+
conda install -c conda-forge wget -y && \
144
+
conda install -c bioconda java-jdk -y"
145
+
# Update and install GCC and G++
146
+
RUN apt-get update && apt-get install -y software-properties-common
147
+
RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y
148
+
RUN apt-get update && apt-get install -y \
149
+
gcc-10 \
150
+
g++-10
151
+
# Set GCC and G++ to the new versions
152
+
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
# minimap2 has been installed with msi and its located at /app/lib/msi/bin/minimap2
177
+
# RUN /bin/bash -c "source activate ashure && \
178
+
# /app/lib/msi/bin/minimap2"
179
+
# install cmake and git in ashure environment
180
+
RUN /bin/bash -c "source activate ashure && \
181
+
conda install -c conda-forge cmake git -y"
182
+
# install spoa
183
+
RUN /bin/bash -c "source activate ashure && \
184
+
cd /app/lib/ASHURE/spoa && \
185
+
cmake -B build -DCMAKE_BUILD_TYPE=Release && \
186
+
make -C build && cd /app"
187
+
# install python modules for ASHURE
188
+
# due to a deprecation error, pandas need to be previous to 1.4.0
189
+
RUN /bin/bash -c "source activate ashure && \
190
+
pip install pandas==1.3.3 && \
191
+
pip install scikit-learn && \
192
+
pip install hdbscan &&\
193
+
pip install numpy==1.26.4"
194
+
# install ashure
195
+
RUN /bin/bash -c "source activate ashure && \
196
+
cd /app/lib/ASHURE && \
197
+
chmod +x src/ashure.py && \
198
+
src/ashure.py run -h && cd /app"
199
+
# check if ashure commands are working
200
+
RUN /bin/bash -c "source activate ashure && \
201
+
/app/lib/ASHURE/src/ashure.py prfg -h && \
202
+
/app/lib/ASHURE/src/ashure.py fgs -h && \
203
+
/app/lib/ASHURE/src/ashure.py msa -h && \
204
+
/app/lib/ASHURE/src/ashure.py fpmr -h"
205
+
206
+
# ----- copy python_scripts -----
94
207
COPY lib/python_scripts /app/lib/python_scripts
208
+
209
+
# ----- copy R_scripts -----
95
210
COPY lib/R_scripts /app/lib/R_scripts
96
211
212
+
# ----- copy bash_scripts -----
213
+
COPY lib/bash_scripts /app/lib/bash_scripts
214
+
RUN chmod +x /app/lib/bash_scripts/*
215
+
216
+
# ----- correction on msi source code -----
217
+
RUN sed -i 's/\/dev\/stderr/stderr_msi/g' /app/lib/msi/bin/bam_annotate.sh /app/lib/msi/bin/fastq2bam /app/lib/msi/bin/fastq_validator.sh /app/lib/msi/*/msi /app/lib/msi/exe/metabinkit_blastgendb
218
+
# RUN sed -i 's/ nmembers / \$nmembers /g' /app/lib/msi/bin/msi_clustr_add_size.pl /app/lib/msi/scripts/msi_clustr_add_size.pl
219
+
RUN cd /app/lib/msi/seqtk && make && cd /app
220
+
221
+
# updates on biopython
222
+
RUN python3 -m pip install biopython --upgrade
223
+
97
224
# ----- Webserver -----
98
225
99
226
# prepare the web server
@@ -108,9 +235,15 @@ RUN cp node_modules/jquery/dist/jquery.js /app/www/js/jquery.js
0 commit comments