-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
80 lines (63 loc) · 2.18 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
FROM ucsdets/datascience-rstudio:2021.3-stable
USER root
RUN sed -i 's:^path-exclude=/usr/share/man:#path-exclude=/usr/share/man:' \
/etc/dpkg/dpkg.cfg.d/excludes
# install linux packages
RUN apt-get update && \
apt-get install tk-dev \
tcl-dev \
cmake \
wget \
default-jdk \
libbz2-dev \
apt-utils \
gdebi-core \
dpkg-sig \
man \
man-db \
manpages-posix \
tree \
-y
# STAR
RUN wget https://github.com/alexdobin/STAR/archive/2.5.2b.zip -P /tmp && \
unzip /tmp/2.5.2b.zip && \
mv STAR-* /opt/ && \
rm -rf /tmp/*.zip
# FastQC
RUN wget http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.zip -P /tmp && \
unzip /tmp/fastqc_v0.11.5.zip && \
mv FastQC /opt/ && \
chmod 755 /opt/FastQC/fastqc && \
rm -rf /tmp/fastqc_*
RUN mamba install -c conda-forge bash_kernel nb_conda_kernels
# build conda environment with required r packages
COPY r-bio.yaml /tmp
RUN mamba env create --file /tmp/r-bio.yaml && \
mamba clean -afy
# linux hack to remove paths to default R
RUN rm -rf /opt/conda/bin/R /opt/conda/lib/R && \
ln -s /opt/conda/envs/r-bio/bin/R /opt/conda/bin/R
# create py-bio conda environment with required python packages
COPY py-bio.yaml /tmp
RUN mamba env create --file /tmp/py-bio.yaml && \
mamba clean -afy
# COPY scanpy_2021.yaml /tmp
# RUN mamba env create --file /tmp/scanpy_2021.yaml && \
# mamba clean -afy
COPY spatial-tx.yml /tmp
RUN mamba env create --file /tmp/spatial-tx.yml && \
mamba clean -afy
# COPY variant_calling.yml /tmp
# RUN mamba env create --file /tmp/variant_calling.yml && \
# mamba clean -afy
COPY programming-R.yaml /tmp
RUN mamba env create --file /tmp/programming-R.yaml && \
mamba clean -afy
COPY imgproc.yml /tmp
RUN mamba env create --file /tmp/imgproc.yml && \
mamba clean -afy
COPY networks.yml /tmp
RUN mamba env create --file /tmp/networks.yml && \
mamba clean -afy
RUN yes | unminimize || echo "done"
USER $NB_USER