-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (30 loc) · 1.74 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
FROM rocker/tidyverse
RUN apt-get update -y
RUN apt-get install -y net-tools
# Install the data files.
# Do this early so that changes to the installation procedure (or
# ImmClassifier package) downstream won't re-trigger download.
RUN apt-get update -qq && apt-get -y install wget
RUN mkdir data
RUN wget -O data/hca-bm-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076257
RUN wget -O data/jci-bm-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076248
RUN wget -O data/pbmc-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076239
RUN wget -O data/liver-immune-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076251
RUN wget -O data/nsclc-zilionis-tii-minor-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076242
RUN wget -O data/nsclc-guo-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076245
RUN wget -O data/brcatil-train-test-dat.rds --no-check-certificate https://ndownloader.figshare.com/files/20076260
# Install software.
RUN apt-get update -qq && apt-get -y install libffi-dev && apt-get -y install python3-pip && apt-get -y install wget
RUN Rscript -e "install.packages(c('optparse','BiocManager','mlr','stringr','randomForest','reticulate', 'data.table'))"
RUN Rscript -e "BiocManager::install('sva')"
RUN pip3 install pandas keras numpy sklearn tensorflow
RUN pip3 install tensorflow h5py==2.10.0
COPY bin/runIC.R /usr/local/bin/
RUN chmod a+x /usr/local/bin/runIC.R
COPY . ImmClassifier
WORKDIR ImmClassifier
RUN mv /data/*.rds data && \
rmdir /data/
RUN R CMD INSTALL .
VOLUME ['/tmp']
ENTRYPOINT ["Rscript", "/ImmClassifier/bin/runIC.R"]